|
|
|
@ -186,34 +186,34 @@ public class InvInnerOrderPrintController {
|
|
|
|
|
} else {
|
|
|
|
|
Map<String, Object> data = new HashMap<String, Object>();
|
|
|
|
|
data.put("data", printEntities);
|
|
|
|
|
JasperUtils.jasperReport(request, response, data, filePath + "/pdf/template/" + systemPDFTemplateEntity.getPath(), "pdf");
|
|
|
|
|
JasperUtils.jasperReport(request, response, data, filePath + "/pdf/template/" + FileUtils.getLastFileName(systemPDFTemplateEntity.getPath()), "pdf");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
String orderId="";
|
|
|
|
|
String orderId = "";
|
|
|
|
|
for (InnerOrderPrintResponse InnerOrderPrintResponse : mStockPrintEntities) {
|
|
|
|
|
InvInnerOrderPrintEntity innerOrderPrintEntity = new InvInnerOrderPrintEntity();
|
|
|
|
|
innerOrderPrintEntity.setStatus(1);
|
|
|
|
|
innerOrderPrintEntity.setId(InnerOrderPrintResponse.getId());
|
|
|
|
|
invInnerOrderPrintService.updateOrder(innerOrderPrintEntity);
|
|
|
|
|
orderId=InnerOrderPrintResponse.getId()+"";
|
|
|
|
|
orderId = InnerOrderPrintResponse.getId() + "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查询订单id
|
|
|
|
|
InvInnerOrderPrintEntity innerOrderPrintEntity=invInnerOrderPrintService.selectById(orderId);
|
|
|
|
|
InvInnerOrderPrintEntity innerOrderPrintEntity = invInnerOrderPrintService.selectById(orderId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//更新内部码状态
|
|
|
|
|
|
|
|
|
|
InnerOrderEntity innerOrderEntity=innerOrderService.findByRecordKey(innerOrderPrintEntity.getOrderIdFk());
|
|
|
|
|
if(innerOrderEntity!=null){
|
|
|
|
|
InnerOrderEntity innerOrderEntity = innerOrderService.findByRecordKey(innerOrderPrintEntity.getOrderIdFk());
|
|
|
|
|
if (innerOrderEntity != null) {
|
|
|
|
|
innerOrderEntity.setGenStatus(2);
|
|
|
|
|
innerOrderEntity.setId(innerOrderEntity.getId());
|
|
|
|
|
innerOrderService.update(innerOrderEntity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IoOrderEntity ioOrderEntity=new IoOrderEntity();
|
|
|
|
|
IoOrderEntity ioOrderEntity = new IoOrderEntity();
|
|
|
|
|
ioOrderEntity.setInCodeStatus(1);
|
|
|
|
|
ioOrderEntity.setBillNo(innerOrderPrintEntity.getOrderIdFk());
|
|
|
|
|
ioOrderService.updateByBillNo(ioOrderEntity);
|
|
|
|
@ -229,7 +229,7 @@ public class InvInnerOrderPrintController {
|
|
|
|
|
@RequestBody InspectionPDFTemplateRequest inspectionPDFTemplateRequest) throws Exception {
|
|
|
|
|
|
|
|
|
|
//查询模板文件是否存在
|
|
|
|
|
SysPdfTemplateRelevanceStatemenEntity sysPdfTemplateRelevanceStatemenEntity = systemPDFModuleService.selectByStatemenId(inspectionPDFTemplateRequest.getLabelId()+"");
|
|
|
|
|
SysPdfTemplateRelevanceStatemenEntity sysPdfTemplateRelevanceStatemenEntity = systemPDFModuleService.selectByStatemenId(inspectionPDFTemplateRequest.getLabelId() + "");
|
|
|
|
|
if (null == sysPdfTemplateRelevanceStatemenEntity) {
|
|
|
|
|
return ResultVOUtils.error(ResultEnum.DATA_NOT, "所属模块错误");
|
|
|
|
|
}
|
|
|
|
@ -247,7 +247,7 @@ public class InvInnerOrderPrintController {
|
|
|
|
|
@RequestBody InnerOrderQRCodeTextPDFTemplateRequest stockQRCodeTextPDFTemplateRequest,
|
|
|
|
|
HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
|
|
|
|
|
|
|
|
SysPdfTemplateRelevanceStatemenEntity sysPdfTemplateRelevanceStatemenEntity = systemPDFModuleService.selectByStatemenId(stockQRCodeTextPDFTemplateRequest.getLabelId()+"");
|
|
|
|
|
SysPdfTemplateRelevanceStatemenEntity sysPdfTemplateRelevanceStatemenEntity = systemPDFModuleService.selectByStatemenId(stockQRCodeTextPDFTemplateRequest.getLabelId() + "");
|
|
|
|
|
if (sysPdfTemplateRelevanceStatemenEntity == null) return ResultVOUtils.error(500, "未找到单据模板模块设置,请检查");
|
|
|
|
|
|
|
|
|
|
SystemPDFTemplateEntity systemPDFTemplateEntity =
|
|
|
|
|