记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
0b82deed
Commit
0b82deed
authored
Sep 26, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印选择票种
parent
6fd9689a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
66 additions
and
8 deletions
+66
-8
PerformancesExpressController.java
...troller/zhengzai/kylin/PerformancesExpressController.java
+2
-2
performancesList.html
.../zhengzai/kylin/performancesExpress/performancesList.html
+59
-4
PerformancesExpressServiceImpl.java
...ai/kylin/service/impl/PerformancesExpressServiceImpl.java
+2
-2
KylinOrderExpressMapper.java
...quidnet/service/kylin/mapper/KylinOrderExpressMapper.java
+1
-0
KylinOrderExpressMapper.xml
...iquidnet.service.kylin.mapper/KylinOrderExpressMapper.xml
+1
-0
KylinTicketsMapper.xml
...com.liquidnet.service.kylin.mapper/KylinTicketsMapper.xml
+1
-0
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/kylin/PerformancesExpressController.java
View file @
0b82deed
...
@@ -292,8 +292,8 @@ public class PerformancesExpressController extends BaseController {
...
@@ -292,8 +292,8 @@ public class PerformancesExpressController extends BaseController {
@RequiresPermissions
(
"kylin:performancesExpress:batchPrintExpress"
)
@RequiresPermissions
(
"kylin:performancesExpress:batchPrintExpress"
)
@PostMapping
(
"/batchPrintExpress"
)
@PostMapping
(
"/batchPrintExpress"
)
@ResponseBody
@ResponseBody
public
ResponseDto
<
KylinOrderExpressPrintVo
>
batchPrintExpress
(
@RequestParam
(
"ids"
)
String
performanceId
)
{
public
ResponseDto
<
KylinOrderExpressPrintVo
>
batchPrintExpress
(
@RequestParam
(
"ids"
)
String
performanceId
,
@RequestParam
(
"ticketId"
)
String
ticketId
)
{
KylinOrderExpressPrintVo
res
=
performancesExpressServiceImpl
.
batchPrintExpress
(
performanceId
);
KylinOrderExpressPrintVo
res
=
performancesExpressServiceImpl
.
batchPrintExpress
(
performanceId
,
ticketId
);
try
{
try
{
return
ResponseDto
.
success
(
res
);
return
ResponseDto
.
success
(
res
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/performancesExpress/performancesList.html
View file @
0b82deed
...
@@ -41,9 +41,26 @@
...
@@ -41,9 +41,26 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
id=
"selectTicketDiv"
hidden
>
<form
class=
"mt20 mb10"
>
<div
class=
"col-xs-offset-1"
>
<div
class=
"form-group"
>
<div
class=
"col-sm-12"
>
<select
class=
"form-control m-b"
name=
"ticketId"
id=
"openTicketListTplSelect"
>
<option>
选项 1
</option>
<option>
选项 2
</option>
</select>
</div>
</div>
</div>
</form>
</div>
<script
th:src=
"@{/lodop6226/LodopFuncs.js}"
></script>
<script
th:src=
"@{/lodop6226/LodopFuncs.js}"
></script>
<th:block
th:include=
"include :: footer"
/>
<th:block
th:include=
"include :: footer"
/>
<script
th:inline=
"javascript"
>
<script
th:inline=
"javascript"
>
var
performanceOrderListFlag
=
[[
$
{@
permission
.
hasPermi
(
'kylin:performancesExpress:performanceOrderList'
)}]];
var
performanceOrderListFlag
=
[[
$
{@
permission
.
hasPermi
(
'kylin:performancesExpress:performanceOrderList'
)}]];
var
batchPlaceOrderFlag
=
[[
$
{@
permission
.
hasPermi
(
'kylin:performancesExpress:batchPlaceOrder'
)}]];
var
batchPlaceOrderFlag
=
[[
$
{@
permission
.
hasPermi
(
'kylin:performancesExpress:batchPlaceOrder'
)}]];
...
@@ -249,7 +266,7 @@
...
@@ -249,7 +266,7 @@
LODOP
.
PRINT
();
LODOP
.
PRINT
();
}
}
function
printExpress
(
performanceId
)
{
function
printExpress
(
performanceId
,
ticketId
)
{
var
message
=
"确定打印吗?"
;
var
message
=
"确定打印吗?"
;
$
.
modal
.
confirm
(
message
,
function
()
{
$
.
modal
.
confirm
(
message
,
function
()
{
try
{
try
{
...
@@ -262,7 +279,7 @@
...
@@ -262,7 +279,7 @@
}
}
var
data
=
''
;
var
data
=
''
;
var
ids
=
[
performanceId
];
var
ids
=
[
performanceId
];
data
=
{
"ids"
:
ids
.
join
()};
data
=
{
"ids"
:
ids
.
join
()
,
"ticketId"
:
ticketId
};
var
configPrint
=
{
var
configPrint
=
{
url
:
prefix
+
"/batchPrintExpress"
,
url
:
prefix
+
"/batchPrintExpress"
,
type
:
"post"
,
type
:
"post"
,
...
@@ -305,12 +322,44 @@
...
@@ -305,12 +322,44 @@
},
},
success
:
function
(
result
)
{
success
:
function
(
result
)
{
$
.
modal
.
closeLoading
();
$
.
modal
.
closeLoading
();
console
.
log
(
result
)
var
rows
=
result
.
rows
;
var
html
=
'<option value="">全部</option>'
;
$
.
each
(
rows
,
function
(
index
,
value
){
html
+=
'<option value="'
+
value
.
ticketsId
+
'">'
+
value
.
title
+
'</option>'
});
$
(
'#selectTicketDiv'
).
find
(
'#openTicketListTplSelect'
).
html
(
html
);
openTicketList
(
"openTicketListTpl"
,
performanceId
);
}
}
};
};
$
.
ajax
(
configPrint
)
$
.
ajax
(
configPrint
)
}
}
function
openTicketList
(
formId
,
performanceId
,
width
,
height
)
{
table
.
set
();
var
currentId
=
$
.
common
.
isEmpty
(
formId
)
?
'importTpl'
:
formId
;
var
_width
=
$
.
common
.
isEmpty
(
width
)
?
"400"
:
width
;
var
_height
=
$
.
common
.
isEmpty
(
height
)
?
"230"
:
height
;
let
selectTicketDiv
=
$
(
'#selectTicketDiv'
).
html
();
$
(
'#'
+
currentId
).
html
(
selectTicketDiv
);
layer
.
open
({
type
:
1
,
area
:
[
_width
+
'px'
,
_height
+
'px'
],
fix
:
false
,
//不固定
maxmin
:
true
,
shade
:
0.3
,
title
:
'选择票种打印'
,
content
:
$
(
'#'
+
currentId
).
html
(),
btn
:
[
'<i class="fa fa-check"></i> 打印'
,
'<i class="fa fa-remove"></i> 取消'
],
// 弹层外区域关闭
shadeClose
:
true
,
btn1
:
function
(
index
,
layero
)
{
var
ticketId
=
layero
.
find
(
'#openTicketListTplSelect'
).
val
();
printExpress
(
performanceId
,
ticketId
);
}
});
}
function
exportExcel
(
performancesId
)
{
function
exportExcel
(
performancesId
)
{
var
data
=
{
"ids"
:
performancesId
};
var
data
=
{
"ids"
:
performancesId
};
$
.
table
.
exportExcel
(
""
,
data
)
$
.
table
.
exportExcel
(
""
,
data
)
...
@@ -384,7 +433,8 @@
...
@@ -384,7 +433,8 @@
<
div
class
=
"col-xs-offset-1"
>
<
div
class
=
"col-xs-offset-1"
>
<
input
type
=
"file"
id
=
"file"
name
=
"file"
/>
<
input
type
=
"file"
id
=
"file"
name
=
"file"
/>
<
div
class
=
"mt10 pt5"
>
<
div
class
=
"mt10 pt5"
>
&
nbsp
;
<
a
onclick
=
"$.table.importTemplate()"
class
=
"btn btn-default btn-xs"
><
i
class
=
"fa fa-file-excel-o"
><
/i> 下载模板</
a
>
&
nbsp
;
<
a
onclick
=
"$.table.importTemplate()"
class
=
"btn btn-default btn-xs"
><
i
class
=
"fa fa-file-excel-o"
><
/i> 下载模板</
a
>
<
/div
>
<
/div
>
<
font
color
=
"red"
class
=
"pull-left mt10"
>
<
font
color
=
"red"
class
=
"pull-left mt10"
>
提示:仅允许导入“
xls
”或“
xlsx
”格式文件!
提示:仅允许导入“
xls
”或“
xlsx
”格式文件!
...
@@ -393,4 +443,9 @@
...
@@ -393,4 +443,9 @@
<
/form
>
<
/form
>
</script>
</script>
<!-- 票种选择区域 -->
<script
id=
"openTicketListTpl"
type=
"text/template"
>
</script>
</html>
</html>
\ No newline at end of file
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/PerformancesExpressServiceImpl.java
View file @
0b82deed
...
@@ -614,13 +614,13 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
...
@@ -614,13 +614,13 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
return
kylinOrderExpressPrintVo
;
return
kylinOrderExpressPrintVo
;
}
}
public
KylinOrderExpressPrintVo
batchPrintExpress
(
String
performanceId
)
{
public
KylinOrderExpressPrintVo
batchPrintExpress
(
String
performanceId
,
String
ticketId
)
{
List
<
OrderExpressListDao
>
newList
=
new
ArrayList
<>();
List
<
OrderExpressListDao
>
newList
=
new
ArrayList
<>();
int
count
=
0
;
int
count
=
0
;
int
limitNum
=
1000
;
int
limitNum
=
1000
;
int
mid
=
0
;
int
mid
=
0
;
do
{
do
{
List
<
OrderExpressListDao
>
list
=
kylinOrderExpressMapper
.
selectPrintListOfPerformanceId
(
performanceId
,
mid
,
limitNum
);
List
<
OrderExpressListDao
>
list
=
kylinOrderExpressMapper
.
selectPrintListOfPerformanceId
(
performanceId
,
ticketId
,
mid
,
limitNum
);
if
(!
CollectionUtil
.
isEmpty
(
list
))
{
if
(!
CollectionUtil
.
isEmpty
(
list
))
{
newList
.
addAll
(
list
);
newList
.
addAll
(
list
);
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/java/com/liquidnet/service/kylin/mapper/KylinOrderExpressMapper.java
View file @
0b82deed
...
@@ -21,6 +21,7 @@ public interface KylinOrderExpressMapper extends BaseMapper<KylinOrderExpress> {
...
@@ -21,6 +21,7 @@ public interface KylinOrderExpressMapper extends BaseMapper<KylinOrderExpress> {
List
<
OrderExpressListDao
>
selectPrintListOfPerformanceId
(
List
<
OrderExpressListDao
>
selectPrintListOfPerformanceId
(
@Param
(
"performanceId"
)
String
performanceId
,
@Param
(
"performanceId"
)
String
performanceId
,
@Param
(
"ticketId"
)
String
ticketId
,
@Param
(
"mid"
)
Integer
mid
,
@Param
(
"mid"
)
Integer
mid
,
@Param
(
"limitNum"
)
Integer
limitNum
@Param
(
"limitNum"
)
Integer
limitNum
);
);
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/KylinOrderExpressMapper.xml
View file @
0b82deed
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
<where>
<where>
a.express_status = 2
a.express_status = 2
AND a.performances_id = #{performanceId}
AND a.performances_id = #{performanceId}
<if
test=
"ticketId != ''"
>
AND e.tickets_id = #{ticketId}
</if>
AND a.mid > ${mid}
AND a.mid > ${mid}
</where>
</where>
ORDER BY a.mid ASC
ORDER BY a.mid ASC
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/KylinTicketsMapper.xml
View file @
0b82deed
...
@@ -53,5 +53,6 @@
...
@@ -53,5 +53,6 @@
LEFT JOIN kylin_ticket_time_relation AS d ON d.times_id = c.times_id
LEFT JOIN kylin_ticket_time_relation AS d ON d.times_id = c.times_id
where d.performance_id = ${performanceId}
where d.performance_id = ${performanceId}
and b.is_express = 1
and b.is_express = 1
and b.status IN (2, 3, 6, 7, 8, 9, 10)
</select>
</select>
</mapper>
</mapper>
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