feat:合同接口添加管理区域
This commit is contained in:
@@ -110,4 +110,10 @@ public class ContractInformationDTO {
|
|||||||
@ApiModelProperty("所属大区")
|
@ApiModelProperty("所属大区")
|
||||||
private String regionName;
|
private String regionName;
|
||||||
|
|
||||||
|
@ApiModelProperty("加盟分部(归属分部)")
|
||||||
|
private String investRegionName;
|
||||||
|
|
||||||
|
@ApiModelProperty("所属子区域(归属区域)")
|
||||||
|
private String subRegionName;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -706,7 +706,9 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
|
|||||||
|
|
||||||
LineInfoDO lineInfo = lineInfoDAO.getLineInfo(shopInfoDO.getLineId());
|
LineInfoDO lineInfo = lineInfoDAO.getLineInfo(shopInfoDO.getLineId());
|
||||||
|
|
||||||
RegionDO region = regionDao.getRegionById(shopInfoDO.getRegionId());
|
List<Long> regionIds = Arrays.asList(shopInfoDO.getRegionId(), shopInfoDO.getInvestRegionId(), shopInfoDO.getManagerRegionId());
|
||||||
|
|
||||||
|
Map<Long, String> regionNameMap = regionDao.getRegionNameMap(regionIds);
|
||||||
|
|
||||||
|
|
||||||
log.info("加盟合同审批时签约类型:{}", SignTypeEnum.getDescByCode(signFranchiseDO.getSignType()));
|
log.info("加盟合同审批时签约类型:{}", SignTypeEnum.getDescByCode(signFranchiseDO.getSignType()));
|
||||||
@@ -751,9 +753,16 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
|
|||||||
|
|
||||||
contractInformationDTO.setStoreAddress(shopInfoDO.getDetailAddress());
|
contractInformationDTO.setStoreAddress(shopInfoDO.getDetailAddress());
|
||||||
contractInformationDTO.setDiscountReason(franchiseFeeDO.getDiscountReason());
|
contractInformationDTO.setDiscountReason(franchiseFeeDO.getDiscountReason());
|
||||||
if (region != null){
|
if (shopInfoDO.getRegionId()!=null){
|
||||||
contractInformationDTO.setRegionName(region.getName());
|
contractInformationDTO.setRegionName(regionNameMap.get(shopInfoDO.getRegionId()));
|
||||||
}
|
}
|
||||||
|
if (shopInfoDO.getInvestRegionId()!=null){
|
||||||
|
contractInformationDTO.setInvestRegionName(regionNameMap.get(shopInfoDO.getInvestRegionId()));
|
||||||
|
}
|
||||||
|
if (shopInfoDO.getRegionId()!=null){
|
||||||
|
contractInformationDTO.setSubRegionName(regionNameMap.get(shopInfoDO.getManagerRegionId()));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//老店转加盟(也叫直营转加盟)
|
//老店转加盟(也叫直营转加盟)
|
||||||
if (SignTypeEnum.DIRECT_SALES_TO_JOINING.getCode().equals(signFranchiseDO.getSignType())){
|
if (SignTypeEnum.DIRECT_SALES_TO_JOINING.getCode().equals(signFranchiseDO.getSignType())){
|
||||||
|
|||||||
Reference in New Issue
Block a user