Merge remote-tracking branch 'origin/activity' into activity_xlh
This commit is contained in:
commit
bf6ca95d16
|
|
@ -510,6 +510,36 @@ var table = {
|
||||||
});
|
});
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
},
|
},
|
||||||
|
// 回显活动名称
|
||||||
|
selectDrawname: function(datas, value) {
|
||||||
|
if ($.common.isEmpty(datas) || $.common.isEmpty(value)) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
var actions = [];
|
||||||
|
$.each(datas, function(index, draw) {
|
||||||
|
if (draw.drawcode == ('' + value)) {
|
||||||
|
var listClass = $.common.equals("default", draw.listClass) || $.common.isEmpty(draw.listClass) ? "" : "badge badge-" + draw.listClass;
|
||||||
|
actions.push($.common.sprintf("<span class='%s'>%s</span>", listClass, draw.drawname));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return actions.join('');
|
||||||
|
},
|
||||||
|
// 回显奖品名称
|
||||||
|
selectprivename: function(datas, value) {
|
||||||
|
if ($.common.isEmpty(datas) || $.common.isEmpty(value)) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
var actions = [];
|
||||||
|
$.each(datas, function(index, draw) {
|
||||||
|
if (draw.prizecode == ('' + value)) {
|
||||||
|
var listClass = $.common.equals("default", draw.listClass) || $.common.isEmpty(draw.listClass) ? "" : "badge badge-" + draw.listClass;
|
||||||
|
actions.push($.common.sprintf("<span class='%s'>%s</span>", listClass, draw.prizename));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
return actions.join('');
|
||||||
|
},
|
||||||
// 回显数据字典(字符串数组)
|
// 回显数据字典(字符串数组)
|
||||||
selectDictLabels: function(datas, value, separator) {
|
selectDictLabels: function(datas, value, separator) {
|
||||||
if ($.common.isEmpty(datas) || $.common.isEmpty(value)) {
|
if ($.common.isEmpty(datas) || $.common.isEmpty(value)) {
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,8 @@ public interface DrawInfoMapper
|
||||||
*/
|
*/
|
||||||
public List<DrawInfo> selectDrawInfoList(DrawInfo drawInfo);
|
public List<DrawInfo> selectDrawInfoList(DrawInfo drawInfo);
|
||||||
|
|
||||||
|
List<DrawInfo> findDrawInfoList();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增抽奖活动管理对象
|
* 新增抽奖活动管理对象
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,8 @@ public interface DrawPrizeInfoMapper
|
||||||
*/
|
*/
|
||||||
public List<DrawPrizeInfo> selectDrawPrizeInfoList(DrawPrizeInfo drawPrizeInfo);
|
public List<DrawPrizeInfo> selectDrawPrizeInfoList(DrawPrizeInfo drawPrizeInfo);
|
||||||
|
|
||||||
|
List<DrawPrizeInfo> findDrawPrizeInfoList();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增存储奖品的基础信息
|
* 新增存储奖品的基础信息
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@ public interface IDrawInfoService
|
||||||
*/
|
*/
|
||||||
public List<DrawInfo> selectDrawInfoList(DrawInfo drawInfo);
|
public List<DrawInfo> selectDrawInfoList(DrawInfo drawInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询活动列表-下拉用
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public List<DrawInfo> findDrawInfoList();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增抽奖活动管理对象
|
* 新增抽奖活动管理对象
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,12 @@ public interface IDrawPrizeInfoService
|
||||||
*/
|
*/
|
||||||
public List<DrawPrizeInfo> selectDrawPrizeInfoList(DrawPrizeInfo drawPrizeInfo);
|
public List<DrawPrizeInfo> selectDrawPrizeInfoList(DrawPrizeInfo drawPrizeInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 奖品列表-下拉框
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<DrawPrizeInfo> findDrawPrizeInfoList();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增存储奖品的基础信息
|
* 新增存储奖品的基础信息
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import com.ruoyi.common.core.text.Convert;
|
||||||
* @author xlh
|
* @author xlh
|
||||||
* @date 2021-03-25
|
* @date 2021-03-25
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service("drawInfo")
|
||||||
public class DrawInfoServiceImpl implements IDrawInfoService
|
public class DrawInfoServiceImpl implements IDrawInfoService
|
||||||
{
|
{
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
@ -46,6 +46,11 @@ public class DrawInfoServiceImpl implements IDrawInfoService
|
||||||
return drawInfoMapper.selectDrawInfoList(drawInfo);
|
return drawInfoMapper.selectDrawInfoList(drawInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DrawInfo> findDrawInfoList() {
|
||||||
|
return drawInfoMapper.findDrawInfoList();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增抽奖活动管理对象
|
* 新增抽奖活动管理对象
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import com.ruoyi.common.core.text.Convert;
|
||||||
* @author dy
|
* @author dy
|
||||||
* @date 2021-03-25
|
* @date 2021-03-25
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service("drawPrize")
|
||||||
public class DrawPrizeInfoServiceImpl implements IDrawPrizeInfoService
|
public class DrawPrizeInfoServiceImpl implements IDrawPrizeInfoService
|
||||||
{
|
{
|
||||||
@Autowired
|
@Autowired
|
||||||
|
|
@ -45,6 +45,11 @@ public class DrawPrizeInfoServiceImpl implements IDrawPrizeInfoService
|
||||||
return drawPrizeInfoMapper.selectDrawPrizeInfoList(drawPrizeInfo);
|
return drawPrizeInfoMapper.selectDrawPrizeInfoList(drawPrizeInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DrawPrizeInfo> findDrawPrizeInfoList() {
|
||||||
|
return drawPrizeInfoMapper.findDrawPrizeInfoList();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增存储奖品的基础信息
|
* 新增存储奖品的基础信息
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="findDrawInfoList" resultMap="DrawInfoResult">
|
||||||
|
select DRAWID, DRAWCODE, DRAWTYPE, DRAWNAME from draw_info
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="selectDrawInfoById" parameterType="String" resultMap="DrawInfoResult">
|
<select id="selectDrawInfoById" parameterType="String" resultMap="DrawInfoResult">
|
||||||
SELECT
|
SELECT
|
||||||
i.DRAWID,
|
i.DRAWID,
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="findDrawPrizeInfoList" resultMap="DrawPrizeInfoResult">
|
||||||
|
<include refid="selectDrawPrizeInfoVo"/>
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="selectDrawPrizeInfoById" parameterType="java.lang.String" resultMap="DrawPrizeInfoResult">
|
<select id="selectDrawPrizeInfoById" parameterType="java.lang.String" resultMap="DrawPrizeInfoResult">
|
||||||
<include refid="selectDrawPrizeInfoVo"/>
|
<include refid="selectDrawPrizeInfoVo"/>
|
||||||
where PRIZEID = #{PRIZEID}
|
where PRIZEID = #{PRIZEID}
|
||||||
|
|
|
||||||
|
|
@ -11,48 +11,54 @@
|
||||||
<div class="select-list">
|
<div class="select-list">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<label>活动代码:</label>
|
<label>活动名称:</label>
|
||||||
<input type="text" name="DRAWCODE"/>
|
<select name="DRAWCODE" th:with="drawinfo=${@drawInfo.findDrawInfoList()}">
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option th:each="drawInfo : ${drawinfo}" th:text="${drawInfo.DRAWNAME}"
|
||||||
|
th:value="${drawInfo.DRAWCODE}"></option>
|
||||||
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>任务流水:</label>
|
<label>任务流水:</label>
|
||||||
<input type="text" name="TASKID"/>
|
<input type="text" name="TASKID"/>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<label>次数类型:</label>
|
<label>用户标识:</label>
|
||||||
<select name="TYPE" th:with="type=${@dict.getType('drawType')}">
|
<input type="text" name="USERID"/>
|
||||||
<option value="">所有</option>
|
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
||||||
</select>
|
|
||||||
</li>
|
</li>
|
||||||
<!-- <li>-->
|
<!-- <li>-->
|
||||||
|
<!-- <label>手机号:</label>-->
|
||||||
|
<!-- <input type="text" name="PHONE"/>-->
|
||||||
|
<!-- </li>-->
|
||||||
|
<!-- <li>-->
|
||||||
|
<!-- <label>身份认证状态:</label>-->
|
||||||
|
<!-- <input type="text" name="VSTATE"/>-->
|
||||||
|
<!-- </li>-->
|
||||||
|
<!-- <li>-->
|
||||||
|
<!-- <label>用户等级:</label>-->
|
||||||
|
<!-- <input type="text" name="ULEVEL"/>-->
|
||||||
|
<!-- </li>-->
|
||||||
|
<!-- <li>-->
|
||||||
|
<!-- <label>次数类型:</label>-->
|
||||||
|
<!-- <select name="TYPE" th:with="type=${@dict.getType('drawType')}" style="width: 80px">-->
|
||||||
|
<!-- <option value="">所有</option>-->
|
||||||
|
<!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
|
||||||
|
<!-- </select>-->
|
||||||
|
<!-- </li>-->
|
||||||
|
<!-- <li>-->
|
||||||
<!-- <label>赠送次数:</label>-->
|
<!-- <label>赠送次数:</label>-->
|
||||||
<!-- <input type="text" name="ADDNUMBER"/>-->
|
<!-- <input type="text" name="ADDNUMBER"/>-->
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
<li>
|
<li>
|
||||||
<label>状态:</label>
|
<label>状态:</label>
|
||||||
<select name="STATE" th:with="type=${@dict.getType('status')}">
|
<select name="STATE" th:with="type=${@dict.getType('status')}" style="width: 80px">
|
||||||
<option value="">所有</option>
|
<option value="">所有</option>
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||||
|
th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<!-- <li>-->
|
<!-- <li>-->
|
||||||
<!-- <label>可用次数:</label>-->
|
|
||||||
<!-- <input type="text" name="AVAILABLENUMBER"/>-->
|
|
||||||
<!-- </li>-->
|
|
||||||
<li>
|
|
||||||
<label>手机号:</label>
|
|
||||||
<input type="text" name="PHONE"/>
|
|
||||||
</li>
|
|
||||||
<!-- <li>-->
|
|
||||||
<!-- <label>身份认证状态:</label>-->
|
|
||||||
<!-- <input type="text" name="VSTATE"/>-->
|
|
||||||
<!-- </li>-->
|
|
||||||
<li>
|
|
||||||
<label>用户等级:</label>
|
|
||||||
<input type="text" name="ULEVEL"/>
|
|
||||||
</li>
|
|
||||||
<!-- <li>-->
|
|
||||||
<!-- <label>请求来源:</label>-->
|
<!-- <label>请求来源:</label>-->
|
||||||
<!-- <input type="text" name="SOURCE"/>-->
|
<!-- <input type="text" name="SOURCE"/>-->
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
|
|
@ -61,8 +67,10 @@
|
||||||
<!-- <input type="text" name="ISSPECIALFLAG"/>-->
|
<!-- <input type="text" name="ISSPECIALFLAG"/>-->
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
<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-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
||||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -79,7 +87,8 @@
|
||||||
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="activity:DrawTaskNotify:remove">-->
|
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="activity:DrawTaskNotify:remove">-->
|
||||||
<!-- <i class="fa fa-remove"></i> 删除-->
|
<!-- <i class="fa fa-remove"></i> 删除-->
|
||||||
<!-- </a>-->
|
<!-- </a>-->
|
||||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="activity:DrawTaskNotify:export">
|
<a class="btn btn-warning" onclick="$.table.exportExcel()"
|
||||||
|
shiro:hasPermission="activity:DrawTaskNotify:export">
|
||||||
<i class="fa fa-download"></i> 导出
|
<i class="fa fa-download"></i> 导出
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -95,6 +104,7 @@
|
||||||
var STATEDatas = [[${@dict.getType('status')}]];
|
var STATEDatas = [[${@dict.getType('status')}]];
|
||||||
var prefix = ctx + "activity/DrawTaskNotify";
|
var prefix = ctx + "activity/DrawTaskNotify";
|
||||||
var drawTypes = [[${@dict.getType('drawType')}]];
|
var drawTypes = [[${@dict.getType('drawType')}]];
|
||||||
|
var drawInfoList = [[${@drawInfo.findDrawInfoList()}]];
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
var options = {
|
var options = {
|
||||||
|
|
@ -107,34 +117,30 @@
|
||||||
columns: [{
|
columns: [{
|
||||||
checkbox: true
|
checkbox: true
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// field: 'tasknotifyid',
|
|
||||||
// title: '业务主键'
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
field: 'drawcode',
|
field: 'tasknotifyid',
|
||||||
title: '活动代码'
|
title: '业务主键',
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'taskid',
|
|
||||||
title: '任务流水'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'userid',
|
|
||||||
title: '用户标识',
|
|
||||||
visible: false
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'type',
|
field: 'userid',
|
||||||
title: '赠送次数类型',
|
title: '用户标识'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'drawcode',
|
||||||
|
title: '活动名称',
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return $.table.selectDictLabel(drawTypes, value);
|
return $.table.selectDrawname(drawInfoList, value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'addnumber',
|
field: 'addnumber',
|
||||||
title: '赠送次数'
|
title: '赠送次数'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'availablenumber',
|
||||||
|
title: '可用次数'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'state',
|
field: 'state',
|
||||||
title: '状态',
|
title: '状态',
|
||||||
|
|
@ -143,8 +149,19 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'availablenumber',
|
field: 'type',
|
||||||
title: '可用次数'
|
title: '赠送次数类型',
|
||||||
|
formatter: function (value, row, index) {
|
||||||
|
return $.table.selectDictLabel(drawTypes, value);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'taskid',
|
||||||
|
title: '任务流水'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'tasktype',
|
||||||
|
title: '请求类型'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'checkingdate',
|
field: 'checkingdate',
|
||||||
|
|
@ -153,28 +170,29 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'phone',
|
field: 'phone',
|
||||||
title: '手机号'
|
title: '手机号',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
field: 'tasktype',
|
field: 'vstate',
|
||||||
title: '请求类型',
|
title: '身份认证状态',
|
||||||
visible: false
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'vstate',
|
|
||||||
title: '身份认证状态'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'ulevel',
|
field: 'ulevel',
|
||||||
title: '用户等级'
|
title: '用户等级',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'source',
|
field: 'source',
|
||||||
title: '请求来源'
|
title: '请求来源',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'isspecialflag',
|
field: 'isspecialflag',
|
||||||
title: '是否白名单'
|
title: '是否白名单',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'requestflag',
|
field: 'requestflag',
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">奖品代码:</label>
|
<label class="col-sm-3 control-label">奖品名称:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="PRIZECODE" class="form-control" type="text">
|
<input name="PRIZECODE" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">奖品代码:</label>
|
<label class="col-sm-3 control-label">奖品名称:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="PRIZECODE" th:field="*{PRIZECODE}" class="form-control" type="text">
|
<input name="PRIZECODE" th:field="*{PRIZECODE}" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -11,29 +11,41 @@
|
||||||
<div class="select-list">
|
<div class="select-list">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<label>活动代码:</label>
|
<label>活动名称:</label>
|
||||||
<input type="text" name="DRAWCODE"/>
|
<select name="DRAWCODE" th:with="drawinfo=${@drawInfo.findDrawInfoList()}">
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option th:each="drawInfo : ${drawinfo}" th:text="${drawInfo.DRAWNAME}"
|
||||||
|
th:value="${drawInfo.DRAWCODE}"></option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>奖品名称:</label>
|
||||||
|
<select name="PRIZECODE" th:with="drawPrize=${@drawPrize.findDrawPrizeInfoList()}">
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option th:each="drawPrize : ${drawPrize}" th:text="${drawPrize.PRIZENAME}"
|
||||||
|
th:value="${drawPrize.PRIZECODE}"></option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>用户标识:</label>
|
||||||
|
<input type="text" name="USERID"/>
|
||||||
</li>
|
</li>
|
||||||
<!-- <li>-->
|
|
||||||
<!-- <label>奖品代码:</label>-->
|
|
||||||
<!-- <input type="text" name="PRIZECODE"/>-->
|
|
||||||
<!-- </li>-->
|
|
||||||
<!-- <li>-->
|
|
||||||
<!-- <label>用户标识:</label>-->
|
|
||||||
<!-- <input type="text" name="USERID"/>-->
|
|
||||||
<!-- </li>-->
|
|
||||||
<!-- <li>-->
|
<!-- <li>-->
|
||||||
<!-- <label>抽奖记录标识:</label>-->
|
<!-- <label>抽奖记录标识:</label>-->
|
||||||
<!-- <input type="text" name="DRAWRECORDID"/>-->
|
<!-- <input type="text" name="DRAWRECORDID"/>-->
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
<li>
|
|
||||||
<label>发奖时间:</label>
|
|
||||||
<input type="text" class="time-input" placeholder="请选择发奖时间" name="AWARDTIME"/>
|
|
||||||
</li>
|
|
||||||
<!-- <li>-->
|
<!-- <li>-->
|
||||||
<!-- <label>发奖结果:</label>-->
|
<!-- <label>发奖时间:</label>-->
|
||||||
<!-- <input type="text" name="AWARDRESULT"/>-->
|
<!-- <input type="text" class="time-input" placeholder="请选择发奖时间" name="AWARDTIME"/>-->
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
|
<li>
|
||||||
|
<label>发奖结果:</label>
|
||||||
|
<select name="AWARDRESULT" th:with="type=${@dict.getType('drawResult')}" style="width: 80px">
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||||
|
th:value="${dict.dictValue}"></option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
<!-- <li>-->
|
<!-- <li>-->
|
||||||
<!-- <label>错误码:</label>-->
|
<!-- <label>错误码:</label>-->
|
||||||
<!-- <input type="text" name="RETURNCODE"/>-->
|
<!-- <input type="text" name="RETURNCODE"/>-->
|
||||||
|
|
@ -60,16 +72,18 @@
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
<li>
|
<li>
|
||||||
<label>奖品等级:</label>
|
<label>奖品等级:</label>
|
||||||
<select name="PRIZELEVEL" th:with="type=${@dict.getType('prizeLevel')}">
|
<select name="PRIZELEVEL" th:with="type=${@dict.getType('prizeLevel')}" style="width: 80px">
|
||||||
<option value="">所有</option>
|
<option value="">所有</option>
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||||
|
th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>奖品类型:</label>
|
<label>奖品类型:</label>
|
||||||
<select name="PRIZETYPE" th:with="type=${@dict.getType('prizeType')}">
|
<select name="PRIZETYPE" th:with="type=${@dict.getType('prizeType')}" style="width: 80px">
|
||||||
<option value="">所有</option>
|
<option value="">所有</option>
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||||
|
th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<!-- <li>-->
|
<!-- <li>-->
|
||||||
|
|
@ -97,8 +111,10 @@
|
||||||
<!-- <input type="text" name="EXTID"/>-->
|
<!-- <input type="text" name="EXTID"/>-->
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
<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-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
||||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -131,6 +147,9 @@
|
||||||
var prefix = ctx + "activity/award/record";
|
var prefix = ctx + "activity/award/record";
|
||||||
var datas = [[${@dict.getType('prizeLevel')}]];
|
var datas = [[${@dict.getType('prizeLevel')}]];
|
||||||
var prizetypes = [[${@dict.getType('prizeType')}]];
|
var prizetypes = [[${@dict.getType('prizeType')}]];
|
||||||
|
var drawResults = [[${@dict.getType('drawResult')}]];
|
||||||
|
var drawInfoList = [[${@drawInfo.findDrawInfoList()}]];
|
||||||
|
var drawPrizeList = [[${@drawPrize.findDrawPrizeInfoList()}]];
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
var options = {
|
var options = {
|
||||||
|
|
@ -148,38 +167,46 @@
|
||||||
title: '主键',
|
title: '主键',
|
||||||
visible: false
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'drawcode',
|
|
||||||
title: '抽奖活动代码'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'prizecode',
|
|
||||||
title: '奖品代码'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'userid',
|
field: 'userid',
|
||||||
title: '用户标识'
|
title: '用户标识'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'drawrecordid',
|
field: 'username',
|
||||||
title: '抽奖记录标识'
|
title: '用户名'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'drawcode',
|
||||||
|
title: '活动名称',
|
||||||
|
formatter: function (value, row, index) {
|
||||||
|
return $.table.selectDrawname(drawInfoList, value);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'prizecode',
|
||||||
|
title: '奖品名称',
|
||||||
|
formatter: function (value, row, index) {
|
||||||
|
return $.table.selectprivename(drawPrizeList, value);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'prizetype',
|
||||||
|
title: '奖品类型',
|
||||||
|
formatter: function (value, row, index) {
|
||||||
|
return $.table.selectDictLabel(prizetypes, value);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'awardresult',
|
||||||
|
title: '发奖结果',
|
||||||
|
formatter: function (value, row, index) {
|
||||||
|
return $.table.selectDictLabel(drawResults, value);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'awardtime',
|
field: 'awardtime',
|
||||||
title: '发奖时间'
|
title: '发奖时间'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'awardresult',
|
|
||||||
title: '发奖结果'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'returncode',
|
|
||||||
title: '错误码'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'returnmessage',
|
|
||||||
title: '错误信息'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'phone',
|
field: 'phone',
|
||||||
title: '手机号'
|
title: '手机号'
|
||||||
|
|
@ -189,9 +216,22 @@
|
||||||
title: '地址'
|
title: '地址'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'username',
|
field: 'drawrecordid',
|
||||||
title: '用户名'
|
title: '抽奖记录标识',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'returncode',
|
||||||
|
title: '错误码',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'returnmessage',
|
||||||
|
title: '错误信息',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
// {
|
// {
|
||||||
// field: 'createtimestamp',
|
// field: 'createtimestamp',
|
||||||
// title: '创建时间'
|
// title: '创建时间'
|
||||||
|
|
@ -202,50 +242,53 @@
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
field: 'drawtranseqno',
|
field: 'drawtranseqno',
|
||||||
title: '抽奖流水'
|
title: '抽奖流水',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'awardtranseqno',
|
field: 'awardtranseqno',
|
||||||
title: '发奖流水'
|
title: '发奖流水',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'prizelevel',
|
field: 'prizelevel',
|
||||||
title: '奖品等级',
|
title: '奖品等级',
|
||||||
|
visible: false,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return $.table.selectDictLabel(datas, value);
|
return $.table.selectDictLabel(datas, value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
field: 'prizetype',
|
field: 'merchantcode',
|
||||||
title: '奖品类型',
|
title: '商户号',
|
||||||
formatter: function(value, row, index) {
|
visible: false
|
||||||
return $.table.selectDictLabel(prizetypes, value);
|
},
|
||||||
}
|
{
|
||||||
|
field: 'merchantsyscode',
|
||||||
|
title: '商户系统号',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'channel',
|
||||||
|
title: '渠道',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'businessarea',
|
||||||
|
title: '业务领域',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// field: 'merchantcode',
|
|
||||||
// title: '商户号'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// field: 'merchantsyscode',
|
|
||||||
// title: '商户系统号'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// field: 'channel',
|
|
||||||
// title: '渠道'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// field: 'businessarea',
|
|
||||||
// title: '业务领域'
|
|
||||||
// },
|
|
||||||
{
|
{
|
||||||
field: 'city',
|
field: 'city',
|
||||||
title: '城市'
|
title: '城市',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'extid',
|
||||||
|
title: '扩展',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// field: 'extid',
|
|
||||||
// title: '扩展'
|
|
||||||
// },
|
|
||||||
// {
|
// {
|
||||||
// title: '操作',
|
// title: '操作',
|
||||||
// align: 'center',
|
// align: 'center',
|
||||||
|
|
|
||||||
|
|
@ -11,22 +11,28 @@
|
||||||
<div class="select-list">
|
<div class="select-list">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<label>活动代码:</label>
|
<label>活动名称:</label>
|
||||||
<input type="text" name="DRAWCODE"/>
|
<!-- <input type="text" name="DRAWCODE"/>-->
|
||||||
|
<select name="DRAWCODE" th:with="drawinfo=${@drawInfo.findDrawInfoList()}">
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option th:each="drawInfo : ${drawinfo}" th:text="${drawInfo.DRAWNAME}"
|
||||||
|
th:value="${drawInfo.DRAWCODE}"></option>
|
||||||
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>任务流水:</label>
|
<label>任务流水:</label>
|
||||||
<input type="text" name="TASKID"/>
|
<input type="text" name="TASKID"/>
|
||||||
</li>
|
</li>
|
||||||
<!-- <li>-->
|
<li>
|
||||||
<!-- <label>用户标识:</label>-->
|
<label>用户标识:</label>
|
||||||
<!-- <input type="text" name="USERID"/>-->
|
<input type="text" name="USERID"/>
|
||||||
<!-- </li>-->
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>次数类型:</label>
|
<label>次数类型:</label>
|
||||||
<select name="TYPE" th:with="type=${@dict.getType('drawType')}">
|
<select name="TYPE" th:with="type=${@dict.getType('drawType')}" style="width: 80px">
|
||||||
<option value="">所有</option>
|
<option value="">所有</option>
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||||
|
th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<!-- <li>-->
|
<!-- <li>-->
|
||||||
|
|
@ -43,14 +49,17 @@
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
<li>
|
<li>
|
||||||
<label>状态:</label>
|
<label>状态:</label>
|
||||||
<select name="STATE" th:with="type=${@dict.getType('status')}">
|
<select name="STATE" th:with="type=${@dict.getType('status')}" style="width: 80px">
|
||||||
<option value="">所有</option>
|
<option value="">所有</option>
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||||
|
th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<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-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
||||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -83,6 +92,7 @@
|
||||||
var prefix = ctx + "activity/consume";
|
var prefix = ctx + "activity/consume";
|
||||||
var drawTypes = [[${@dict.getType('drawType')}]];
|
var drawTypes = [[${@dict.getType('drawType')}]];
|
||||||
var STATEDatas = [[${@dict.getType('status')}]];
|
var STATEDatas = [[${@dict.getType('status')}]];
|
||||||
|
var drawInfoList = [[${@drawInfo.findDrawInfoList()}]];
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
var options = {
|
var options = {
|
||||||
|
|
@ -95,6 +105,7 @@
|
||||||
columns: [{
|
columns: [{
|
||||||
checkbox: true
|
checkbox: true
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
field: 'taskconsumeid',
|
field: 'taskconsumeid',
|
||||||
title: '业务主键',
|
title: '业务主键',
|
||||||
|
|
@ -102,20 +113,20 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'tasknotifyid',
|
field: 'tasknotifyid',
|
||||||
title: '活动次数记录主键'
|
title: '活动次数记录主键',
|
||||||
},
|
visible: false
|
||||||
{
|
|
||||||
field: 'drawcode',
|
|
||||||
title: '活动代码'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
field: 'taskid',
|
|
||||||
title: '任务流水'
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'userid',
|
field: 'userid',
|
||||||
title: '用户标识'
|
title: '用户标识'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'drawcode',
|
||||||
|
title: '活动名称',
|
||||||
|
formatter: function (value, row, index) {
|
||||||
|
return $.table.selectDrawname(drawInfoList, value);
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'type',
|
field: 'type',
|
||||||
title: '赠送次数类型',
|
title: '赠送次数类型',
|
||||||
|
|
@ -123,17 +134,26 @@
|
||||||
return $.table.selectDictLabel(drawTypes, value);
|
return $.table.selectDictLabel(drawTypes, value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'createtimestamp',
|
||||||
|
title: '创建时间'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'consumenumber',
|
field: 'consumenumber',
|
||||||
title: '使用次数'
|
title: '使用次数'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'taskid',
|
||||||
|
title: '任务流水'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'transeqno',
|
field: 'transeqno',
|
||||||
title: '使用流水'
|
title: '使用流水'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'tradeorderid',
|
field: 'tradeorderid',
|
||||||
title: '使用主键'
|
title: '使用主键',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'state',
|
field: 'state',
|
||||||
|
|
@ -143,10 +163,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// field: 'createtimestamp',
|
|
||||||
// title: '创建时间'
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// field: 'lastupdatetimestamp',
|
// field: 'lastupdatetimestamp',
|
||||||
// title: '最后修改时间'
|
// title: '最后修改时间'
|
||||||
// },
|
// },
|
||||||
|
|
|
||||||
|
|
@ -11,24 +11,24 @@
|
||||||
<div class="select-list">
|
<div class="select-list">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<label>奖品代码:</label>
|
<label>奖品名称:</label>
|
||||||
<input type="text" name="PRIZECODE"/>
|
<input type="text" name="PRIZECODE"/>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>奖品名称:</label>
|
<label>奖品名称:</label>
|
||||||
<input type="text" name="PRIZENAME"/>
|
<input type="text" name="PRIZENAME"/>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>奖品面额:</label>
|
||||||
|
<input type="text" name="PRIZEVALUE"/>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<label>奖品类型:</label>
|
<label>奖品类型:</label>
|
||||||
<select name="PRIZETYPE" th:with="type=${@dict.getType('prizeType')}">
|
<select name="PRIZETYPE" th:with="type=${@dict.getType('prizeType')}" style="width: 100px">
|
||||||
<option value="">所有</option>
|
<option value="">所有</option>
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<label>奖品面额:</label>
|
|
||||||
<input type="text" name="PRIZEVALUE"/>
|
|
||||||
</li>
|
|
||||||
<!-- <li>-->
|
<!-- <li>-->
|
||||||
<!-- <label>创建时间:</label>-->
|
<!-- <label>创建时间:</label>-->
|
||||||
<!-- <input type="text" class="time-input" placeholder="请选择创建时间" name="CREATETIMESTAMP"/>-->
|
<!-- <input type="text" class="time-input" placeholder="请选择创建时间" name="CREATETIMESTAMP"/>-->
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
<li>
|
<li>
|
||||||
<label>状态:</label>
|
<label>状态:</label>
|
||||||
<select name="STATUS" th:with="type=${@dict.getType('status')}">
|
<select name="STATUS" th:with="type=${@dict.getType('status')}" style="width: 80px">
|
||||||
<option value="">所有</option>
|
<option value="">所有</option>
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
|
|
@ -142,16 +142,17 @@
|
||||||
field: 'integralprojectcode',
|
field: 'integralprojectcode',
|
||||||
title: '积分项目编码'
|
title: '积分项目编码'
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '操作',
|
// title: '操作',
|
||||||
align: 'center',
|
// align: 'center',
|
||||||
formatter: function(value, row, index) {
|
// formatter: function(value, row, index) {
|
||||||
var actions = [];
|
// 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-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>');
|
// 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('');
|
// return actions.join('');
|
||||||
}
|
// }
|
||||||
}]
|
// }
|
||||||
|
]
|
||||||
};
|
};
|
||||||
$.table.init(options);
|
$.table.init(options);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">奖品代码:</label>
|
<label class="col-sm-3 control-label">奖品名称:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="PRIZECODE" class="form-control" type="text">
|
<input name="PRIZECODE" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">奖品代码:</label>
|
<label class="col-sm-3 control-label">奖品名称:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="PRIZECODE" th:field="*{PRIZECODE}" class="form-control" type="text">
|
<input name="PRIZECODE" th:field="*{PRIZECODE}" class="form-control" type="text">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -10,37 +10,54 @@
|
||||||
<form id="formId">
|
<form id="formId">
|
||||||
<div class="select-list">
|
<div class="select-list">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
|
||||||
<label>抽奖流水:</label>
|
|
||||||
<input type="text" name="DRAWTRANSEQNO"/>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label>活动代码:</label>
|
|
||||||
<input type="text" name="DRAWCODE"/>
|
|
||||||
</li>
|
|
||||||
<!-- <li>-->
|
<!-- <li>-->
|
||||||
<!-- <label>用户标识:</label>-->
|
<!-- <label>抽奖流水:</label>-->
|
||||||
<!-- <input type="text" name="USERID"/>-->
|
<!-- <input type="text" name="DRAWTRANSEQNO"/>-->
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
|
<li>
|
||||||
|
<label>活动名称:</label>
|
||||||
|
<select name="DRAWCODE" th:with="drawinfo=${@drawInfo.findDrawInfoList()}">
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option th:each="drawInfo : ${drawinfo}" th:text="${drawInfo.DRAWNAME}"
|
||||||
|
th:value="${drawInfo.DRAWCODE}"></option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>用户标识:</label>
|
||||||
|
<input type="text" name="USERID"/>
|
||||||
|
</li>
|
||||||
<!-- <li>-->
|
<!-- <li>-->
|
||||||
<!-- <label>抽奖时间:</label>-->
|
<!-- <label>抽奖时间:</label>-->
|
||||||
<!-- <input type="text" class="time-input" placeholder="请选择抽奖时间" name="DRAWTIME"/>-->
|
<!-- <input type="text" class="time-input" placeholder="请选择抽奖时间" name="DRAWTIME"/>-->
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
<li>
|
<li>
|
||||||
<label>抽奖结果:</label>
|
<label>抽奖结果:</label>
|
||||||
<input type="text" name="DRAWRESULT"/>
|
<select name="DRAWRESULT" th:with="type=${@dict.getType('drawResult')}" style="width: 80px">
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label>奖品代码:</label>
|
|
||||||
<input type="text" name="PRIZECODE"/>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<label>奖品类型:</label>
|
|
||||||
<select name="PRIZETYPE" th:with="type=${@dict.getType('prizeType')}">
|
|
||||||
<option value="">所有</option>
|
<option value="">所有</option>
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}"
|
||||||
|
th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>奖品名称:</label>
|
||||||
|
<select name="PRIZECODE" th:with="drawPrize=${@drawPrize.findDrawPrizeInfoList()}">
|
||||||
|
<option value="">所有</option>
|
||||||
|
<option th:each="drawPrize : ${drawPrize}" th:text="${drawPrize.PRIZENAME}"
|
||||||
|
th:value="${drawPrize.PRIZECODE}"></option>
|
||||||
|
</select>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label>用户名:</label>
|
||||||
|
<input type="text" name="USERNAME"/>
|
||||||
|
</li>
|
||||||
|
<!-- <li>-->
|
||||||
|
<!-- <label>奖品类型:</label>-->
|
||||||
|
<!-- <select name="PRIZETYPE" th:with="type=${@dict.getType('prizeType')}" style="width: 100px">-->
|
||||||
|
<!-- <option value="">所有</option>-->
|
||||||
|
<!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}"-->
|
||||||
|
<!-- th:value="${dict.dictValue}"></option>-->
|
||||||
|
<!-- </select>-->
|
||||||
|
<!-- </li>-->
|
||||||
<!-- <li>-->
|
<!-- <li>-->
|
||||||
<!-- <label>账务日期:</label>-->
|
<!-- <label>账务日期:</label>-->
|
||||||
<!-- <input type="text" class="time-input" placeholder="请选择账务日期" name="CHECKINGDATE"/>-->
|
<!-- <input type="text" class="time-input" placeholder="请选择账务日期" name="CHECKINGDATE"/>-->
|
||||||
|
|
@ -57,17 +74,14 @@
|
||||||
<!-- <label>渠道:</label>-->
|
<!-- <label>渠道:</label>-->
|
||||||
<!-- <input type="text" name="CHANNEL"/>-->
|
<!-- <input type="text" name="CHANNEL"/>-->
|
||||||
<!-- </li>-->
|
<!-- </li>-->
|
||||||
<li>
|
<!-- <li>-->
|
||||||
<label>用户名:</label>
|
<!-- <label>奖品等级:</label>-->
|
||||||
<input type="text" name="USERNAME"/>
|
<!-- <select name="PRIZELEVEL" th:with="type=${@dict.getType('prizeLevel')}" style="width: 80px">-->
|
||||||
</li>
|
<!-- <option value="">所有</option>-->
|
||||||
<li>
|
<!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}"-->
|
||||||
<label>奖品等级:</label>
|
<!-- th:value="${dict.dictValue}"></option>-->
|
||||||
<select name="PRIZELEVEL" th:with="type=${@dict.getType('prizeLevel')}">
|
<!-- </select>-->
|
||||||
<option value="">所有</option>
|
<!-- </li>-->
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
|
||||||
</select>
|
|
||||||
</li>
|
|
||||||
<!-- <li>-->
|
<!-- <li>-->
|
||||||
<!-- <label>奖品项目编码:</label>-->
|
<!-- <label>奖品项目编码:</label>-->
|
||||||
<!-- <input type="text" name="PROJECTCODE"/>-->
|
<!-- <input type="text" name="PROJECTCODE"/>-->
|
||||||
|
|
@ -81,8 +95,10 @@
|
||||||
<input type="text" name="PHONE"/>
|
<input type="text" name="PHONE"/>
|
||||||
</li>
|
</li>
|
||||||
<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-primary btn-rounded btn-sm" onclick="$.table.search()"><i
|
||||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
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>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -115,6 +131,9 @@
|
||||||
var prefix = ctx + "activity/record";
|
var prefix = ctx + "activity/record";
|
||||||
var datas = [[${@dict.getType('prizeLevel')}]];
|
var datas = [[${@dict.getType('prizeLevel')}]];
|
||||||
var prizetypes = [[${@dict.getType('prizeType')}]];
|
var prizetypes = [[${@dict.getType('prizeType')}]];
|
||||||
|
var drawResults = [[${@dict.getType('drawResult')}]];
|
||||||
|
var drawInfoList = [[${@drawInfo.findDrawInfoList()}]];
|
||||||
|
var drawPrizeList = [[${@drawPrize.findDrawPrizeInfoList()}]];
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
var options = {
|
var options = {
|
||||||
|
|
@ -133,39 +152,64 @@
|
||||||
visible: false
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'drawtranseqno',
|
field: 'userid',
|
||||||
title: '抽奖流水'
|
title: '用户标识'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'username',
|
||||||
|
title: '用户名'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'phone',
|
||||||
|
title: '手机号'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'drawcode',
|
field: 'drawcode',
|
||||||
title: '抽奖活动代码'
|
title: '活动名称',
|
||||||
|
formatter: function (value, row, index) {
|
||||||
|
return $.table.selectDrawname(drawInfoList, value);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'userid',
|
field: 'drawresult',
|
||||||
title: '用户标识'
|
title: '抽奖结果',
|
||||||
|
formatter: function (value, row, index) {
|
||||||
|
return $.table.selectDictLabel(drawResults, value);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'prizecode',
|
||||||
|
title: '奖品名称',
|
||||||
|
formatter: function (value, row, index) {
|
||||||
|
return $.table.selectprivename(drawPrizeList, value);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'DRAWTIME',
|
field: 'DRAWTIME',
|
||||||
title: '抽奖时间'
|
title: '抽奖时间'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'drawresult',
|
field: 'drawtranseqno',
|
||||||
title: '抽奖结果'
|
title: '抽奖流水',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'prizecode',
|
field: 'projectcode',
|
||||||
title: '奖品代码'
|
title: '奖品项目编码',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'prizetype',
|
field: 'prizetype',
|
||||||
title: '奖品类型',
|
title: '奖品类型',
|
||||||
|
visible: false,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return $.table.selectDictLabel(prizetypes, value);
|
return $.table.selectDictLabel(prizetypes, value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'CHECKINGDATE',
|
field: 'CHECKINGDATE',
|
||||||
title: '账务日期'
|
title: '账务日期',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// field: 'CREATETIMESTAMP',
|
// field: 'CREATETIMESTAMP',
|
||||||
|
|
@ -177,34 +221,29 @@
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
field: 'channel',
|
field: 'channel',
|
||||||
title: '渠道'
|
title: '渠道',
|
||||||
},
|
visible: false,
|
||||||
{
|
|
||||||
field: 'username',
|
|
||||||
title: '用户名'
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
field: 'prizelevel',
|
field: 'prizelevel',
|
||||||
title: '奖品等级',
|
title: '奖品等级',
|
||||||
|
visible: false,
|
||||||
formatter: function (value, row, index) {
|
formatter: function (value, row, index) {
|
||||||
return $.table.selectDictLabel(datas, value);
|
return $.table.selectDictLabel(datas, value);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
field: 'projectcode',
|
|
||||||
title: '奖品项目编码'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
field: 'source',
|
field: 'source',
|
||||||
title: '请求来源'
|
title: '请求来源',
|
||||||
},
|
visible: false
|
||||||
{
|
|
||||||
field: 'phone',
|
|
||||||
title: '手机号'
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
field: 'extarea',
|
field: 'extarea',
|
||||||
title: '扩展域'
|
title: '扩展域',
|
||||||
|
visible: false
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// title: '操作',
|
// title: '操作',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue