抽奖记录模块编写
This commit is contained in:
parent
a027af29cc
commit
6cae33e1d6
|
|
@ -0,0 +1,126 @@
|
|||
package com.sinosoft.activity.controller;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.sinosoft.activity.domain.DrawRecord;
|
||||
import com.sinosoft.activity.service.IDrawRecordService;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 抽奖记录信息Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2021-03-25
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/activity/record")
|
||||
public class DrawRecordController extends BaseController
|
||||
{
|
||||
private String prefix = "activity/record";
|
||||
|
||||
@Autowired
|
||||
private IDrawRecordService drawRecordService;
|
||||
|
||||
@RequiresPermissions("activity:record:view")
|
||||
@GetMapping()
|
||||
public String record()
|
||||
{
|
||||
return prefix + "/record";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询抽奖记录信息列表
|
||||
*/
|
||||
@RequiresPermissions("activity:record:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(DrawRecord drawRecord)
|
||||
{
|
||||
startPage();
|
||||
List<DrawRecord> list = drawRecordService.selectDrawRecordList(drawRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出抽奖记录信息列表
|
||||
*/
|
||||
@RequiresPermissions("activity:record:export")
|
||||
@Log(title = "抽奖记录信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(DrawRecord drawRecord)
|
||||
{
|
||||
List<DrawRecord> list = drawRecordService.selectDrawRecordList(drawRecord);
|
||||
ExcelUtil<DrawRecord> util = new ExcelUtil<DrawRecord>(DrawRecord.class);
|
||||
return util.exportExcel(list, "record");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增抽奖记录信息
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存抽奖记录信息
|
||||
*/
|
||||
@RequiresPermissions("activity:record:add")
|
||||
@Log(title = "抽奖记录信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(DrawRecord drawRecord)
|
||||
{
|
||||
return toAjax(drawRecordService.insertDrawRecord(drawRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改抽奖记录信息
|
||||
*/
|
||||
@GetMapping("/edit/{DRAWRECORDID}")
|
||||
public String edit(@PathVariable("DRAWRECORDID") String DRAWRECORDID, ModelMap mmap)
|
||||
{
|
||||
DrawRecord drawRecord = drawRecordService.selectDrawRecordById(DRAWRECORDID);
|
||||
mmap.put("drawRecord", drawRecord);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存抽奖记录信息
|
||||
*/
|
||||
@RequiresPermissions("activity:record:edit")
|
||||
@Log(title = "抽奖记录信息", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(DrawRecord drawRecord)
|
||||
{
|
||||
return toAjax(drawRecordService.updateDrawRecord(drawRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除抽奖记录信息
|
||||
*/
|
||||
@RequiresPermissions("activity:record:remove")
|
||||
@Log(title = "抽奖记录信息", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(drawRecordService.deleteDrawRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,281 @@
|
|||
package com.sinosoft.activity.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 抽奖记录信息对象 draw_record
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2021-03-25
|
||||
*/
|
||||
public class DrawRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String DRAWRECORDID;
|
||||
|
||||
/** 抽奖流水 */
|
||||
@Excel(name = "抽奖流水")
|
||||
private String DRAWTRANSEQNO;
|
||||
|
||||
/** 抽奖活动代码 */
|
||||
@Excel(name = "抽奖活动代码")
|
||||
private String DRAWCODE;
|
||||
|
||||
/** 用户标识 */
|
||||
@Excel(name = "用户标识")
|
||||
private String USERID;
|
||||
|
||||
/** 抽奖时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "抽奖时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date DRAWTIME;
|
||||
|
||||
/** 抽奖结果 */
|
||||
@Excel(name = "抽奖结果")
|
||||
private String DRAWRESULT;
|
||||
|
||||
/** 奖品代码 */
|
||||
@Excel(name = "奖品代码")
|
||||
private String PRIZECODE;
|
||||
|
||||
/** 奖品类型 */
|
||||
@Excel(name = "奖品类型")
|
||||
private String PRIZETYPE;
|
||||
|
||||
/** 账务日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "账务日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date CHECKINGDATE;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date CREATETIMESTAMP;
|
||||
|
||||
/** 最后修改时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date LASTUPDATETIMESTAMP;
|
||||
|
||||
/** 渠道 */
|
||||
@Excel(name = "渠道")
|
||||
private String CHANNEL;
|
||||
|
||||
/** 用户名 */
|
||||
@Excel(name = "用户名")
|
||||
private String USERNAME;
|
||||
|
||||
/** 奖品等级 */
|
||||
@Excel(name = "奖品等级")
|
||||
private String PRIZELEVEL;
|
||||
|
||||
/** 奖品项目编码 */
|
||||
@Excel(name = "奖品项目编码")
|
||||
private String PROJECTCODE;
|
||||
|
||||
/** 请求来源 */
|
||||
@Excel(name = "请求来源")
|
||||
private String SOURCE;
|
||||
|
||||
/** 手机号 */
|
||||
@Excel(name = "手机号")
|
||||
private String PHONE;
|
||||
|
||||
/** 扩展域 */
|
||||
@Excel(name = "扩展域")
|
||||
private String EXTAREA;
|
||||
|
||||
public void setDRAWRECORDID(String DRAWRECORDID)
|
||||
{
|
||||
this.DRAWRECORDID = DRAWRECORDID;
|
||||
}
|
||||
|
||||
public String getDRAWRECORDID()
|
||||
{
|
||||
return DRAWRECORDID;
|
||||
}
|
||||
public void setDRAWTRANSEQNO(String DRAWTRANSEQNO)
|
||||
{
|
||||
this.DRAWTRANSEQNO = DRAWTRANSEQNO;
|
||||
}
|
||||
|
||||
public String getDRAWTRANSEQNO()
|
||||
{
|
||||
return DRAWTRANSEQNO;
|
||||
}
|
||||
public void setDRAWCODE(String DRAWCODE)
|
||||
{
|
||||
this.DRAWCODE = DRAWCODE;
|
||||
}
|
||||
|
||||
public String getDRAWCODE()
|
||||
{
|
||||
return DRAWCODE;
|
||||
}
|
||||
public void setUSERID(String USERID)
|
||||
{
|
||||
this.USERID = USERID;
|
||||
}
|
||||
|
||||
public String getUSERID()
|
||||
{
|
||||
return USERID;
|
||||
}
|
||||
public void setDRAWTIME(Date DRAWTIME)
|
||||
{
|
||||
this.DRAWTIME = DRAWTIME;
|
||||
}
|
||||
|
||||
public Date getDRAWTIME()
|
||||
{
|
||||
return DRAWTIME;
|
||||
}
|
||||
public void setDRAWRESULT(String DRAWRESULT)
|
||||
{
|
||||
this.DRAWRESULT = DRAWRESULT;
|
||||
}
|
||||
|
||||
public String getDRAWRESULT()
|
||||
{
|
||||
return DRAWRESULT;
|
||||
}
|
||||
public void setPRIZECODE(String PRIZECODE)
|
||||
{
|
||||
this.PRIZECODE = PRIZECODE;
|
||||
}
|
||||
|
||||
public String getPRIZECODE()
|
||||
{
|
||||
return PRIZECODE;
|
||||
}
|
||||
public void setPRIZETYPE(String PRIZETYPE)
|
||||
{
|
||||
this.PRIZETYPE = PRIZETYPE;
|
||||
}
|
||||
|
||||
public String getPRIZETYPE()
|
||||
{
|
||||
return PRIZETYPE;
|
||||
}
|
||||
public void setCHECKINGDATE(Date CHECKINGDATE)
|
||||
{
|
||||
this.CHECKINGDATE = CHECKINGDATE;
|
||||
}
|
||||
|
||||
public Date getCHECKINGDATE()
|
||||
{
|
||||
return CHECKINGDATE;
|
||||
}
|
||||
public void setCREATETIMESTAMP(Date CREATETIMESTAMP)
|
||||
{
|
||||
this.CREATETIMESTAMP = CREATETIMESTAMP;
|
||||
}
|
||||
|
||||
public Date getCREATETIMESTAMP()
|
||||
{
|
||||
return CREATETIMESTAMP;
|
||||
}
|
||||
public void setLASTUPDATETIMESTAMP(Date LASTUPDATETIMESTAMP)
|
||||
{
|
||||
this.LASTUPDATETIMESTAMP = LASTUPDATETIMESTAMP;
|
||||
}
|
||||
|
||||
public Date getLASTUPDATETIMESTAMP()
|
||||
{
|
||||
return LASTUPDATETIMESTAMP;
|
||||
}
|
||||
public void setCHANNEL(String CHANNEL)
|
||||
{
|
||||
this.CHANNEL = CHANNEL;
|
||||
}
|
||||
|
||||
public String getCHANNEL()
|
||||
{
|
||||
return CHANNEL;
|
||||
}
|
||||
public void setUSERNAME(String USERNAME)
|
||||
{
|
||||
this.USERNAME = USERNAME;
|
||||
}
|
||||
|
||||
public String getUSERNAME()
|
||||
{
|
||||
return USERNAME;
|
||||
}
|
||||
public void setPRIZELEVEL(String PRIZELEVEL)
|
||||
{
|
||||
this.PRIZELEVEL = PRIZELEVEL;
|
||||
}
|
||||
|
||||
public String getPRIZELEVEL()
|
||||
{
|
||||
return PRIZELEVEL;
|
||||
}
|
||||
public void setPROJECTCODE(String PROJECTCODE)
|
||||
{
|
||||
this.PROJECTCODE = PROJECTCODE;
|
||||
}
|
||||
|
||||
public String getPROJECTCODE()
|
||||
{
|
||||
return PROJECTCODE;
|
||||
}
|
||||
public void setSOURCE(String SOURCE)
|
||||
{
|
||||
this.SOURCE = SOURCE;
|
||||
}
|
||||
|
||||
public String getSOURCE()
|
||||
{
|
||||
return SOURCE;
|
||||
}
|
||||
public void setPHONE(String PHONE)
|
||||
{
|
||||
this.PHONE = PHONE;
|
||||
}
|
||||
|
||||
public String getPHONE()
|
||||
{
|
||||
return PHONE;
|
||||
}
|
||||
public void setEXTAREA(String EXTAREA)
|
||||
{
|
||||
this.EXTAREA = EXTAREA;
|
||||
}
|
||||
|
||||
public String getEXTAREA()
|
||||
{
|
||||
return EXTAREA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("DRAWRECORDID", getDRAWRECORDID())
|
||||
.append("DRAWTRANSEQNO", getDRAWTRANSEQNO())
|
||||
.append("DRAWCODE", getDRAWCODE())
|
||||
.append("USERID", getUSERID())
|
||||
.append("DRAWTIME", getDRAWTIME())
|
||||
.append("DRAWRESULT", getDRAWRESULT())
|
||||
.append("PRIZECODE", getPRIZECODE())
|
||||
.append("PRIZETYPE", getPRIZETYPE())
|
||||
.append("CHECKINGDATE", getCHECKINGDATE())
|
||||
.append("CREATETIMESTAMP", getCREATETIMESTAMP())
|
||||
.append("LASTUPDATETIMESTAMP", getLASTUPDATETIMESTAMP())
|
||||
.append("CHANNEL", getCHANNEL())
|
||||
.append("USERNAME", getUSERNAME())
|
||||
.append("PRIZELEVEL", getPRIZELEVEL())
|
||||
.append("PROJECTCODE", getPROJECTCODE())
|
||||
.append("SOURCE", getSOURCE())
|
||||
.append("PHONE", getPHONE())
|
||||
.append("EXTAREA", getEXTAREA())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.sinosoft.activity.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.sinosoft.activity.domain.DrawRecord;
|
||||
|
||||
/**
|
||||
* 抽奖记录信息Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2021-03-25
|
||||
*/
|
||||
public interface DrawRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询抽奖记录信息
|
||||
*
|
||||
* @param DRAWRECORDID 抽奖记录信息ID
|
||||
* @return 抽奖记录信息
|
||||
*/
|
||||
public DrawRecord selectDrawRecordById(String DRAWRECORDID);
|
||||
|
||||
/**
|
||||
* 查询抽奖记录信息列表
|
||||
*
|
||||
* @param drawRecord 抽奖记录信息
|
||||
* @return 抽奖记录信息集合
|
||||
*/
|
||||
public List<DrawRecord> selectDrawRecordList(DrawRecord drawRecord);
|
||||
|
||||
/**
|
||||
* 新增抽奖记录信息
|
||||
*
|
||||
* @param drawRecord 抽奖记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDrawRecord(DrawRecord drawRecord);
|
||||
|
||||
/**
|
||||
* 修改抽奖记录信息
|
||||
*
|
||||
* @param drawRecord 抽奖记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDrawRecord(DrawRecord drawRecord);
|
||||
|
||||
/**
|
||||
* 删除抽奖记录信息
|
||||
*
|
||||
* @param DRAWRECORDID 抽奖记录信息ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDrawRecordById(String DRAWRECORDID);
|
||||
|
||||
/**
|
||||
* 批量删除抽奖记录信息
|
||||
*
|
||||
* @param DRAWRECORDIDs 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDrawRecordByIds(String[] DRAWRECORDIDs);
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.sinosoft.activity.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.sinosoft.activity.domain.DrawRecord;
|
||||
|
||||
/**
|
||||
* 抽奖记录信息Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2021-03-25
|
||||
*/
|
||||
public interface IDrawRecordService
|
||||
{
|
||||
/**
|
||||
* 查询抽奖记录信息
|
||||
*
|
||||
* @param DRAWRECORDID 抽奖记录信息ID
|
||||
* @return 抽奖记录信息
|
||||
*/
|
||||
public DrawRecord selectDrawRecordById(String DRAWRECORDID);
|
||||
|
||||
/**
|
||||
* 查询抽奖记录信息列表
|
||||
*
|
||||
* @param drawRecord 抽奖记录信息
|
||||
* @return 抽奖记录信息集合
|
||||
*/
|
||||
public List<DrawRecord> selectDrawRecordList(DrawRecord drawRecord);
|
||||
|
||||
/**
|
||||
* 新增抽奖记录信息
|
||||
*
|
||||
* @param drawRecord 抽奖记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDrawRecord(DrawRecord drawRecord);
|
||||
|
||||
/**
|
||||
* 修改抽奖记录信息
|
||||
*
|
||||
* @param drawRecord 抽奖记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDrawRecord(DrawRecord drawRecord);
|
||||
|
||||
/**
|
||||
* 批量删除抽奖记录信息
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDrawRecordByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除抽奖记录信息信息
|
||||
*
|
||||
* @param DRAWRECORDID 抽奖记录信息ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDrawRecordById(String DRAWRECORDID);
|
||||
}
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
package com.sinosoft.activity.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.sinosoft.activity.mapper.DrawRecordMapper;
|
||||
import com.sinosoft.activity.domain.DrawRecord;
|
||||
import com.sinosoft.activity.service.IDrawRecordService;
|
||||
import com.ruoyi.common.core.text.Convert;
|
||||
|
||||
/**
|
||||
* 抽奖记录信息Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2021-03-25
|
||||
*/
|
||||
@Service
|
||||
public class DrawRecordServiceImpl implements IDrawRecordService
|
||||
{
|
||||
@Autowired
|
||||
private DrawRecordMapper drawRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询抽奖记录信息
|
||||
*
|
||||
* @param DRAWRECORDID 抽奖记录信息ID
|
||||
* @return 抽奖记录信息
|
||||
*/
|
||||
@Override
|
||||
public DrawRecord selectDrawRecordById(String DRAWRECORDID)
|
||||
{
|
||||
return drawRecordMapper.selectDrawRecordById(DRAWRECORDID);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询抽奖记录信息列表
|
||||
*
|
||||
* @param drawRecord 抽奖记录信息
|
||||
* @return 抽奖记录信息
|
||||
*/
|
||||
@Override
|
||||
public List<DrawRecord> selectDrawRecordList(DrawRecord drawRecord)
|
||||
{
|
||||
return drawRecordMapper.selectDrawRecordList(drawRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增抽奖记录信息
|
||||
*
|
||||
* @param drawRecord 抽奖记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDrawRecord(DrawRecord drawRecord)
|
||||
{
|
||||
return drawRecordMapper.insertDrawRecord(drawRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改抽奖记录信息
|
||||
*
|
||||
* @param drawRecord 抽奖记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDrawRecord(DrawRecord drawRecord)
|
||||
{
|
||||
return drawRecordMapper.updateDrawRecord(drawRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除抽奖记录信息对象
|
||||
*
|
||||
* @param ids 需要删除的数据ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDrawRecordByIds(String ids)
|
||||
{
|
||||
return drawRecordMapper.deleteDrawRecordByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除抽奖记录信息信息
|
||||
*
|
||||
* @param DRAWRECORDID 抽奖记录信息ID
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDrawRecordById(String DRAWRECORDID)
|
||||
{
|
||||
return drawRecordMapper.deleteDrawRecordById(DRAWRECORDID);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,139 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sinosoft.activity.mapper.DrawRecordMapper">
|
||||
|
||||
<resultMap type="DrawRecord" id="DrawRecordResult">
|
||||
<result property="DRAWRECORDID" column="DRAWRECORDID" />
|
||||
<result property="DRAWTRANSEQNO" column="DRAWTRANSEQNO" />
|
||||
<result property="DRAWCODE" column="DRAWCODE" />
|
||||
<result property="USERID" column="USERID" />
|
||||
<result property="DRAWTIME" column="DRAWTIME" />
|
||||
<result property="DRAWRESULT" column="DRAWRESULT" />
|
||||
<result property="PRIZECODE" column="PRIZECODE" />
|
||||
<result property="PRIZETYPE" column="PRIZETYPE" />
|
||||
<result property="CHECKINGDATE" column="CHECKINGDATE" />
|
||||
<result property="CREATETIMESTAMP" column="CREATETIMESTAMP" />
|
||||
<result property="LASTUPDATETIMESTAMP" column="LASTUPDATETIMESTAMP" />
|
||||
<result property="CHANNEL" column="CHANNEL" />
|
||||
<result property="USERNAME" column="USERNAME" />
|
||||
<result property="PRIZELEVEL" column="PRIZELEVEL" />
|
||||
<result property="PROJECTCODE" column="PROJECTCODE" />
|
||||
<result property="SOURCE" column="SOURCE" />
|
||||
<result property="PHONE" column="PHONE" />
|
||||
<result property="EXTAREA" column="EXTAREA" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDrawRecordVo">
|
||||
select DRAWRECORDID, DRAWTRANSEQNO, DRAWCODE, USERID, DRAWTIME, DRAWRESULT, PRIZECODE, PRIZETYPE, CHECKINGDATE, CREATETIMESTAMP, LASTUPDATETIMESTAMP, CHANNEL, USERNAME, PRIZELEVEL, PROJECTCODE, SOURCE, PHONE, EXTAREA from draw_record
|
||||
</sql>
|
||||
|
||||
<select id="selectDrawRecordList" parameterType="DrawRecord" resultMap="DrawRecordResult">
|
||||
<include refid="selectDrawRecordVo"/>
|
||||
<where>
|
||||
<if test="DRAWTRANSEQNO != null and DRAWTRANSEQNO != ''"> and DRAWTRANSEQNO = #{DRAWTRANSEQNO}</if>
|
||||
<if test="DRAWCODE != null and DRAWCODE != ''"> and DRAWCODE = #{DRAWCODE}</if>
|
||||
<if test="USERID != null and USERID != ''"> and USERID = #{USERID}</if>
|
||||
<if test="DRAWTIME != null "> and DRAWTIME = #{DRAWTIME}</if>
|
||||
<if test="DRAWRESULT != null and DRAWRESULT != ''"> and DRAWRESULT = #{DRAWRESULT}</if>
|
||||
<if test="PRIZECODE != null and PRIZECODE != ''"> and PRIZECODE = #{PRIZECODE}</if>
|
||||
<if test="PRIZETYPE != null and PRIZETYPE != ''"> and PRIZETYPE = #{PRIZETYPE}</if>
|
||||
<if test="CHECKINGDATE != null "> and CHECKINGDATE = #{CHECKINGDATE}</if>
|
||||
<if test="CREATETIMESTAMP != null "> and CREATETIMESTAMP = #{CREATETIMESTAMP}</if>
|
||||
<if test="LASTUPDATETIMESTAMP != null "> and LASTUPDATETIMESTAMP = #{LASTUPDATETIMESTAMP}</if>
|
||||
<if test="CHANNEL != null and CHANNEL != ''"> and CHANNEL = #{CHANNEL}</if>
|
||||
<if test="USERNAME != null and USERNAME != ''"> and USERNAME like concat('%', #{USERNAME}, '%')</if>
|
||||
<if test="PRIZELEVEL != null and PRIZELEVEL != ''"> and PRIZELEVEL = #{PRIZELEVEL}</if>
|
||||
<if test="PROJECTCODE != null and PROJECTCODE != ''"> and PROJECTCODE = #{PROJECTCODE}</if>
|
||||
<if test="SOURCE != null and SOURCE != ''"> and SOURCE = #{SOURCE}</if>
|
||||
<if test="PHONE != null and PHONE != ''"> and PHONE = #{PHONE}</if>
|
||||
<if test="EXTAREA != null and EXTAREA != ''"> and EXTAREA = #{EXTAREA}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDrawRecordById" parameterType="String" resultMap="DrawRecordResult">
|
||||
<include refid="selectDrawRecordVo"/>
|
||||
where DRAWRECORDID = #{DRAWRECORDID}
|
||||
</select>
|
||||
|
||||
<insert id="insertDrawRecord" parameterType="DrawRecord">
|
||||
insert into draw_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="DRAWRECORDID != null">DRAWRECORDID,</if>
|
||||
<if test="DRAWTRANSEQNO != null">DRAWTRANSEQNO,</if>
|
||||
<if test="DRAWCODE != null">DRAWCODE,</if>
|
||||
<if test="USERID != null">USERID,</if>
|
||||
<if test="DRAWTIME != null">DRAWTIME,</if>
|
||||
<if test="DRAWRESULT != null">DRAWRESULT,</if>
|
||||
<if test="PRIZECODE != null">PRIZECODE,</if>
|
||||
<if test="PRIZETYPE != null">PRIZETYPE,</if>
|
||||
<if test="CHECKINGDATE != null">CHECKINGDATE,</if>
|
||||
<if test="CREATETIMESTAMP != null">CREATETIMESTAMP,</if>
|
||||
<if test="LASTUPDATETIMESTAMP != null">LASTUPDATETIMESTAMP,</if>
|
||||
<if test="CHANNEL != null">CHANNEL,</if>
|
||||
<if test="USERNAME != null">USERNAME,</if>
|
||||
<if test="PRIZELEVEL != null">PRIZELEVEL,</if>
|
||||
<if test="PROJECTCODE != null">PROJECTCODE,</if>
|
||||
<if test="SOURCE != null">SOURCE,</if>
|
||||
<if test="PHONE != null">PHONE,</if>
|
||||
<if test="EXTAREA != null">EXTAREA,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="DRAWRECORDID != null">#{DRAWRECORDID},</if>
|
||||
<if test="DRAWTRANSEQNO != null">#{DRAWTRANSEQNO},</if>
|
||||
<if test="DRAWCODE != null">#{DRAWCODE},</if>
|
||||
<if test="USERID != null">#{USERID},</if>
|
||||
<if test="DRAWTIME != null">#{DRAWTIME},</if>
|
||||
<if test="DRAWRESULT != null">#{DRAWRESULT},</if>
|
||||
<if test="PRIZECODE != null">#{PRIZECODE},</if>
|
||||
<if test="PRIZETYPE != null">#{PRIZETYPE},</if>
|
||||
<if test="CHECKINGDATE != null">#{CHECKINGDATE},</if>
|
||||
<if test="CREATETIMESTAMP != null">#{CREATETIMESTAMP},</if>
|
||||
<if test="LASTUPDATETIMESTAMP != null">#{LASTUPDATETIMESTAMP},</if>
|
||||
<if test="CHANNEL != null">#{CHANNEL},</if>
|
||||
<if test="USERNAME != null">#{USERNAME},</if>
|
||||
<if test="PRIZELEVEL != null">#{PRIZELEVEL},</if>
|
||||
<if test="PROJECTCODE != null">#{PROJECTCODE},</if>
|
||||
<if test="SOURCE != null">#{SOURCE},</if>
|
||||
<if test="PHONE != null">#{PHONE},</if>
|
||||
<if test="EXTAREA != null">#{EXTAREA},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDrawRecord" parameterType="DrawRecord">
|
||||
update draw_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="DRAWTRANSEQNO != null">DRAWTRANSEQNO = #{DRAWTRANSEQNO},</if>
|
||||
<if test="DRAWCODE != null">DRAWCODE = #{DRAWCODE},</if>
|
||||
<if test="USERID != null">USERID = #{USERID},</if>
|
||||
<if test="DRAWTIME != null">DRAWTIME = #{DRAWTIME},</if>
|
||||
<if test="DRAWRESULT != null">DRAWRESULT = #{DRAWRESULT},</if>
|
||||
<if test="PRIZECODE != null">PRIZECODE = #{PRIZECODE},</if>
|
||||
<if test="PRIZETYPE != null">PRIZETYPE = #{PRIZETYPE},</if>
|
||||
<if test="CHECKINGDATE != null">CHECKINGDATE = #{CHECKINGDATE},</if>
|
||||
<if test="CREATETIMESTAMP != null">CREATETIMESTAMP = #{CREATETIMESTAMP},</if>
|
||||
<if test="LASTUPDATETIMESTAMP != null">LASTUPDATETIMESTAMP = #{LASTUPDATETIMESTAMP},</if>
|
||||
<if test="CHANNEL != null">CHANNEL = #{CHANNEL},</if>
|
||||
<if test="USERNAME != null">USERNAME = #{USERNAME},</if>
|
||||
<if test="PRIZELEVEL != null">PRIZELEVEL = #{PRIZELEVEL},</if>
|
||||
<if test="PROJECTCODE != null">PROJECTCODE = #{PROJECTCODE},</if>
|
||||
<if test="SOURCE != null">SOURCE = #{SOURCE},</if>
|
||||
<if test="PHONE != null">PHONE = #{PHONE},</if>
|
||||
<if test="EXTAREA != null">EXTAREA = #{EXTAREA},</if>
|
||||
</trim>
|
||||
where DRAWRECORDID = #{DRAWRECORDID}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDrawRecordById" parameterType="String">
|
||||
delete from draw_record where DRAWRECORDID = #{DRAWRECORDID}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDrawRecordByIds" parameterType="String">
|
||||
delete from draw_record where DRAWRECORDID in
|
||||
<foreach item="DRAWRECORDID" collection="array" open="(" separator="," close=")">
|
||||
#{DRAWRECORDID}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
|
@ -0,0 +1,168 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('新增抽奖记录信息')" />
|
||||
<th:block th:include="include :: datetimepicker-css" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-record-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">抽奖流水:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="DRAWTRANSEQNO" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">抽奖活动代码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="DRAWCODE" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">用户标识:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="USERID" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">抽奖时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="DRAWTIME" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">抽奖结果:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="DRAWRESULT" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">奖品代码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="PRIZECODE" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">奖品类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="PRIZETYPE" class="form-control m-b">
|
||||
<option value="">所有</option>
|
||||
</select>
|
||||
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">账务日期:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="CHECKINGDATE" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="CREATETIMESTAMP" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">最后修改时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="LASTUPDATETIMESTAMP" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">渠道:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="CHANNEL" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">用户名:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="USERNAME" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">奖品等级:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="PRIZELEVEL" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">奖品项目编码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="PROJECTCODE" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">请求来源:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="SOURCE" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">手机号:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="PHONE" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">扩展域:</label>
|
||||
<div class="col-sm-8">
|
||||
<textarea name="EXTAREA" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: datetimepicker-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "activity/record"
|
||||
$("#form-record-add").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-record-add').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
$("input[name='DRAWTIME']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='CHECKINGDATE']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='CREATETIMESTAMP']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='LASTUPDATETIMESTAMP']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,169 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||
<head>
|
||||
<th:block th:include="include :: header('修改抽奖记录信息')" />
|
||||
<th:block th:include="include :: datetimepicker-css" />
|
||||
</head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-record-edit" th:object="${drawRecord}">
|
||||
<input name="DRAWRECORDID" th:field="*{DRAWRECORDID}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">抽奖流水:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="DRAWTRANSEQNO" th:field="*{DRAWTRANSEQNO}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">抽奖活动代码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="DRAWCODE" th:field="*{DRAWCODE}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">用户标识:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="USERID" th:field="*{USERID}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">抽奖时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="DRAWTIME" th:value="${#dates.format(drawRecord.DRAWTIME, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">抽奖结果:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="DRAWRESULT" th:field="*{DRAWRESULT}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">奖品代码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="PRIZECODE" th:field="*{PRIZECODE}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">奖品类型:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="PRIZETYPE" class="form-control m-b">
|
||||
<option value="">所有</option>
|
||||
</select>
|
||||
<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">账务日期:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="CHECKINGDATE" th:value="${#dates.format(drawRecord.CHECKINGDATE, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="CREATETIMESTAMP" th:value="${#dates.format(drawRecord.CREATETIMESTAMP, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">最后修改时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group date">
|
||||
<input name="LASTUPDATETIMESTAMP" th:value="${#dates.format(drawRecord.LASTUPDATETIMESTAMP, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">渠道:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="CHANNEL" th:field="*{CHANNEL}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">用户名:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="USERNAME" th:field="*{USERNAME}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">奖品等级:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="PRIZELEVEL" th:field="*{PRIZELEVEL}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">奖品项目编码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="PROJECTCODE" th:field="*{PROJECTCODE}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">请求来源:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="SOURCE" th:field="*{SOURCE}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">手机号:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="PHONE" th:field="*{PHONE}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">扩展域:</label>
|
||||
<div class="col-sm-8">
|
||||
<textarea name="EXTAREA" class="form-control">[[*{EXTAREA}]]</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<th:block th:include="include :: datetimepicker-js" />
|
||||
<script th:inline="javascript">
|
||||
var prefix = ctx + "activity/record";
|
||||
$("#form-record-edit").validate({
|
||||
focusCleanup: true
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-record-edit').serialize());
|
||||
}
|
||||
}
|
||||
|
||||
$("input[name='DRAWTIME']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='CHECKINGDATE']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='CREATETIMESTAMP']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$("input[name='LASTUPDATETIMESTAMP']").datetimepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
minView: "month",
|
||||
autoclose: true
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,213 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<head>
|
||||
<th:block th:include="include :: header('抽奖记录信息列表')" />
|
||||
</head>
|
||||
<body class="gray-bg">
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
<label>抽奖流水:</label>
|
||||
<input type="text" name="DRAWTRANSEQNO"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>抽奖活动代码:</label>
|
||||
<input type="text" name="DRAWCODE"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>用户标识:</label>
|
||||
<input type="text" name="USERID"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>抽奖时间:</label>
|
||||
<input type="text" class="time-input" placeholder="请选择抽奖时间" name="DRAWTIME"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>抽奖结果:</label>
|
||||
<input type="text" name="DRAWRESULT"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>奖品代码:</label>
|
||||
<input type="text" name="PRIZECODE"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>奖品类型:</label>
|
||||
<select name="PRIZETYPE">
|
||||
<option value="">所有</option>
|
||||
<option value="-1">代码生成请选择字典属性</option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label>账务日期:</label>
|
||||
<input type="text" class="time-input" placeholder="请选择账务日期" name="CHECKINGDATE"/>
|
||||
</li>
|
||||
<!-- <li>-->
|
||||
<!-- <label>创建时间:</label>-->
|
||||
<!-- <input type="text" class="time-input" placeholder="请选择创建时间" name="CREATETIMESTAMP"/>-->
|
||||
<!-- </li>-->
|
||||
<!-- <li>-->
|
||||
<!-- <label>最后修改时间:</label>-->
|
||||
<!-- <input type="text" class="time-input" placeholder="请选择最后修改时间" name="LASTUPDATETIMESTAMP"/>-->
|
||||
<!-- </li>-->
|
||||
<li>
|
||||
<label>渠道:</label>
|
||||
<input type="text" name="CHANNEL"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>用户名:</label>
|
||||
<input type="text" name="USERNAME"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>奖品等级:</label>
|
||||
<input type="text" name="PRIZELEVEL"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>奖品项目编码:</label>
|
||||
<input type="text" name="PROJECTCODE"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>请求来源:</label>
|
||||
<input type="text" name="SOURCE"/>
|
||||
</li>
|
||||
<li>
|
||||
<label>手机号:</label>
|
||||
<input type="text" name="PHONE"/>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="activity:record:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="activity:record:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="activity:record:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="activity:record:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<th:block th:include="include :: footer" />
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('activity:record:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('activity:record:remove')}]];
|
||||
var prefix = ctx + "activity/record";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "抽奖记录信息",
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field: 'drawrecordid',
|
||||
title: '主键',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field: 'drawtranseqno',
|
||||
title: '抽奖流水'
|
||||
},
|
||||
{
|
||||
field: 'drawcode',
|
||||
title: '抽奖活动代码'
|
||||
},
|
||||
{
|
||||
field: 'userid',
|
||||
title: '用户标识'
|
||||
},
|
||||
{
|
||||
field: 'DRAWTIME',
|
||||
title: '抽奖时间'
|
||||
},
|
||||
{
|
||||
field: 'drawresult',
|
||||
title: '抽奖结果'
|
||||
},
|
||||
{
|
||||
field: 'prizecode',
|
||||
title: '奖品代码'
|
||||
},
|
||||
{
|
||||
field: 'prizetype',
|
||||
title: '奖品类型'
|
||||
},
|
||||
{
|
||||
field: 'CHECKINGDATE',
|
||||
title: '账务日期'
|
||||
},
|
||||
// {
|
||||
// field: 'CREATETIMESTAMP',
|
||||
// title: '创建时间'
|
||||
// },
|
||||
// {
|
||||
// field: 'LASTUPDATETIMESTAMP',
|
||||
// title: '最后修改时间'
|
||||
// },
|
||||
{
|
||||
field: 'channel',
|
||||
title: '渠道'
|
||||
},
|
||||
{
|
||||
field: 'username',
|
||||
title: '用户名'
|
||||
},
|
||||
{
|
||||
field: 'prizelevel',
|
||||
title: '奖品等级'
|
||||
},
|
||||
{
|
||||
field: 'projectcode',
|
||||
title: '奖品项目编码'
|
||||
},
|
||||
{
|
||||
field: 'source',
|
||||
title: '请求来源'
|
||||
},
|
||||
{
|
||||
field: 'phone',
|
||||
title: '手机号'
|
||||
},
|
||||
{
|
||||
field: 'extarea',
|
||||
title: '扩展域'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.drawrecordid + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.drawrecordid + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue