活动管理模块添加
This commit is contained in:
parent
f94df2fa20
commit
ebdb2c3a17
|
|
@ -0,0 +1,126 @@
|
||||||
|
package cn.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 cn.com.sinosoft.activity.domain.DrawPrizeInfo;
|
||||||
|
import cn.com.sinosoft.activity.service.IDrawPrizeInfoService;
|
||||||
|
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 dy
|
||||||
|
* @date 2021-03-25
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/activity/info")
|
||||||
|
public class DrawPrizeInfoController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "activity/info";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IDrawPrizeInfoService drawPrizeInfoService;
|
||||||
|
|
||||||
|
@RequiresPermissions("activity:info:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String info()
|
||||||
|
{
|
||||||
|
return prefix + "/info";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询存储奖品的基础信息列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("activity:info:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(DrawPrizeInfo drawPrizeInfo)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<DrawPrizeInfo> list = drawPrizeInfoService.selectDrawPrizeInfoList(drawPrizeInfo);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出存储奖品的基础信息列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("activity:info:export")
|
||||||
|
@Log(title = "存储奖品的基础信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(DrawPrizeInfo drawPrizeInfo)
|
||||||
|
{
|
||||||
|
List<DrawPrizeInfo> list = drawPrizeInfoService.selectDrawPrizeInfoList(drawPrizeInfo);
|
||||||
|
ExcelUtil<DrawPrizeInfo> util = new ExcelUtil<DrawPrizeInfo>(DrawPrizeInfo.class);
|
||||||
|
return util.exportExcel(list, "info");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增存储奖品的基础信息
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存存储奖品的基础信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("activity:info:add")
|
||||||
|
@Log(title = "存储奖品的基础信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(DrawPrizeInfo drawPrizeInfo)
|
||||||
|
{
|
||||||
|
return toAjax(drawPrizeInfoService.insertDrawPrizeInfo(drawPrizeInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改存储奖品的基础信息
|
||||||
|
*/
|
||||||
|
@GetMapping("/edit/{PRIZEID}")
|
||||||
|
public String edit(@PathVariable("PRIZEID") String PRIZEID, ModelMap mmap)
|
||||||
|
{
|
||||||
|
DrawPrizeInfo drawPrizeInfo = drawPrizeInfoService.selectDrawPrizeInfoById(PRIZEID);
|
||||||
|
mmap.put("drawPrizeInfo", drawPrizeInfo);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存存储奖品的基础信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("activity:info:edit")
|
||||||
|
@Log(title = "存储奖品的基础信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(DrawPrizeInfo drawPrizeInfo)
|
||||||
|
{
|
||||||
|
return toAjax(drawPrizeInfoService.updateDrawPrizeInfo(drawPrizeInfo));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除存储奖品的基础信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("activity:info:remove")
|
||||||
|
@Log(title = "存储奖品的基础信息", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(drawPrizeInfoService.deleteDrawPrizeInfoByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,167 @@
|
||||||
|
package cn.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_prize_info
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @date 2021-03-25
|
||||||
|
*/
|
||||||
|
public class DrawPrizeInfo extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 业务主键 */
|
||||||
|
private String PRIZEID;
|
||||||
|
|
||||||
|
/** 奖品代码 */
|
||||||
|
@Excel(name = "奖品代码")
|
||||||
|
private String PRIZECODE;
|
||||||
|
|
||||||
|
/** 奖品名称 */
|
||||||
|
@Excel(name = "奖品名称")
|
||||||
|
private String PRIZENAME;
|
||||||
|
|
||||||
|
/** 奖品类型 */
|
||||||
|
@Excel(name = "奖品类型")
|
||||||
|
private String PRIZETYPE;
|
||||||
|
|
||||||
|
/** 奖品面额 */
|
||||||
|
@Excel(name = "奖品面额")
|
||||||
|
private Long PRIZEVALUE;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
@Excel(name = "备注")
|
||||||
|
private String COMMENTS;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
@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;
|
||||||
|
|
||||||
|
/** 状态 0 未启用,1 启用 */
|
||||||
|
@Excel(name = "状态 0 未启用,1 启用")
|
||||||
|
private String STATUS;
|
||||||
|
|
||||||
|
/** 积分项目编码 */
|
||||||
|
@Excel(name = "积分项目编码")
|
||||||
|
private String INTEGRALPROJECTCODE;
|
||||||
|
|
||||||
|
public void setPRIZEID(String PRIZEID)
|
||||||
|
{
|
||||||
|
this.PRIZEID = PRIZEID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPRIZEID()
|
||||||
|
{
|
||||||
|
return PRIZEID;
|
||||||
|
}
|
||||||
|
public void setPRIZECODE(String PRIZECODE)
|
||||||
|
{
|
||||||
|
this.PRIZECODE = PRIZECODE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPRIZECODE()
|
||||||
|
{
|
||||||
|
return PRIZECODE;
|
||||||
|
}
|
||||||
|
public void setPRIZENAME(String PRIZENAME)
|
||||||
|
{
|
||||||
|
this.PRIZENAME = PRIZENAME;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPRIZENAME()
|
||||||
|
{
|
||||||
|
return PRIZENAME;
|
||||||
|
}
|
||||||
|
public void setPRIZETYPE(String PRIZETYPE)
|
||||||
|
{
|
||||||
|
this.PRIZETYPE = PRIZETYPE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPRIZETYPE()
|
||||||
|
{
|
||||||
|
return PRIZETYPE;
|
||||||
|
}
|
||||||
|
public void setPRIZEVALUE(Long PRIZEVALUE)
|
||||||
|
{
|
||||||
|
this.PRIZEVALUE = PRIZEVALUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPRIZEVALUE()
|
||||||
|
{
|
||||||
|
return PRIZEVALUE;
|
||||||
|
}
|
||||||
|
public void setCOMMENTS(String COMMENTS)
|
||||||
|
{
|
||||||
|
this.COMMENTS = COMMENTS;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCOMMENTS()
|
||||||
|
{
|
||||||
|
return COMMENTS;
|
||||||
|
}
|
||||||
|
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 setSTATUS(String STATUS)
|
||||||
|
{
|
||||||
|
this.STATUS = STATUS;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSTATUS()
|
||||||
|
{
|
||||||
|
return STATUS;
|
||||||
|
}
|
||||||
|
public void setINTEGRALPROJECTCODE(String INTEGRALPROJECTCODE)
|
||||||
|
{
|
||||||
|
this.INTEGRALPROJECTCODE = INTEGRALPROJECTCODE;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getINTEGRALPROJECTCODE()
|
||||||
|
{
|
||||||
|
return INTEGRALPROJECTCODE;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("PRIZEID", getPRIZEID())
|
||||||
|
.append("PRIZECODE", getPRIZECODE())
|
||||||
|
.append("PRIZENAME", getPRIZENAME())
|
||||||
|
.append("PRIZETYPE", getPRIZETYPE())
|
||||||
|
.append("PRIZEVALUE", getPRIZEVALUE())
|
||||||
|
.append("COMMENTS", getCOMMENTS())
|
||||||
|
.append("CREATETIMESTAMP", getCREATETIMESTAMP())
|
||||||
|
.append("LASTUPDATETIMESTAMP", getLASTUPDATETIMESTAMP())
|
||||||
|
.append("STATUS", getSTATUS())
|
||||||
|
.append("INTEGRALPROJECTCODE", getINTEGRALPROJECTCODE())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package cn.com.sinosoft.activity.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.com.sinosoft.activity.domain.DrawPrizeInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 存储奖品的基础信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @date 2021-03-25
|
||||||
|
*/
|
||||||
|
public interface DrawPrizeInfoMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询存储奖品的基础信息
|
||||||
|
*
|
||||||
|
* @param PRIZEID 存储奖品的基础信息ID
|
||||||
|
* @return 存储奖品的基础信息
|
||||||
|
*/
|
||||||
|
public DrawPrizeInfo selectDrawPrizeInfoById(String PRIZEID);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询存储奖品的基础信息列表
|
||||||
|
*
|
||||||
|
* @param drawPrizeInfo 存储奖品的基础信息
|
||||||
|
* @return 存储奖品的基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DrawPrizeInfo> selectDrawPrizeInfoList(DrawPrizeInfo drawPrizeInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增存储奖品的基础信息
|
||||||
|
*
|
||||||
|
* @param drawPrizeInfo 存储奖品的基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDrawPrizeInfo(DrawPrizeInfo drawPrizeInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改存储奖品的基础信息
|
||||||
|
*
|
||||||
|
* @param drawPrizeInfo 存储奖品的基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDrawPrizeInfo(DrawPrizeInfo drawPrizeInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除存储奖品的基础信息
|
||||||
|
*
|
||||||
|
* @param PRIZEID 存储奖品的基础信息ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDrawPrizeInfoById(String PRIZEID);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除存储奖品的基础信息
|
||||||
|
*
|
||||||
|
* @param PRIZEIDs 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDrawPrizeInfoByIds(String[] PRIZEIDs);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package cn.com.sinosoft.activity.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import cn.com.sinosoft.activity.domain.DrawPrizeInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 存储奖品的基础信息Service接口
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @date 2021-03-25
|
||||||
|
*/
|
||||||
|
public interface IDrawPrizeInfoService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询存储奖品的基础信息
|
||||||
|
*
|
||||||
|
* @param PRIZEID 存储奖品的基础信息ID
|
||||||
|
* @return 存储奖品的基础信息
|
||||||
|
*/
|
||||||
|
public DrawPrizeInfo selectDrawPrizeInfoById(String PRIZEID);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询存储奖品的基础信息列表
|
||||||
|
*
|
||||||
|
* @param drawPrizeInfo 存储奖品的基础信息
|
||||||
|
* @return 存储奖品的基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DrawPrizeInfo> selectDrawPrizeInfoList(DrawPrizeInfo drawPrizeInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增存储奖品的基础信息
|
||||||
|
*
|
||||||
|
* @param drawPrizeInfo 存储奖品的基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDrawPrizeInfo(DrawPrizeInfo drawPrizeInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改存储奖品的基础信息
|
||||||
|
*
|
||||||
|
* @param drawPrizeInfo 存储奖品的基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDrawPrizeInfo(DrawPrizeInfo drawPrizeInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除存储奖品的基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDrawPrizeInfoByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除存储奖品的基础信息信息
|
||||||
|
*
|
||||||
|
* @param PRIZEID 存储奖品的基础信息ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDrawPrizeInfoById(String PRIZEID);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,94 @@
|
||||||
|
package cn.com.sinosoft.activity.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import cn.com.sinosoft.activity.mapper.DrawPrizeInfoMapper;
|
||||||
|
import cn.com.sinosoft.activity.domain.DrawPrizeInfo;
|
||||||
|
import cn.com.sinosoft.activity.service.IDrawPrizeInfoService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 存储奖品的基础信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @date 2021-03-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DrawPrizeInfoServiceImpl implements IDrawPrizeInfoService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private DrawPrizeInfoMapper drawPrizeInfoMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询存储奖品的基础信息
|
||||||
|
*
|
||||||
|
* @param PRIZEID 存储奖品的基础信息ID
|
||||||
|
* @return 存储奖品的基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public DrawPrizeInfo selectDrawPrizeInfoById(String PRIZEID)
|
||||||
|
{
|
||||||
|
return drawPrizeInfoMapper.selectDrawPrizeInfoById(PRIZEID);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询存储奖品的基础信息列表
|
||||||
|
*
|
||||||
|
* @param drawPrizeInfo 存储奖品的基础信息
|
||||||
|
* @return 存储奖品的基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<DrawPrizeInfo> selectDrawPrizeInfoList(DrawPrizeInfo drawPrizeInfo)
|
||||||
|
{
|
||||||
|
return drawPrizeInfoMapper.selectDrawPrizeInfoList(drawPrizeInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增存储奖品的基础信息
|
||||||
|
*
|
||||||
|
* @param drawPrizeInfo 存储奖品的基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertDrawPrizeInfo(DrawPrizeInfo drawPrizeInfo)
|
||||||
|
{
|
||||||
|
return drawPrizeInfoMapper.insertDrawPrizeInfo(drawPrizeInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改存储奖品的基础信息
|
||||||
|
*
|
||||||
|
* @param drawPrizeInfo 存储奖品的基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateDrawPrizeInfo(DrawPrizeInfo drawPrizeInfo)
|
||||||
|
{
|
||||||
|
return drawPrizeInfoMapper.updateDrawPrizeInfo(drawPrizeInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除存储奖品的基础信息对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDrawPrizeInfoByIds(String ids)
|
||||||
|
{
|
||||||
|
return drawPrizeInfoMapper.deleteDrawPrizeInfoByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除存储奖品的基础信息信息
|
||||||
|
*
|
||||||
|
* @param PRIZEID 存储奖品的基础信息ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDrawPrizeInfoById(String PRIZEID)
|
||||||
|
{
|
||||||
|
return drawPrizeInfoMapper.deleteDrawPrizeInfoById(PRIZEID);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,99 @@
|
||||||
|
<?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="cn.com.sinosoft.activity.mapper.DrawPrizeInfoMapper">
|
||||||
|
|
||||||
|
<resultMap type="DrawPrizeInfo" id="DrawPrizeInfoResult">
|
||||||
|
<result property="PRIZEID" column="PRIZEID" />
|
||||||
|
<result property="PRIZECODE" column="PRIZECODE" />
|
||||||
|
<result property="PRIZENAME" column="PRIZENAME" />
|
||||||
|
<result property="PRIZETYPE" column="PRIZETYPE" />
|
||||||
|
<result property="PRIZEVALUE" column="PRIZEVALUE" />
|
||||||
|
<result property="COMMENTS" column="COMMENTS" />
|
||||||
|
<result property="CREATETIMESTAMP" column="CREATETIMESTAMP" />
|
||||||
|
<result property="LASTUPDATETIMESTAMP" column="LASTUPDATETIMESTAMP" />
|
||||||
|
<result property="STATUS" column="STATUS" />
|
||||||
|
<result property="INTEGRALPROJECTCODE" column="INTEGRALPROJECTCODE" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectDrawPrizeInfoVo">
|
||||||
|
select PRIZEID, PRIZECODE, PRIZENAME, PRIZETYPE, PRIZEVALUE, COMMENTS, CREATETIMESTAMP, LASTUPDATETIMESTAMP, STATUS, INTEGRALPROJECTCODE from draw_prize_info
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectDrawPrizeInfoList" parameterType="DrawPrizeInfo" resultMap="DrawPrizeInfoResult">
|
||||||
|
<include refid="selectDrawPrizeInfoVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="PRIZECODE != null and PRIZECODE != ''"> and PRIZECODE = #{PRIZECODE}</if>
|
||||||
|
<if test="PRIZENAME != null and PRIZENAME != ''"> and PRIZENAME like concat('%', #{PRIZENAME}, '%')</if>
|
||||||
|
<if test="PRIZETYPE != null and PRIZETYPE != ''"> and PRIZETYPE = #{PRIZETYPE}</if>
|
||||||
|
<if test="PRIZEVALUE != null "> and PRIZEVALUE = #{PRIZEVALUE}</if>
|
||||||
|
<if test="COMMENTS != null and COMMENTS != ''"> and COMMENTS = #{COMMENTS}</if>
|
||||||
|
<if test="CREATETIMESTAMP != null "> and CREATETIMESTAMP = #{CREATETIMESTAMP}</if>
|
||||||
|
<if test="LASTUPDATETIMESTAMP != null "> and LASTUPDATETIMESTAMP = #{LASTUPDATETIMESTAMP}</if>
|
||||||
|
<if test="STATUS != null and STATUS != ''"> and STATUS = #{STATUS}</if>
|
||||||
|
<if test="INTEGRALPROJECTCODE != null and INTEGRALPROJECTCODE != ''"> and INTEGRALPROJECTCODE = #{INTEGRALPROJECTCODE}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectDrawPrizeInfoById" parameterType="String" resultMap="DrawPrizeInfoResult">
|
||||||
|
<include refid="selectDrawPrizeInfoVo"/>
|
||||||
|
where PRIZEID = #{PRIZEID}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertDrawPrizeInfo" parameterType="DrawPrizeInfo">
|
||||||
|
insert into draw_prize_info
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="PRIZEID != null">PRIZEID,</if>
|
||||||
|
<if test="PRIZECODE != null">PRIZECODE,</if>
|
||||||
|
<if test="PRIZENAME != null">PRIZENAME,</if>
|
||||||
|
<if test="PRIZETYPE != null">PRIZETYPE,</if>
|
||||||
|
<if test="PRIZEVALUE != null">PRIZEVALUE,</if>
|
||||||
|
<if test="COMMENTS != null">COMMENTS,</if>
|
||||||
|
<if test="CREATETIMESTAMP != null">CREATETIMESTAMP,</if>
|
||||||
|
<if test="LASTUPDATETIMESTAMP != null">LASTUPDATETIMESTAMP,</if>
|
||||||
|
<if test="STATUS != null">STATUS,</if>
|
||||||
|
<if test="INTEGRALPROJECTCODE != null">INTEGRALPROJECTCODE,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="PRIZEID != null">#{PRIZEID},</if>
|
||||||
|
<if test="PRIZECODE != null">#{PRIZECODE},</if>
|
||||||
|
<if test="PRIZENAME != null">#{PRIZENAME},</if>
|
||||||
|
<if test="PRIZETYPE != null">#{PRIZETYPE},</if>
|
||||||
|
<if test="PRIZEVALUE != null">#{PRIZEVALUE},</if>
|
||||||
|
<if test="COMMENTS != null">#{COMMENTS},</if>
|
||||||
|
<if test="CREATETIMESTAMP != null">#{CREATETIMESTAMP},</if>
|
||||||
|
<if test="LASTUPDATETIMESTAMP != null">#{LASTUPDATETIMESTAMP},</if>
|
||||||
|
<if test="STATUS != null">#{STATUS},</if>
|
||||||
|
<if test="INTEGRALPROJECTCODE != null">#{INTEGRALPROJECTCODE},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateDrawPrizeInfo" parameterType="DrawPrizeInfo">
|
||||||
|
update draw_prize_info
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="PRIZECODE != null">PRIZECODE = #{PRIZECODE},</if>
|
||||||
|
<if test="PRIZENAME != null">PRIZENAME = #{PRIZENAME},</if>
|
||||||
|
<if test="PRIZETYPE != null">PRIZETYPE = #{PRIZETYPE},</if>
|
||||||
|
<if test="PRIZEVALUE != null">PRIZEVALUE = #{PRIZEVALUE},</if>
|
||||||
|
<if test="COMMENTS != null">COMMENTS = #{COMMENTS},</if>
|
||||||
|
<if test="CREATETIMESTAMP != null">CREATETIMESTAMP = #{CREATETIMESTAMP},</if>
|
||||||
|
<if test="LASTUPDATETIMESTAMP != null">LASTUPDATETIMESTAMP = #{LASTUPDATETIMESTAMP},</if>
|
||||||
|
<if test="STATUS != null">STATUS = #{STATUS},</if>
|
||||||
|
<if test="INTEGRALPROJECTCODE != null">INTEGRALPROJECTCODE = #{INTEGRALPROJECTCODE},</if>
|
||||||
|
</trim>
|
||||||
|
where PRIZEID = #{PRIZEID}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteDrawPrizeInfoById" parameterType="String">
|
||||||
|
delete from draw_prize_info where PRIZEID = #{PRIZEID}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteDrawPrizeInfoByIds" parameterType="String">
|
||||||
|
delete from draw_prize_info where PRIZEID in
|
||||||
|
<foreach item="PRIZEID" collection="array" open="(" separator="," close=")">
|
||||||
|
#{PRIZEID}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
@ -0,0 +1,106 @@
|
||||||
|
<!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-info-add">
|
||||||
|
<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">
|
||||||
|
<input name="PRIZENAME" 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">
|
||||||
|
<input name="PRIZEVALUE" 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="COMMENTS" class="form-control"></textarea>
|
||||||
|
</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">状态 0 未启用,1 启用:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<div class="radio-box">
|
||||||
|
<input type="radio" name="STATUS" value="">
|
||||||
|
<label th:for="STATUS" th:text="未知"></label>
|
||||||
|
</div>
|
||||||
|
<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">
|
||||||
|
<input name="INTEGRALPROJECTCODE" class="form-control" type="text">
|
||||||
|
</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/info"
|
||||||
|
$("#form-info-add").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/add", $('#form-info-add').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$("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,107 @@
|
||||||
|
<!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-info-edit" th:object="${drawPrizeInfo}">
|
||||||
|
<input name="PRIZEID" th:field="*{PRIZEID}" type="hidden">
|
||||||
|
<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">
|
||||||
|
<input name="PRIZENAME" th:field="*{PRIZENAME}" 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">
|
||||||
|
<input name="PRIZEVALUE" th:field="*{PRIZEVALUE}" 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="COMMENTS" class="form-control">[[*{COMMENTS}]]</textarea>
|
||||||
|
</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(drawPrizeInfo.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(drawPrizeInfo.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">状态 0 未启用,1 启用:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<div class="radio-box">
|
||||||
|
<input type="radio" name="STATUS" value="">
|
||||||
|
<label th:for="STATUS" th:text="未知"></label>
|
||||||
|
</div>
|
||||||
|
<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">
|
||||||
|
<input name="INTEGRALPROJECTCODE" th:field="*{INTEGRALPROJECTCODE}" class="form-control" type="text">
|
||||||
|
</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/info";
|
||||||
|
$("#form-info-edit").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/edit", $('#form-info-edit').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$("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,152 @@
|
||||||
|
<!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="PRIZECODE"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>奖品名称:</label>
|
||||||
|
<input type="text" name="PRIZENAME"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>奖品类型:</label>
|
||||||
|
<select name="PRIZETYPE">
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option value="-1">代码生成请选择字典属性</option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>奖品面额:</label>
|
||||||
|
<input type="text" name="PRIZEVALUE"/>
|
||||||
|
</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>状态 0 未启用,1 启用:</label>
|
||||||
|
<select name="STATUS">
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option value="-1">代码生成请选择字典属性</option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>积分项目编码:</label>
|
||||||
|
<input type="text" name="INTEGRALPROJECTCODE"/>
|
||||||
|
</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:info:add">
|
||||||
|
<i class="fa fa-plus"></i> 添加
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="activity:info:edit">
|
||||||
|
<i class="fa fa-edit"></i> 修改
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="activity:info:remove">
|
||||||
|
<i class="fa fa-remove"></i> 删除
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="activity:info: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:info:edit')}]];
|
||||||
|
var removeFlag = [[${@permission.hasPermi('activity:info:remove')}]];
|
||||||
|
var prefix = ctx + "activity/info";
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/list",
|
||||||
|
createUrl: prefix + "/add",
|
||||||
|
updateUrl: prefix + "/edit/{id}",
|
||||||
|
removeUrl: prefix + "/remove",
|
||||||
|
exportUrl: prefix + "/export",
|
||||||
|
modalName: "存储奖品的基础信息",
|
||||||
|
columns: [{
|
||||||
|
checkbox: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'PRIZEID',
|
||||||
|
title: '业务主键',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'PRIZECODE',
|
||||||
|
title: '奖品代码'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'PRIZENAME',
|
||||||
|
title: '奖品名称'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'PRIZETYPE',
|
||||||
|
title: '奖品类型'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'PRIZEVALUE',
|
||||||
|
title: '奖品面额'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'COMMENTS',
|
||||||
|
title: '备注'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'CREATETIMESTAMP',
|
||||||
|
title: '创建时间'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'LASTUPDATETIMESTAMP',
|
||||||
|
title: '最后修改时间'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'STATUS',
|
||||||
|
title: '状态 0 未启用,1 启用'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'INTEGRALPROJECTCODE',
|
||||||
|
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.PRIZEID + '\')"><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.PRIZEID + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||||
|
return actions.join('');
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Reference in New Issue