|
@ -21,6 +21,7 @@ import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
import com.epmet.commons.tools.dto.result.OptionResultDTO; |
|
|
import com.epmet.commons.tools.dto.result.OptionResultDTO; |
|
|
|
|
|
import com.epmet.commons.tools.enums.DictTypeEnum; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
@ -44,6 +45,7 @@ import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.util.CollectionUtils; |
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 九小场所下组织管理 |
|
|
* 九小场所下组织管理 |
|
@ -114,6 +116,7 @@ public class IcPlaceOrgServiceImpl extends BaseServiceImpl<IcPlaceOrgDao, IcPlac |
|
|
return resultDTO; |
|
|
return resultDTO; |
|
|
} |
|
|
} |
|
|
resultDTO = result.get(0); |
|
|
resultDTO = result.get(0); |
|
|
|
|
|
|
|
|
//2.查询九小场所信息
|
|
|
//2.查询九小场所信息
|
|
|
Result<List<OptionResultDTO>> result1 = epmetAdminOpenFeignClient.getNineSmallPlacesOption(); |
|
|
Result<List<OptionResultDTO>> result1 = epmetAdminOpenFeignClient.getNineSmallPlacesOption(); |
|
|
if (!result1.success()) { |
|
|
if (!result1.success()) { |
|
@ -124,6 +127,11 @@ public class IcPlaceOrgServiceImpl extends BaseServiceImpl<IcPlaceOrgDao, IcPlac |
|
|
resultDTO.setNinePlaceName(d.getLabel()); |
|
|
resultDTO.setNinePlaceName(d.getLabel()); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//3.查询人员规模字典表信息
|
|
|
|
|
|
Result<Map<String, String>> unitTypeMap = epmetAdminOpenFeignClient.dictMap(DictTypeEnum.SCALE.getCode()); |
|
|
|
|
|
resultDTO.setScaleName(unitTypeMap.getData().get(resultDTO.getScale())); |
|
|
|
|
|
|
|
|
return resultDTO; |
|
|
return resultDTO; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -143,14 +151,21 @@ public class IcPlaceOrgServiceImpl extends BaseServiceImpl<IcPlaceOrgDao, IcPlac |
|
|
return resultDTO; |
|
|
return resultDTO; |
|
|
} |
|
|
} |
|
|
resultDTO.setTotal((int) result.getTotal()); |
|
|
resultDTO.setTotal((int) result.getTotal()); |
|
|
|
|
|
|
|
|
//2.查询九小场所信息
|
|
|
//2.查询九小场所信息
|
|
|
Result<List<OptionResultDTO>> result1 = epmetAdminOpenFeignClient.getNineSmallPlacesOption(); |
|
|
Result<List<OptionResultDTO>> result1 = epmetAdminOpenFeignClient.getNineSmallPlacesOption(); |
|
|
if (!result1.success()) { |
|
|
if (!result1.success()) { |
|
|
throw new RenException("获取九小场所基本信息失败......"); |
|
|
throw new RenException("获取九小场所基本信息失败......"); |
|
|
} |
|
|
} |
|
|
result.getList().forEach(r -> result1.getData().stream().filter(u -> r.getNinePlaceVal().equals(u.getValue())).forEach(u -> r.setNinePlaceName(u.getLabel()))); |
|
|
result.getList().forEach(r -> result1.getData().stream().filter(u -> r.getNinePlaceVal().equals(u.getValue())).forEach(u -> r.setNinePlaceName(u.getLabel()))); |
|
|
resultDTO.setList(result.getList()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//3.人员规模字典表赋值
|
|
|
|
|
|
Result<Map<String, String>> unitTypeMap = epmetAdminOpenFeignClient.dictMap(DictTypeEnum.SCALE.getCode()); |
|
|
|
|
|
result.getList().forEach(item -> { |
|
|
|
|
|
item.setScaleName(unitTypeMap.getData().get(item.getScale())); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
resultDTO.setList(result.getList()); |
|
|
return resultDTO; |
|
|
return resultDTO; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |