Commit 6e1433a6 authored by 黎聪聪's avatar 黎聪聪

扫码记录管理

parent 774ca8e5
......@@ -85,9 +85,10 @@
class="form-control"
data-placeholder="请选择二维码类型">
<option value="">全部</option>
<option value="0">门店</option>
<option value="1">Sa人员</option>
<option value="2">活动车辆</option>
<option value="0">客服二维码</option>
<option value="1">药师二维码</option>
<option value="2">医生二维码</option>
<option value="3">组织二维码</option>
</select>
</div>
<div class="col-xs-5">
......@@ -104,7 +105,7 @@
<table id="table" class="table table-bordered table-striped">
<thead>
<tr>
<td hidden="true">Id</td><th>openid</th><th>类型</th><th>二维码</th><th>创建时间</th>
<td hidden="true">Id</td><th>粉丝openid</th><th>二维码类型</th><th>二维码</th><th>扫码时间</th>
</tr>
</thead>
<tbody id="tablebody">
......@@ -222,22 +223,35 @@
'visible': false,
'targets': [0]
},
{
"aTargets": [1],
"mData": "openid",
"mRender": function (a, b, c, d) {
return a;
}
},
{
"aTargets": [2],
"mData": "type",
"mRender": function (a, b, c, d) {
if(a=="0"){
return "门店";
}else if(a=="1"){
return "Sa人员";
}else if(a=="2"){
return "活动车辆";
if (a=='0'){
return "客服二维码";
}else if (a=='1'){
return "药师二维码";
}else if (a=='2'){
return "医生二维码";
}else if (a=='3'){
return "组织二维码";
}else{
return "";
}
}
},
{
"aTargets": [3],
"mData": "ticket",
"mData": "openid",
"mRender": function (a, b, c, d) {
return "<img src='https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket="+a+"' style='width: 80px;height: 80px;'>";
}
......
......@@ -109,24 +109,24 @@ public class QrcodeRecordController {
Conds conds = new Conds();
conds.equal("del_flag", Constants.DEL_FLAG_0);
conds.equal("accounts_id", accountsId);
if (!StringUtils.isEmpty(qrcodeRecord.getNumber())) {
conds.like("number", qrcodeRecord.getNumber());
if (!StringUtils.isEmpty(qrcodeRecord.getOpenid())) {
conds.like("openid", qrcodeRecord.getOpenid());
}
if (!StringUtils.isEmpty(qrcodeRecord.getType())) {
conds.like("type", qrcodeRecord.getType());
}
if (!StringUtils.isEmpty(qrcodeRecord.getTicket())) {
conds.like("ticket", qrcodeRecord.getTicket());
}
if (!StringUtils.isEmpty(qrcodeRecord.getEmpname())) {
conds.like("empname", qrcodeRecord.getEmpname());
}
if (!StringUtils.isEmpty(qrcodeRecord.getKeywords())) {
conds.like("keywords", qrcodeRecord.getKeywords());
}
if (!StringUtils.isEmpty(qrcodeRecord.getMobile())) {
conds.like("mobile", qrcodeRecord.getMobile());
}
// if (!StringUtils.isEmpty(qrcodeRecord.getTicket())) {
// conds.like("ticket", qrcodeRecord.getTicket());
// }
// if (!StringUtils.isEmpty(qrcodeRecord.getEmpname())) {
// conds.like("empname", qrcodeRecord.getEmpname());
// }
// if (!StringUtils.isEmpty(qrcodeRecord.getKeywords())) {
// conds.like("keywords", qrcodeRecord.getKeywords());
// }
// if (!StringUtils.isEmpty(qrcodeRecord.getMobile())) {
// conds.like("mobile", qrcodeRecord.getMobile());
// }
Sort sort = new Sort("create_time", OrderType.DESC);
List<QrcodeRecord> list = qrcodeRecordService.fetchSearchByPage(conds, sort, iDisplayStart, iDisplayLength);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment