打印工单
This commit is contained in:
parent
85c0f41442
commit
c1cf26a98c
@ -748,15 +748,15 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
||||
try {
|
||||
Map<String, Object> stringObjectMap = repairOrderInfoService.payTransactions(orderInfo.getId());
|
||||
payUrl = (String) stringObjectMap.get("prepay_id");
|
||||
// 这个地方可能报错,报错就不生成二维码了,保证工单是能出来的
|
||||
// 生成收款二维码
|
||||
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();
|
||||
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));
|
||||
}
|
||||
|
||||
Configure config = configureBuilder.build();
|
||||
|
Loading…
Reference in New Issue
Block a user