|
|
|
@ -12,6 +12,7 @@ import com.hnac.hzims.operational.maintenance.mapper.OperMaintenanceTaskMapper;
|
|
|
|
|
import com.hnac.hzims.operational.maintenance.service.IOperMaintenanceMonitorService; |
|
|
|
|
import com.hnac.hzims.operational.maintenance.vo.OperMaintenancePlanVO; |
|
|
|
|
import com.hnac.hzims.operational.maintenance.wrapper.OperMaintenancePlanWrapper; |
|
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springblade.core.tool.utils.*; |
|
|
|
|
import org.springblade.system.user.cache.UserCache; |
|
|
|
@ -48,7 +49,8 @@ public class OperMaintenanceMonitorServiceImpl implements IOperMaintenanceMonito
|
|
|
|
|
// Date startTime = DateUtil.parse(DateUtil.format(DateUtil.now(), "yyyy-MM") + "-01", DateUtil.PATTERN_DATE);
|
|
|
|
|
eq(OperMaintenancePlanEntity::getIsDeleted, 0L); |
|
|
|
|
ge(OperMaintenancePlanEntity::getDisposeTime, startDate); |
|
|
|
|
lt(OperMaintenancePlanEntity::getDisposeTime, startDate.with(TemporalAdjusters.lastDayOfMonth())); |
|
|
|
|
lt(OperMaintenancePlanEntity::getDisposeTime, startDate.with(TemporalAdjusters.lastDayOfMonth())) |
|
|
|
|
.eq(StringUtils.isNoneBlank(req.getStationCode()), OperMaintenancePlanEntity::getStationCode, req.getStationCode()); |
|
|
|
|
}}); |
|
|
|
|
|
|
|
|
|
//获取列表班次ID集合
|
|
|
|
@ -73,8 +75,7 @@ public class OperMaintenanceMonitorServiceImpl implements IOperMaintenanceMonito
|
|
|
|
|
if (ObjectUtil.isNotEmpty(planEntity.getImsDutyClassId())) { |
|
|
|
|
//类型为班次时 获取班次名称
|
|
|
|
|
planVO.setDutyClassName(finalClassMap.get(planEntity.getImsDutyClassId()).get(0).getClassName()); |
|
|
|
|
} |
|
|
|
|
else if(ObjectUtil.isNotEmpty(planEntity.getDisposer())) { |
|
|
|
|
} else if (ObjectUtil.isNotEmpty(planEntity.getDisposer())) { |
|
|
|
|
//类型为人员类型时 获取执行人名称
|
|
|
|
|
planVO.setDisposerName(Optional.ofNullable(UserCache.getUser(planEntity.getDisposer())).map(User::getName).orElse(null)); |
|
|
|
|
} |
|
|
|
|