记得上下班打卡 | git大法好,push需谨慎

Commit af42ea8c authored by 张国柄's avatar 张国柄

Merge remote-tracking branch 'origin/master' into dev_redis_multidb

parents 2a7b7c56 f220c786
......@@ -293,8 +293,8 @@ public class PerformancesExpressController extends BaseController {
@RequiresPermissions("kylin:performancesExpress:batchPrintExpress")
@PostMapping("/batchPrintExpress")
@ResponseBody
public ResponseDto<KylinOrderExpressPrintVo> batchPrintExpress(@RequestParam("ids") String performanceId, @RequestParam("ticketId") String ticketId) {
KylinOrderExpressPrintVo res = performancesExpressServiceImpl.batchPrintExpress(performanceId, ticketId);
public ResponseDto<KylinOrderExpressPrintVo> batchPrintExpress(@RequestParam("ids") String performanceId, @RequestParam("ticketId") String ticketId, @RequestParam("printNum") Integer printNum) {
KylinOrderExpressPrintVo res = performancesExpressServiceImpl.batchPrintExpress(performanceId, ticketId, printNum);
try {
return ResponseDto.success(res);
} catch (Exception e) {
......
......@@ -47,7 +47,7 @@ var table = {
paginationLoop: false,
pageSize: 10,
pageNumber: 1,
pageList: [10, 25, 50, 200],
pageList: [10, 25, 50, 200, 500, 2000],
toolbar: "toolbar",
loadingFontSize: 13,
striped: false,
......
......@@ -53,6 +53,12 @@
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label is-required">数量:</label>
<div class="col-sm-10">
<input class="form-control" type="text" name="printNum" id="printNum">
</div>
</div>
</div>
</form>
</div>
......@@ -266,7 +272,7 @@
LODOP.PRINT();
}
function printExpress(performanceId, ticketId) {
function printExpress(performanceId, ticketId, printNum) {
var message = "确定打印吗?";
$.modal.confirm(message, function () {
try {
......@@ -279,7 +285,7 @@
}
var data = '';
var ids = [performanceId];
data = {"ids": ids.join(), "ticketId": ticketId};
data = {"ids": ids.join(), "ticketId": ticketId, "printNum": printNum};
var configPrint = {
url: prefix + "/batchPrintExpress",
type: "post",
......@@ -355,7 +361,8 @@
shadeClose: true,
btn1: function (index, layero) {
var ticketId = layero.find('#openTicketListTplSelect').val();
printExpress(performanceId, ticketId);
var printNum = layero.find('#printNum').val();
printExpress(performanceId, ticketId, printNum);
}
});
}
......
......@@ -622,13 +622,13 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
return kylinOrderExpressPrintVo;
}
public KylinOrderExpressPrintVo batchPrintExpress(String performanceId, String ticketId) {
public KylinOrderExpressPrintVo batchPrintExpress(String performanceId, String ticketId, Integer printNum) {
List<OrderExpressListDao> newList = new ArrayList<>();
int count = 0;
int limitNum = 1000;
int mid = 0;
do {
List<OrderExpressListDao> list = kylinOrderExpressMapper.selectPrintListOfPerformanceId(performanceId, ticketId, mid, limitNum);
List<OrderExpressListDao> list = kylinOrderExpressMapper.selectPrintListOfPerformanceId(performanceId, ticketId, mid, limitNum, printNum);
if (!CollectionUtil.isEmpty(list)) {
newList.addAll(list);
......
......@@ -23,7 +23,8 @@ public interface KylinOrderExpressMapper extends BaseMapper<KylinOrderExpress> {
@Param("performanceId") String performanceId,
@Param("ticketId") String ticketId,
@Param("mid") Integer mid,
@Param("limitNum") Integer limitNum
@Param("limitNum") Integer limitNum,
@Param("printNum") Integer printNum
);
List<KylinOrderExpress> getCanCancelExpressList(
......
......@@ -38,6 +38,7 @@
AND a.performances_id = #{performanceId}
<if test="ticketId != ''">AND e.tickets_id = #{ticketId}</if>
AND a.mid > ${mid}
<if test="printNum != '' and printNum > 0">AND a.mid > ${printNum}</if>
</where>
ORDER BY a.mid ASC
LIMIT ${limitNum}
......
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