Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
Aidea
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sa_aidea
Aidea
Commits
6e1433a6
Commit
6e1433a6
authored
Sep 29, 2020
by
黎聪聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扫码记录管理
parent
774ca8e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
25 deletions
+39
-25
qrcodeRecordlist.html
...n/webapp/WEB-INF/views/qrcodeRecord/qrcodeRecordlist.html
+25
-11
QrcodeRecordController.java
...ch/behavior/qrcode/record/web/QrcodeRecordController.java
+14
-14
No files found.
behavior-modules/qrcode-record-module-web/src/main/webapp/WEB-INF/views/qrcodeRecord/qrcodeRecordlist.html
View file @
6e1433a6
...
...
@@ -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;'>"
;
}
...
...
behavior-modules/qrcode-record-module/src/main/java/com/cftech/behavior/qrcode/record/web/QrcodeRecordController.java
View file @
6e1433a6
...
...
@@ -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
.
get
Number
()))
{
conds
.
like
(
"
number"
,
qrcodeRecord
.
getNumber
());
if
(!
StringUtils
.
isEmpty
(
qrcodeRecord
.
get
Openid
()))
{
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment