fix:新接口和默认值
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user