diff --git a/src/main/java/com/glxp/api/controller/inout/IoOrderController.java b/src/main/java/com/glxp/api/controller/inout/IoOrderController.java index 9e4c9276..484702ee 100644 --- a/src/main/java/com/glxp/api/controller/inout/IoOrderController.java +++ b/src/main/java/com/glxp/api/controller/inout/IoOrderController.java @@ -315,14 +315,11 @@ public class IoOrderController extends BaseController { basicCorpEntity.setId(IdUtil.getSnowflakeNextId()); basicCorpService.insert(basicCorpEntity); } - if (addOrderRequest.getAction().equals("SC68653620956887")){ + if (addOrderRequest.getAction().equals(bussinessTypeEntity.getAction())){ orderEntity.setFromCorp(basicCorpEntity.getName()); - - }else { orderEntity.setFromCorp(basicCorpEntity.getErpId()); } - } else { orderEntity.setFromCorp(addOrderRequest.getFromCorp()); } @@ -333,7 +330,6 @@ public class IoOrderController extends BaseController { orderEntity.setDeptCode(addOrderRequest.getDeptCode()); orderEntity.setBillNo(addOrderRequest.getBillNo()); orderEntity.setInvCode(addOrderRequest.getInvCode()); - orderService.updateByBillNo(orderEntity);