|
|
|
@ -603,7 +603,7 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
@PostMapping("/udiwms/inout/biz/insertInvoice")
|
|
|
|
|
@Log(title = "发票管理", businessType = BusinessType.INSERT)
|
|
|
|
|
public BaseResponse insertInvoice(@RequestBody IoOrderInvoiceEntity ioOrderInvoice) {
|
|
|
|
|
|
|
|
|
|
String billNo = null;
|
|
|
|
|
for (IoOrderDetailBizEntity ioOrderDetailBizEntity : ioOrderInvoice.getList()) {
|
|
|
|
|
IoOrderInvoiceEntity ioOrderInvoiceEntity = new IoOrderInvoiceEntity();
|
|
|
|
|
ioOrderInvoiceEntity.setOrderIdFk(ioOrderDetailBizEntity.getOrderIdFk());
|
|
|
|
@ -623,17 +623,26 @@ public class IoOrderDetailBizController extends BaseController {
|
|
|
|
|
ioOrderInvoiceEntity.setRemark(ioOrderInvoice.getRemark());
|
|
|
|
|
ioOrderInvoiceEntity.setLicenseUrl(ioOrderInvoice.getLicenseUrl());
|
|
|
|
|
boolean b = ioOrderInvoiceService.insertInvoice(ioOrderInvoiceEntity);
|
|
|
|
|
billNo = ioOrderDetailBizEntity.getOrderIdFk();
|
|
|
|
|
}
|
|
|
|
|
IoOrderEntity orderEntity = orderService.findByBillNo(billNo);
|
|
|
|
|
orderEntity.setUpdateTime(new Date());
|
|
|
|
|
orderService.update(orderEntity);
|
|
|
|
|
return ResultVOUtils.success("成功");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("/udiwms/inout/biz/updateorderBiz")
|
|
|
|
|
public BaseResponse updateorderBiz(@RequestBody List<IoOrderDetailCodeEntity> list) {
|
|
|
|
|
String billNo = null;
|
|
|
|
|
for (IoOrderDetailCodeEntity ioOrderDetailBizEntity : list) {
|
|
|
|
|
ioOrderDetailBizEntity.setRegStatus(true);
|
|
|
|
|
orderDetailCodeService.updateOrderDetailBiz(ioOrderDetailBizEntity);
|
|
|
|
|
billNo = ioOrderDetailBizEntity.getOrderIdFk();
|
|
|
|
|
}
|
|
|
|
|
IoOrderEntity orderEntity = orderService.findByBillNo(billNo);
|
|
|
|
|
orderEntity.setUpdateTime(new Date());
|
|
|
|
|
orderService.update(orderEntity);
|
|
|
|
|
return ResultVOUtils.success("成功");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|