|
|
|
@ -317,7 +317,11 @@ public class IoOrderController extends BaseController {
|
|
|
|
|
basicCorpEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
|
basicCorpService.insert(basicCorpEntity);
|
|
|
|
|
}
|
|
|
|
|
orderEntity.setFromCorp(basicCorpEntity.getErpId());
|
|
|
|
|
if (addOrderRequest.getAction().equals(bussinessTypeEntity.getAction())){
|
|
|
|
|
orderEntity.setFromCorp(basicCorpEntity.getName());
|
|
|
|
|
}else {
|
|
|
|
|
orderEntity.setFromCorp(basicCorpEntity.getErpId());
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
orderEntity.setFromCorp(addOrderRequest.getFromCorp());
|
|
|
|
|
}
|
|
|
|
|