fix:新接口和默认值

This commit is contained in:
guohb
2024-05-16 11:39:09 +08:00
parent 114f036138
commit 482d73ebd0
3 changed files with 39 additions and 3 deletions

View File

@@ -82,6 +82,9 @@ public class SysStoreAppServiceImpl implements SysStoreAppService, AuditResultSe
@Resource
SimpleMessageService simpleMessageService;
@Resource
PointDetailInfoMapper pointDetailInfoMapper;
@Override
@Transactional(rollbackFor = Exception.class)
public ResponseResult submitSysBuildStore(SysStoreAppRequest request, LoginUserInfo user) {
@@ -167,6 +170,7 @@ public class SysStoreAppServiceImpl implements SysStoreAppService, AuditResultSe
storeDetail.setFightName(fightRegion.getName());
storeDetail.setFightCode(fightRegion.getSynDingDeptId());
storeDetail.setFightId(fightRegion.getId());
if (Objects.nonNull(systemBuildingShopDO)) {
sysStoreAppResponse.setId(systemBuildingShopDO.getId());
sysStoreAppResponse.setLineId(systemBuildingShopDO.getLineId());
@@ -224,6 +228,12 @@ public class SysStoreAppServiceImpl implements SysStoreAppService, AuditResultSe
storeDetail.setReasons(systemBuildingShopDO.getReasons());
storeDetail.setUsageRate(systemBuildingShopDO.getUsageRate());
}
PointDetailInfoDO shopPointDetailInfoByPointId = pointDetailInfoMapper.getShopPointDetailInfoByPointId(pointInfoDO.getId());
if (Objects.isNull(systemBuildingShopDO) && Objects.nonNull(shopPointDetailInfoByPointId)){
storeDetail.setLandlordMobile(shopPointDetailInfoByPointId.getLandlordMobile());
storeDetail.setLandlordName(shopPointDetailInfoByPointId.getLandlordUsername());
storeDetail.setStoreRent(Integer.valueOf(shopPointDetailInfoByPointId.getMonthRent()));
}
if (Objects.nonNull(lineInfoDO)) {
RegionDO byRegionId = regionMapper.getByRegionId(lineInfoDO.getRegionId());
franInfo.setSubregion(byRegionId.getName());