|
|
@ -2,6 +2,8 @@ package com.epmet.service.impl; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.constant.StrConstant; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerOrgRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.bean.GridInfoCache; |
|
|
|
import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
|
import com.epmet.commons.tools.utils.DateUtils; |
|
|
|
import com.epmet.constant.ActConstant; |
|
|
@ -201,6 +203,13 @@ public class WorkActDraftServiceImpl implements WorkActDraftService { |
|
|
|
List<String> unitNames = unitIds.stream().map(option::get).collect(Collectors.toList()); |
|
|
|
actPreviewResultDTO.setUnitIdList(unitIds); |
|
|
|
actPreviewResultDTO.setUnitNameList(unitNames); |
|
|
|
|
|
|
|
if (StringUtils.isNotEmpty(actPreviewResultDTO.getGridId())) { |
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(actPreviewResultDTO.getGridId()); |
|
|
|
if (null != gridInfo) { |
|
|
|
actPreviewResultDTO.setGridName(gridInfo.getGridName()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return actPreviewResultDTO; |
|
|
@ -337,7 +346,7 @@ public class WorkActDraftServiceImpl implements WorkActDraftService { |
|
|
|
|
|
|
|
latestActInfoDTO.setActType(formDTO.getActType()); |
|
|
|
latestActInfoDTO.setTarget(formDTO.getTarget()); |
|
|
|
|
|
|
|
latestActInfoDTO.setGridId(formDTO.getGridId()); |
|
|
|
return latestActInfoDTO; |
|
|
|
} |
|
|
|
|
|
|
|