|
@ -28,7 +28,9 @@ import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
import com.epmet.commons.tools.exception.ExceptionUtils; |
|
|
import com.epmet.commons.tools.exception.ExceptionUtils; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
|
|
import com.epmet.commons.tools.redis.common.CustomerOrgRedis; |
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
|
|
|
import com.epmet.commons.tools.redis.common.bean.GridInfoCache; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
@ -123,6 +125,12 @@ public class IcPartyActivityServiceImpl extends BaseServiceImpl<IcPartyActivityD |
|
|
List<String> unitIds = Arrays.asList(dto.getUnitId().split(StrConstant.COMMA)); |
|
|
List<String> unitIds = Arrays.asList(dto.getUnitId().split(StrConstant.COMMA)); |
|
|
List<String> unitNames = unitIds.stream().map(option::get).collect(Collectors.toList()); |
|
|
List<String> unitNames = unitIds.stream().map(option::get).collect(Collectors.toList()); |
|
|
dto.setUnitName(StringUtils.join(unitNames, StrConstant.COMMA)); |
|
|
dto.setUnitName(StringUtils.join(unitNames, StrConstant.COMMA)); |
|
|
|
|
|
if (StringUtils.isNotEmpty(dto.getGridId())) { |
|
|
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(dto.getGridId()); |
|
|
|
|
|
if (null != gridInfo) { |
|
|
|
|
|
dto.setGridName(gridInfo.getGridName()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -150,6 +158,12 @@ public class IcPartyActivityServiceImpl extends BaseServiceImpl<IcPartyActivityD |
|
|
List<String> unitIds = Arrays.asList(dto.getUnitId().split(StrConstant.COMMA)); |
|
|
List<String> unitIds = Arrays.asList(dto.getUnitId().split(StrConstant.COMMA)); |
|
|
List<String> unitNames = unitIds.stream().map(option::get).collect(Collectors.toList()); |
|
|
List<String> unitNames = unitIds.stream().map(option::get).collect(Collectors.toList()); |
|
|
dto.setUnitName(StringUtils.join(unitNames, StrConstant.COMMA)); |
|
|
dto.setUnitName(StringUtils.join(unitNames, StrConstant.COMMA)); |
|
|
|
|
|
if (StringUtils.isNotEmpty(dto.getGridId())) { |
|
|
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(dto.getGridId()); |
|
|
|
|
|
if (null != gridInfo) { |
|
|
|
|
|
dto.setGridName(gridInfo.getGridName()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -171,6 +185,12 @@ public class IcPartyActivityServiceImpl extends BaseServiceImpl<IcPartyActivityD |
|
|
List<String> serviceNames = services.stream().map(categoryMap::get).collect(Collectors.toList()); |
|
|
List<String> serviceNames = services.stream().map(categoryMap::get).collect(Collectors.toList()); |
|
|
dto.setServiceMatterList(services); |
|
|
dto.setServiceMatterList(services); |
|
|
dto.setServiceMatterNameList(serviceNames); |
|
|
dto.setServiceMatterNameList(serviceNames); |
|
|
|
|
|
if (StringUtils.isNotEmpty(dto.getGridId())) { |
|
|
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(dto.getGridId()); |
|
|
|
|
|
if (null != gridInfo) { |
|
|
|
|
|
dto.setGridName(gridInfo.getGridName()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//获取单位
|
|
|
//获取单位
|
|
|
//获取组织下联建单位
|
|
|
//获取组织下联建单位
|
|
@ -547,6 +567,14 @@ public class IcPartyActivityServiceImpl extends BaseServiceImpl<IcPartyActivityD |
|
|
List<String> services = Arrays.asList(dto.getServiceMatter().split(StrConstant.COMMA)); |
|
|
List<String> services = Arrays.asList(dto.getServiceMatter().split(StrConstant.COMMA)); |
|
|
List<String> serviceNames = services.stream().map(categoryMap::get).collect(Collectors.toList()); |
|
|
List<String> serviceNames = services.stream().map(categoryMap::get).collect(Collectors.toList()); |
|
|
dto.setServiceMatterName(StringUtils.join(serviceNames, StrConstant.SEMICOLON)); |
|
|
dto.setServiceMatterName(StringUtils.join(serviceNames, StrConstant.SEMICOLON)); |
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(dto.getGridId())) { |
|
|
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(dto.getGridId()); |
|
|
|
|
|
if (null != gridInfo) { |
|
|
|
|
|
dto.setGridName(gridInfo.getGridName()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
PageInfo<IcPartyActivityDTO> pageInfo = new PageInfo<>(dtoList); |
|
|
PageInfo<IcPartyActivityDTO> pageInfo = new PageInfo<>(dtoList); |
|
|