Merge branch 'cc_20250325_select' into 'master'

Cc 20250325 select

See merge request hangzhou/java/custom_zxjp!61
This commit is contained in:
苏竹红
2025-04-18 06:04:17 +00:00
3 changed files with 29 additions and 10 deletions

View File

@@ -192,6 +192,9 @@ public class ZxjpApiRequest {
@ApiModelProperty(value = "报货物流仓库(编码)") @ApiModelProperty(value = "报货物流仓库(编码)")
private String declareGoodsLogisticsWarehouse ; private String declareGoodsLogisticsWarehouse ;
@ApiModelProperty(value = "报货物流仓库" )
private String declareGoodsLogisticsWarehouseName;
@ApiModelProperty(value = "报货类型 0-按周报货 1-按月报货 2-自提" ) @ApiModelProperty(value = "报货类型 0-按周报货 1-按月报货 2-自提" )
private String declareGoodsType; private String declareGoodsType;

View File

@@ -94,7 +94,7 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
// Long regionId = regionAreaConfigDao.getByWantShopAreaId(lineInfoParam.getWantShopAreaId()); // Long regionId = regionAreaConfigDao.getByWantShopAreaId(lineInfoParam.getWantShopAreaId());
// lineInfoParam.setRegionId(regionId); // lineInfoParam.setRegionId(regionId);
// } // }
if (StringUtils.isBlank(lineInfoParam.getInvestmentManager())) { if (StringUtils.isBlank(lineInfoParam.getInvestmentManager()) &&StringUtils.isBlank(lineInfoDO.getInvestmentManager())) {
lineInfoParam.setFranchiseBrand(String.valueOf(FranchiseBrandEnum.ZXJP.getCode())); lineInfoParam.setFranchiseBrand(String.valueOf(FranchiseBrandEnum.ZXJP.getCode()));
lineInfoParam.setLineStatus(0); lineInfoParam.setLineStatus(0);
}else{ }else{
@@ -163,10 +163,25 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
if (Objects.isNull(byLineId)) { if (Objects.isNull(byLineId)) {
throw new ServiceException(ErrorCodeEnum.LINE_ID_IS_NOT_EXIST); throw new ServiceException(ErrorCodeEnum.LINE_ID_IS_NOT_EXIST);
} }
if (Objects.isNull(result)) { PartnerBaseInfoVO response = new PartnerBaseInfoVO();
return new PartnerBaseInfoVO(); response.setSupervisorId(byLineId.getInvestmentManager());
EnterpriseUserDO enterpriseUserDO = enterpriseUserDAO.getUserInfoById(byLineId.getInvestmentManager());
if (Objects.nonNull(enterpriseUserDO)) {
response.setSupervisorName(enterpriseUserDO.getName());
response.setSupervisorMobile(enterpriseUserDO.getMobile());
} }
PartnerBaseInfoVO response = PartnerBaseInfoVO.from(result, byLineId); if (Objects.isNull(result)) {
return response;
}
response = PartnerBaseInfoVO.from(result, byLineId);
if (response != null) {
response.setSupervisorId(byLineId.getInvestmentManager());
if (Objects.nonNull(enterpriseUserDO)) {
response.setSupervisorName(enterpriseUserDO.getName());
response.setSupervisorMobile(enterpriseUserDO.getMobile());
}
}
HyOpenAreaInfoDO openAreaInfoDO = openAreaInfoMapper.selectById(Long.valueOf(response.getAreaCode())); HyOpenAreaInfoDO openAreaInfoDO = openAreaInfoMapper.selectById(Long.valueOf(response.getAreaCode()));
response.setArea(openAreaInfoDO.getAreaPath()); response.setArea(openAreaInfoDO.getAreaPath());
if (Objects.nonNull(result.getAuditId())) { if (Objects.nonNull(result.getAuditId())) {
@@ -177,12 +192,6 @@ public class JoinIntentionServiceImpl extends LineFlowService implements JoinInt
response.setRejectPublicReason(lineAuditInfoDO.getRejectPublicReason()); response.setRejectPublicReason(lineAuditInfoDO.getRejectPublicReason());
} }
response.setBigRegionId(byLineId.getBigRegionId()); response.setBigRegionId(byLineId.getBigRegionId());
response.setSupervisorId(byLineId.getInvestmentManager());
EnterpriseUserDO enterpriseUserDO = enterpriseUserDAO.getUserInfoById(byLineId.getInvestmentManager());
if (Objects.nonNull(enterpriseUserDO)) {
response.setSupervisorName(enterpriseUserDO.getName());
response.setSupervisorMobile(enterpriseUserDO.getMobile());
}
return response; return response;
} }

View File

@@ -12,6 +12,7 @@ import com.cool.store.enums.FranchiseBrandEnum;
import com.cool.store.exception.ServiceException; import com.cool.store.exception.ServiceException;
import com.cool.store.mapper.ApplyLicenseMapper; import com.cool.store.mapper.ApplyLicenseMapper;
import com.cool.store.mapper.SignFranchiseMapper; import com.cool.store.mapper.SignFranchiseMapper;
import com.cool.store.mapper.WarehouseInfoMapper;
import com.cool.store.request.ZxjpApiRequest; import com.cool.store.request.ZxjpApiRequest;
import com.cool.store.service.SyncDataService; import com.cool.store.service.SyncDataService;
import com.cool.store.utils.JSONUtils; import com.cool.store.utils.JSONUtils;
@@ -39,6 +40,8 @@ import java.util.stream.Collectors;
@Service @Service
public class SyncDataServiceImpl implements SyncDataService { public class SyncDataServiceImpl implements SyncDataService {
@Resource
private WarehouseInfoMapper warehouseInfoMapper;
@Resource @Resource
private ShopInfoDAO shopInfoDAO; private ShopInfoDAO shopInfoDAO;
@Resource @Resource
@@ -144,6 +147,10 @@ public class SyncDataServiceImpl implements SyncDataService {
request.setAddresseeDistrict(orderSysInfoDO.getAddresseeDistrict()); request.setAddresseeDistrict(orderSysInfoDO.getAddresseeDistrict());
request.setAddresseeAddress(orderSysInfoDO.getAddresseeAddress()); request.setAddresseeAddress(orderSysInfoDO.getAddresseeAddress());
request.setDeclareGoodsLogisticsWarehouse(orderSysInfoDO.getDeclareGoodsLogisticsWarehouse()); request.setDeclareGoodsLogisticsWarehouse(orderSysInfoDO.getDeclareGoodsLogisticsWarehouse());
WarehouseInfoDO warehouseInfoDO = warehouseInfoMapper.getByCode(orderSysInfoDO.getDeclareGoodsLogisticsWarehouse());
if (Objects.nonNull(warehouseInfoDO)) {
request.setDeclareGoodsLogisticsWarehouseName(warehouseInfoDO.getWarehouseName());
}
request.setDeclareGoodsType(orderSysInfoDO.getDeclareGoodsType()); request.setDeclareGoodsType(orderSysInfoDO.getDeclareGoodsType());
request.setDeclareGoodsDate(JSONUtils.parseToListOrMap(orderSysInfoDO.getDeclareGoodsDate(), new TypeReference<List<DeclareGoodsDateDTO>>() {})); request.setDeclareGoodsDate(JSONUtils.parseToListOrMap(orderSysInfoDO.getDeclareGoodsDate(), new TypeReference<List<DeclareGoodsDateDTO>>() {}));
request.setReceivingFirmName(orderSysInfoDO.getReceivingFirmName()); request.setReceivingFirmName(orderSysInfoDO.getReceivingFirmName());