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

Commit efa1d41c authored by jiangxiulong's avatar jiangxiulong

pring test

parent 838718dd
...@@ -228,6 +228,25 @@ public class PerformancesExpressController extends BaseController { ...@@ -228,6 +228,25 @@ public class PerformancesExpressController extends BaseController {
} }
} }
/**
* 批量下单
*/
@RequiresPermissions("kylin:performancesExpress:batchPrint")
@PostMapping("/batchPrint")
@ResponseBody
public ResponseDto batchPrint(@RequestParam("ids") String performanceId) {
String res = performancesExpressServiceImpl.batchPrint(performanceId);
try {
if (res.isEmpty()) {
return ResponseDto.failure("处理失败");
} else {
return ResponseDto.success(res);
}
} catch (Exception e) {
return ResponseDto.failure(e.getMessage());
}
}
/** /**
* 打印快递单 * 打印快递单
*/ */
......
...@@ -85,13 +85,14 @@ ...@@ -85,13 +85,14 @@
url: prefix + "/print", url: prefix + "/print",
type: "post", type: "post",
dataType: "json", dataType: "json",
data: {ids:orderExpressId}, data: {ids: orderExpressId},
beforeSend: function () { beforeSend: function () {
$.modal.loading("正在处理中,请稍后..."); $.modal.loading("正在处理中,请稍后...");
}, },
success: function (result) { success: function (result) {
$.modal.closeLoading(); $.modal.closeLoading();
console.log(result); var url = "https://img.zhengzai.tv/" + result.data;
window.location.href = url;
} }
}; };
$.ajax(configPrint) $.ajax(configPrint)
...@@ -129,22 +130,22 @@ ...@@ -129,22 +130,22 @@
{ {
field: '', field: '',
title: '购买用户', title: '购买用户',
formatter: function(value, row, index) { formatter: function (value, row, index) {
// var userId = row.userId; // var userId = row.userId;
var userMobile = row.userMobile; var userMobile = row.userMobile;
var userName = row.userName; var userName = row.userName;
// return 'ID:'+userId+'<br>'+'姓名:'+userName+'<br>'+'手机号:'+userMobile; // return 'ID:'+userId+'<br>'+'姓名:'+userName+'<br>'+'手机号:'+userMobile;
return '昵称:'+userName+'<br>'+'手机号:'+userMobile; return '昵称:' + userName + '<br>' + '手机号:' + userMobile;
} }
}, },
{ {
field: '', field: '',
title: '收货用户', title: '收货用户',
formatter: function(value, row, index) { formatter: function (value, row, index) {
var expressContacts = row.expressContacts; var expressContacts = row.expressContacts;
var expressAddress = row.expressAddress; var expressAddress = row.expressAddress;
var expressPhone = row.expressPhone; var expressPhone = row.expressPhone;
return '姓名:'+expressContacts+'<br>'+'手机号:'+expressPhone+'<br>'+'地址:'+expressAddress; return '姓名:' + expressContacts + '<br>' + '手机号:' + expressPhone + '<br>' + '地址:' + expressAddress;
} }
}, },
{ {
...@@ -168,7 +169,7 @@ ...@@ -168,7 +169,7 @@
{ {
field: '', field: '',
title: '快递信息', title: '快递信息',
formatter: function(value, row, index) { formatter: function (value, row, index) {
var mailno = row.mailno; var mailno = row.mailno;
var expressStatus = row.expressStatus; var expressStatus = row.expressStatus;
var expressStatusName = ''; var expressStatusName = '';
...@@ -197,7 +198,7 @@ ...@@ -197,7 +198,7 @@
break; break;
} }
} }
return '快递单号:'+mailno+'<br>'+'快递状态:'+expressStatusName; return '快递单号:' + mailno + '<br>' + '快递状态:' + expressStatusName;
} }
}, },
{ {
...@@ -208,7 +209,7 @@ ...@@ -208,7 +209,7 @@
actions.push('<a class="btn btn-success btn-xs ' + placeOrderFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderTicketsId + '\', \'确定下单吗?\', table.options.placeOrderUrl)"></i>下单</a> '); actions.push('<a class="btn btn-success btn-xs ' + placeOrderFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderTicketsId + '\', \'确定下单吗?\', table.options.placeOrderUrl)"></i>下单</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + cancelOrderFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderTicketsId + '\', \'确定取消快递单吗?\', table.options.cancelOrderUrl)"></i>取消</a> '); actions.push('<a class="btn btn-danger btn-xs ' + cancelOrderFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderTicketsId + '\', \'确定取消快递单吗?\', table.options.cancelOrderUrl)"></i>取消</a> ');
// actions.push('<a class="btn btn-warning btn-xs ' + printFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderExpressId + '\', \'确定批量打印吗?\', table.options.printUrl)"></i>打印</a> '); // actions.push('<a class="btn btn-warning btn-xs ' + printFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderExpressId + '\', \'确定批量打印吗?\', table.options.printUrl)"></i>打印</a> ');
actions.push('<a class="btn btn-warning btn-xs ' + printFlag + '" href="javascript:void(0)" onclick="printAjax(\'' + row.orderExpressId + '\',)"></i>打印</a> '); actions.push('<a class="btn btn-warning btn-xs ' + printFlag + '" href="javascript:void(0)" onclick="printAjax(\'' + row.orderExpressId + '\',)"></i>下载快递单</a> ');
// actions.push('<a class="btn btn-success btn-xs ' + getResultFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderTicketsId + '\', \'确定获取快递信息吗?\', table.options.getResultUrl)"></i>主动获取下单信息</a> '); // actions.push('<a class="btn btn-success btn-xs ' + getResultFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderTicketsId + '\', \'确定获取快递信息吗?\', table.options.getResultUrl)"></i>主动获取下单信息</a> ');
// actions.push('<a class="btn btn-success btn-xs ' + getFreightFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderTicketsId + '\', \'确定获取估算运费吗?\', table.options.getFreightUrl)"></i>运费估算</a> '); // actions.push('<a class="btn btn-success btn-xs ' + getFreightFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderTicketsId + '\', \'确定获取估算运费吗?\', table.options.getFreightUrl)"></i>运费估算</a> ');
// actions.push('<a class="btn btn-success btn-xs ' + getListFreightFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderTicketsId + '\', \'确定获取运费信息吗?\', table.options.getListFreightUrl)"></i>主动获取运费</a> '); // actions.push('<a class="btn btn-success btn-xs ' + getListFreightFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.orderTicketsId + '\', \'确定获取运费信息吗?\', table.options.getListFreightUrl)"></i>主动获取运费</a> ');
......
...@@ -39,8 +39,31 @@ ...@@ -39,8 +39,31 @@
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')}]];
var batchCancelOrderFlag = [[${@permission.hasPermi('kylin:performancesExpress:batchCancelOrder')}]]; var batchCancelOrderFlag = [[${@permission.hasPermi('kylin:performancesExpress:batchCancelOrder')}]];
var printFlag = [[${@permission.hasPermi('kylin:performancesExpress:print')}]];
var prefix = ctx + "kylin/performancesExpress"; var prefix = ctx + "kylin/performancesExpress";
var batchPrintFlag = [[${@permission.hasPermi('kylin:performancesExpress:batchPrint')}]];
function printAjax(performanceId) {
var configPrint = {
url: prefix + "/batchPrint",
type: "post",
dataType: "json",
data: {ids: performanceId},
beforeSend: function () {
$.modal.loading("正在处理中,请稍后...");
},
success: function (result) {
$.modal.closeLoading();
if (result.data != '' && result.data != null) {
var url = "https://img.zhengzai.tv/" + result.data;
window.location.href = url;
} else {
$.modal.msg("暂无需打印单");
}
}
};
$.ajax(configPrint)
}
$(function () { $(function () {
var options = { var options = {
...@@ -87,7 +110,7 @@ ...@@ -87,7 +110,7 @@
actions.push('<a class="btn btn-success btn-xs ' + performanceOrderListFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.performancesId + '\')"><i class="fa fa-edit"></i>查看</a> '); actions.push('<a class="btn btn-success btn-xs ' + performanceOrderListFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.performancesId + '\')"><i class="fa fa-edit"></i>查看</a> ');
actions.push('<a class="btn btn-danger btn-xs ' + batchPlaceOrderFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.performancesId + '\', \'确定批量下单吗?\', table.options.batchPlaceOrderUrl)"></i>下单</a> '); actions.push('<a class="btn btn-danger btn-xs ' + batchPlaceOrderFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.performancesId + '\', \'确定批量下单吗?\', table.options.batchPlaceOrderUrl)"></i>下单</a> ');
actions.push('<a class="btn btn-warning btn-xs ' + batchCancelOrderFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.performancesId + '\', \'确定批量取消吗?\', table.options.batchCancelOrderUrl)"></i>取消</a> '); actions.push('<a class="btn btn-warning btn-xs ' + batchCancelOrderFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.performancesId + '\', \'确定批量取消吗?\', table.options.batchCancelOrderUrl)"></i>取消</a> ');
actions.push('<a class="btn btn-warning btn-xs ' + printFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.performancesId + '\', \'确定批量打印吗?\', table.options.printUrl)"></i>打印</a> '); actions.push('<a class="btn btn-warning btn-xs ' + batchPrintFlag + '" href="javascript:void(0)" onclick="printAjax(\'' + row.performancesId + '\',)"></i>下载快递单</a> ');
return actions.join(''); return actions.join('');
} }
}] }]
......
...@@ -194,7 +194,7 @@ public class CodeUtil { ...@@ -194,7 +194,7 @@ public class CodeUtil {
return returnVal; return returnVal;
} }
public static String html2img(KylinOrderExpress kylinOrderExpress,String jContact, String jAddress, String jTel, KylinOrderTickets orderInfo, int num) public static String html2img(KylinOrderExpress kylinOrderExpress,String jContact, String jAddress, String jTel, KylinOrderTickets orderInfo)
{ {
long s = System.currentTimeMillis(); long s = System.currentTimeMillis();
String barCode = getBarCode(kylinOrderExpress.getMailno(), 90, 13); String barCode = getBarCode(kylinOrderExpress.getMailno(), 90, 13);
...@@ -244,7 +244,7 @@ public class CodeUtil { ...@@ -244,7 +244,7 @@ public class CodeUtil {
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
String imgPath = imgPathName.concat("/").concat(kylinOrderExpress.getMailno()).concat("-" + num).concat(".png"); String imgPath = imgPathName.concat("/").concat(kylinOrderExpress.getMailno()).concat(".png");
logger.debug("#mkdir耗时:{}ms", System.currentTimeMillis() - s); logger.debug("#mkdir耗时:{}ms", System.currentTimeMillis() - s);
html2Image.getImageRenderer().saveImage(imgPath); html2Image.getImageRenderer().saveImage(imgPath);
...@@ -253,11 +253,20 @@ public class CodeUtil { ...@@ -253,11 +253,20 @@ public class CodeUtil {
return imgPath; return imgPath;
} }
/*public static void main(String[] args) { public static void main(String[] args) {
String imgPath = html2img(); html2imgTest();
// 打印图片 // 打印图片
drawImage(imgPath, 1); // drawImage(imgPath, 1);
}*/ }
public static void html2imgTest()
{
Html2Image html2Image = Html2Image.fromFile(new File("/Users/jiangxiulong/Desktop/shunfeng-div.html"));
html2Image.getImageRenderer().saveImage("/Users/jiangxiulong/Desktop/testttt.png");
}
public static String tmpHtml() public static String tmpHtml()
{ {
...@@ -283,7 +292,6 @@ public class CodeUtil { ...@@ -283,7 +292,6 @@ public class CodeUtil {
" style=\"width: 98mm;\n" + " style=\"width: 98mm;\n" +
"\t\t\theight: 150mm;\n" + "\t\t\theight: 150mm;\n" +
"\t\t\tpadding-top: 5mm;\n" + "\t\t\tpadding-top: 5mm;\n" +
"\t\t\tborder: 1px solid #000;\n" +
"\t\t\ttext-align: center;\"\n" + "\t\t\ttext-align: center;\"\n" +
">\n" + ">\n" +
" <!-- 1. 运单打印系统来源及时间等 -->\n" + " <!-- 1. 运单打印系统来源及时间等 -->\n" +
...@@ -327,7 +335,7 @@ public class CodeUtil { ...@@ -327,7 +335,7 @@ public class CodeUtil {
" <div>\n" + " <div>\n" +
" <!-- 2.1 条码 -->\n" + " <!-- 2.1 条码 -->\n" +
" <div>\n" + " <div>\n" +
" <img src=\"images/yiweima.png\" style=\"width: 90%; height: 13mm; margin: 2mm 5mm;\">\n" + " <img src=\"images/yiweima.png\" style=\"width: 70mm; height: 13mm; margin: 2mm 5mm;\">\n" +
" </div>\n" + " </div>\n" +
" <!-- 2.2 子母件单号、汉字、件数标识、 -->\n" + " <!-- 2.2 子母件单号、汉字、件数标识、 -->\n" +
" <div\n" + " <div\n" +
...@@ -351,7 +359,7 @@ public class CodeUtil { ...@@ -351,7 +359,7 @@ public class CodeUtil {
" style=\"margin: 0 auto;\n" + " style=\"margin: 0 auto;\n" +
"\t\t\t\tborder: 1px solid #000;\n" + "\t\t\t\tborder: 1px solid #000;\n" +
"\t\t\t\tborder-bottom: none;\n" + "\t\t\t\tborder-bottom: none;\n" +
"\t\t\t\twidth: 92mm;\"\n" + "\t\t\t\twidth: 96mm;\"\n" +
" >\n" + " >\n" +
" <!-- 2.3 运单号 -->\n" + " <!-- 2.3 运单号 -->\n" +
" <div\n" + " <div\n" +
...@@ -386,50 +394,38 @@ public class CodeUtil { ...@@ -386,50 +394,38 @@ public class CodeUtil {
" </div>\n" + " </div>\n" +
" </div>\n" + " </div>\n" +
"\n" + "\n" +
" <table\n" + " <div style=\"border: 1px solid #000; \n" +
" border=\"1\"\n" + " margin: 0 auto; width: 96mm; height: 28mm; display: flex;\"\n" +
" style=\"margin: 0 auto; border: 1px solid #000; width: 92.5mm; border-collapse:collapse;\"\n" +
" >\n" + " >\n" +
" <tr>\n" + " <div>\n" +
" <td style=\"font-family: 宋体; font-size: 9pt;\">\n" + " <div style=\"width: 33mm; height: 6mm; border-bottom: 1px solid #000;\">\n" +
" 到付22元\n" + " 到付2.0元\n" +
" </td>\n" + " </div>\n" +
" <td rowspan=\"3\">\n" + " <div style=\"font-family: 黑体; font-size: 36pt; font-weight: bolder;\">\n" +
" C201\n" +
" </div>\n" +
" </div>\n" +
" <div style=\"width: 33mm; border-left: 1px solid #000; border-right: 1px solid #000;\">\n" +
" <img src=\"images/erweima.png\" style=\"width: 25mm; height: 25mm; margin: 1mm\">\n" + " <img src=\"images/erweima.png\" style=\"width: 25mm; height: 25mm; margin: 1mm\">\n" +
" </td>\n" + " </div>\n" +
" <!-- 13\t已验视 -->\n" + " <div style=\"width: 10mm; font-family: 黑体; font-size: 20pt; font-weight: bold; color: #272727b3; writing-mode:vertical-lr; border-right: 1px solid #000;\">\n" +
" <td\n" +
" rowspan=\"3\"\n" +
" style=\"font-family: 黑体; font-size: 20pt; font-weight: bold; color: #272727b3; writing-mode:vertical-lr;\"\n" +
" >\n" +
" 已验视\n" + " 已验视\n" +
" </td>\n" + " </div>\n" +
" <!-- 产品名称\t限时限时KC24字段 -->\n" + " <div>\n" +
" <td\n" + " <div style=\"width: 21mm;height: 9mm; border-bottom: 1px solid #000;\">\n" +
" rowspan=\"2\"\n" +
" style=\"font-family: 宋体; font-size: 12pt; width: 20mm;\"\n" +
" >\n" +
" 限时\n" + " 限时\n" +
" KC24\n" + " </div>\n" +
" </td>\n" + " <div style=\"width: 21mm; height: 17mm; font-family: 黑体; font-size: 30pt; font-weight: bolder;\">\n" +
" </tr>\n" + " B1\n" +
" <tr>\n" + " </div>\n" +
" <td rowspan=\"2\" style=\"font-family: 黑体; font-size: 22pt; font-weight: bold;\">\n" + " </div>\n" +
" A22\n" + " </div>\n" +
" </td>\n" +
" </tr>\n" +
" <tr>\n" +
" <td>\n" +
" 1A\n" +
" </td>\n" +
" </tr>\n" +
" </table>\n" +
"\n" + "\n" +
" <!-- 14\t寄方信息 -->\n" + " <!-- 14\t寄方信息 -->\n" +
" <div\n" + " <div\n" +
" style=\"border-left: 1px solid #000;\n" + " style=\"border-left: 1px solid #000;\n" +
"\t\t\t\tborder-right: 1px solid #000;\n" + "\t\t\t\tborder-right: 1px solid #000;\n" +
"\t\t\t\twidth: 92mm;\n" + "\t\t\t\twidth: 96mm;\n" +
"\t\t\t\tmargin: 0 auto;\n" + "\t\t\t\tmargin: 0 auto;\n" +
"\t\t\t\ttext-align: left;\"\n" + "\t\t\t\ttext-align: left;\"\n" +
" >\n" + " >\n" +
...@@ -451,55 +447,26 @@ public class CodeUtil { ...@@ -451,55 +447,26 @@ public class CodeUtil {
" </div>\n" + " </div>\n" +
" </div>\n" + " </div>\n" +
" </div>\n" + " </div>\n" +
"\n" + " <div style=\"border: 1px solid #000; \n" +
" <table\n" + " margin: 0 auto; width: 96mm; height: 24mm; display: flex; text-align: left\"\n" +
" border=\"1\"\n" +
" style=\"\n" +
"\t\t\t\tmargin: 0 auto;\n" +
"\t\t\t\tborder: 1px solid #000;\n" +
"\t\t\t\twidth: 92.5mm;\n" +
"\t\t\t\tfont-family: 宋体;\n" +
"\t\t\t\tfont-size: 9pt;\n" +
"\t\t\t\ttext-align: left;\n" +
"\t\t\t\tborder-collapse:collapse;\"\n" +
" >\n" + " >\n" +
" <tr>\n" + " <div style=\"width: 48mm; height: 24mm; border-right: 1px solid #000;\">\n" +
" <!-- 15\t托寄物 -->\n" + " 托寄物\n" +
" <td rowspan=\"2\">\n" + " </div>\n" +
" 托寄物:演出票\n" + " <div style=\"width: 46mm; height: 24mm;\">\n" +
" </td>\n" +
" <!-- 16\t增值服务 -->\n" +
" <!-- <td>\n" +
" 增值服务:\n" +
" </td> -->\n" +
" </tr>\n" +
" <!-- 17\t其他信息 -->\n" +
" <tr>\n" +
" <!-- 17. 1重量 -->\n" +
" <!-- 17.2 付款方式、费用等 -->\n" +
" <td>\n" +
" <div>计费重量:1kg</div>\n" + " <div>计费重量:1kg</div>\n" +
" <div>实际重量:1kg</div>\n" + " <div>实际重量:1kg</div>\n" +
" <div>费用合计:22元</div>\n" + " <div>费用合计:22元</div>\n" +
" <div>付款方式:到付</div>\n" + " <div>付款方式:到付</div>\n" +
" </td>\n" + " </div>\n" +
" </tr>\n" + " </div>\n" +
" <tr>\n" + " <div style=\"border: 1px solid #000; \n" +
" <!-- 18\t客户自定义区 -->\n" + " margin: 0 auto; width: 96mm; height: 25mm; text-align: left\"\n" +
" <td>\n" + " >\n" +
" 票种:\n" + " 备注:\n" +
" <br>\n" + " 票种:单日票\n" +
" 数量:\n" + " 数量:2\n" +
" </td>\n" + " </div>\n" +
" <!-- 19\t图标区域 -->\n" +
" <td>\n" +
" <!-- 图标区域 -->\n" +
" <!-- 贴纸信息 -->\n" +
" </td>\n" +
" </tr>\n" +
" </table>\n" +
"\n" +
"</div>\n" +
"</body>\n" + "</body>\n" +
"\n" + "\n" +
"\n" + "\n" +
......
...@@ -575,25 +575,22 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres ...@@ -575,25 +575,22 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
public String print(PerformanceExpressSearchAdminParam performanceExpressSearchAdminParam) { public String print(PerformanceExpressSearchAdminParam performanceExpressSearchAdminParam) {
List<String> ids = performanceExpressSearchAdminParam.getIds(); List<String> ids = performanceExpressSearchAdminParam.getIds();
int num = 0;
do {
for (String orderExpressId : ids) { for (String orderExpressId : ids) {
long s = System.currentTimeMillis(); long s = System.currentTimeMillis();
KylinOrderExpress kylinOrderExpress = kylinOrderExpressMapper.selectOne( KylinOrderExpress kylinOrderExpress = kylinOrderExpressMapper.selectOne(
Wrappers.lambdaQuery(KylinOrderExpress.class) Wrappers.lambdaQuery(KylinOrderExpress.class)
.eq(KylinOrderExpress::getOrderExpressId, orderExpressId) .eq(KylinOrderExpress::getOrderExpressId, orderExpressId)
); );
log.debug("#OrderExpress查询耗时:{}ms", System.currentTimeMillis() - s); // System.out.println(System.currentTimeMillis() - s);
KylinOrderTickets orderInfo = kylinOrderTicketsMapper.selectOne( KylinOrderTickets orderInfo = kylinOrderTicketsMapper.selectOne(
Wrappers.lambdaQuery(KylinOrderTickets.class) Wrappers.lambdaQuery(KylinOrderTickets.class)
.eq(KylinOrderTickets::getOrderTicketsId, kylinOrderExpress.getOrderTicketsId()) .eq(KylinOrderTickets::getOrderTicketsId, kylinOrderExpress.getOrderTicketsId())
); );
log.debug("#orderInfo查询耗时:{}ms", System.currentTimeMillis() - s); // System.out.println(System.currentTimeMillis() - s);
String imgPath = codeUtil.html2img(kylinOrderExpress, jContact, jProvince.concat(jCity).concat(jAddress), jTel, orderInfo, num); String imgPath = codeUtil.html2img(kylinOrderExpress, jContact, jProvince.concat(jCity).concat(jAddress), jTel, orderInfo);
// System.out.println(System.currentTimeMillis() - s);
} }
num++;
System.out.println(num);
} while (num <= 1000);
String zpiPath = zipMultiFileUtil.goZip(); String zpiPath = zipMultiFileUtil.goZip();
...@@ -603,4 +600,16 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres ...@@ -603,4 +600,16 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
return upload.getOssPath(); return upload.getOssPath();
} }
public String batchPrint(String performanceId) {
List<KylinOrderTickets> orderList = kylinOrderTicketsMapper.getCanCancelOrderList(performanceId, 0, 9999999);
String ossPath = "";
if (!CollectionUtil.isEmpty(orderList)) {
List<String> orderIds = orderList.stream().map(KylinOrderTickets -> KylinOrderTickets.getOrderTicketsId()).collect(Collectors.toList());
PerformanceExpressSearchAdminParam performanceExpressSearchAdminParam = new PerformanceExpressSearchAdminParam();
performanceExpressSearchAdminParam.setIds(orderIds);
ossPath = print(performanceExpressSearchAdminParam);
}
return ossPath;
}
} }
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