打印工单

This commit is contained in:
xiaofajia 2024-10-30 17:48:27 +08:00
parent 85c0f41442
commit c1cf26a98c

View File

@ -748,16 +748,16 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
try {
Map<String, Object> stringObjectMap = repairOrderInfoService.payTransactions(orderInfo.getId());
payUrl = (String) stringObjectMap.get("prepay_id");
}catch (Exception e){
e.printStackTrace();
throw exception0(500, "系统异常");
}
// 这个地方可能报错报错就不生成二维码了保证工单是能出来的
// 生成收款二维码
int width = 100, height = 100;
byte[] texts = CreateQRCodeUtil.GenerateQRCode(payUrl, width, height);
if (ObjectUtil.isNotEmpty(texts)){
params.put("qrCode", new PictureRenderData(width, height, PictureType.PNG, texts));
}
}catch (Exception e){
e.printStackTrace();
}
Configure config = configureBuilder.build();
try {