|
|
|
@ -132,11 +132,13 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
return R.fail(405, "暂存单数据不存在"); |
|
|
|
|
} |
|
|
|
|
String dealerName = null; |
|
|
|
|
String dealerCode = null; |
|
|
|
|
String brand = null; |
|
|
|
|
Integer totalNum = 0; |
|
|
|
|
for (TrunklineAdvanceEntity advanceEntity : list) { |
|
|
|
|
if (StringUtil.isBlank(dealerName)) { |
|
|
|
|
dealerName = advanceEntity.getDealerName(); |
|
|
|
|
dealerCode = advanceEntity.getDealerCode(); |
|
|
|
|
} |
|
|
|
|
if (StringUtil.isBlank(brand)) { |
|
|
|
|
brand = advanceEntity.getBrand(); |
|
|
|
@ -191,7 +193,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//收货单位-----根据三方商场找到对应的clientId
|
|
|
|
|
Long clientId = basicdataTripartiteMallClient.getClientIdByNameAndBrand(dealerName, brand); |
|
|
|
|
Long clientId = basicdataTripartiteMallClient.getClientIdByNameAndBrandAndCode(dealerName,StringUtil.isBlank(dealerCode)?"":dealerCode, brand); |
|
|
|
|
BasicdataClientVO basicdataClientEntity = basicdataClientClient.findEntityVoById(clientId); |
|
|
|
|
if (!Objects.isNull(basicdataClientEntity)) { |
|
|
|
|
openOrderVO.setConsigneeClientId(clientId); |
|
|
|
|