往来单位信息备份

dev2.0
黄泽腾 2 years ago
parent e5d967895b
commit 1161499ed4

@ -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);

Loading…
Cancel
Save