|
|
@ -315,14 +315,11 @@ public class IoOrderController extends BaseController {
|
|
|
|
basicCorpEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
basicCorpEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
basicCorpService.insert(basicCorpEntity);
|
|
|
|
basicCorpService.insert(basicCorpEntity);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (addOrderRequest.getAction().equals("SC68653620956887")){
|
|
|
|
if (addOrderRequest.getAction().equals(bussinessTypeEntity.getAction())){
|
|
|
|
orderEntity.setFromCorp(basicCorpEntity.getName());
|
|
|
|
orderEntity.setFromCorp(basicCorpEntity.getName());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
orderEntity.setFromCorp(basicCorpEntity.getErpId());
|
|
|
|
orderEntity.setFromCorp(basicCorpEntity.getErpId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
orderEntity.setFromCorp(addOrderRequest.getFromCorp());
|
|
|
|
orderEntity.setFromCorp(addOrderRequest.getFromCorp());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -333,7 +330,6 @@ public class IoOrderController extends BaseController {
|
|
|
|
orderEntity.setDeptCode(addOrderRequest.getDeptCode());
|
|
|
|
orderEntity.setDeptCode(addOrderRequest.getDeptCode());
|
|
|
|
orderEntity.setBillNo(addOrderRequest.getBillNo());
|
|
|
|
orderEntity.setBillNo(addOrderRequest.getBillNo());
|
|
|
|
orderEntity.setInvCode(addOrderRequest.getInvCode());
|
|
|
|
orderEntity.setInvCode(addOrderRequest.getInvCode());
|
|
|
|
|
|
|
|
|
|
|
|
orderService.updateByBillNo(orderEntity);
|
|
|
|
orderService.updateByBillNo(orderEntity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|