|
|
@ -34,6 +34,8 @@ import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.utils.*; |
|
|
|
import org.springblade.core.tool.utils.*; |
|
|
|
import org.springblade.flow.core.feign.IFlowClient; |
|
|
|
import org.springblade.flow.core.feign.IFlowClient; |
|
|
|
import org.springblade.system.feign.ISysClient; |
|
|
|
import org.springblade.system.feign.ISysClient; |
|
|
|
|
|
|
|
import org.springblade.system.user.cache.UserCache; |
|
|
|
|
|
|
|
import org.springblade.system.user.entity.User; |
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.jdbc.datasource.DataSourceTransactionManager; |
|
|
|
import org.springframework.jdbc.datasource.DataSourceTransactionManager; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@ -342,7 +344,16 @@ public class MaintenanceServiceImpl implements MaintenanceService { |
|
|
|
ImsDutyMainEntity entity = mainService.getOne(entityLambdaQueryWrapper); |
|
|
|
ImsDutyMainEntity entity = mainService.getOne(entityLambdaQueryWrapper); |
|
|
|
if (ObjectUtil.isNotEmpty(entity) && StringUtils.isNotEmpty(entity.getDutyPersonIds())) { |
|
|
|
if (ObjectUtil.isNotEmpty(entity) && StringUtils.isNotEmpty(entity.getDutyPersonIds())) { |
|
|
|
String userId = entity.getDutyPersonIds(); |
|
|
|
String userId = entity.getDutyPersonIds(); |
|
|
|
|
|
|
|
String[] split = userId.split("\\^"); |
|
|
|
|
|
|
|
String disposerName=""; |
|
|
|
|
|
|
|
for (int i = 0; i < split.length; i++) { |
|
|
|
|
|
|
|
User user = UserCache.getUser(Long.valueOf(split[i])); |
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(user)&&StringUtils.isNotBlank(user.getName())){ |
|
|
|
|
|
|
|
disposerName=disposerName+user.getName(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
taskEntity.setDisposer(userId.replaceAll("\\^", ",")); |
|
|
|
taskEntity.setDisposer(userId.replaceAll("\\^", ",")); |
|
|
|
|
|
|
|
taskEntity.setDisposerName(disposerName); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
log.info("计划ID为:{}未查询到排班记录", finalPlanEntity.getId()); |
|
|
|
log.info("计划ID为:{}未查询到排班记录", finalPlanEntity.getId()); |
|
|
|
// LambdaUpdateWrapper<OperMaintenancePlanEntity> planQueryWrapper = Wrappers.<OperMaintenancePlanEntity>lambdaUpdate()
|
|
|
|
// LambdaUpdateWrapper<OperMaintenancePlanEntity> planQueryWrapper = Wrappers.<OperMaintenancePlanEntity>lambdaUpdate()
|
|
|
|