|
|
|
@ -21,7 +21,6 @@ import com.hnac.hzims.operational.census.vo.WaterTargetVo;
|
|
|
|
|
import com.hnac.hzims.operational.census.vo.*; |
|
|
|
|
import com.hnac.hzims.operational.defect.entity.OperPhenomenonEntity; |
|
|
|
|
import com.hnac.hzims.operational.defect.service.IOperPhenomenonService; |
|
|
|
|
import com.hnac.hzims.operational.defect.service.impl.OperPhenomenonServiceImpl; |
|
|
|
|
import com.hnac.hzims.operational.defect.vo.OperPhenomenonVO; |
|
|
|
|
import com.hnac.hzims.operational.defect.wrapper.OperPhenomenonWrapper; |
|
|
|
|
import com.hnac.hzims.operational.fill.entity.*; |
|
|
|
@ -1105,9 +1104,18 @@ public class TargetServiceImpl implements TargetService {
|
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public IPage<MaintenanceTaskVo> maintenance(IPage<OperMaintenanceTaskEntity> page, BusinessQueryVo business) { |
|
|
|
|
public IPage<MaintenanceTaskVo> maintenance(IPage<OperMaintenanceTaskEntity> page, MaintenanceAssociationVo business) { |
|
|
|
|
Wrapper<OperMaintenanceTaskEntity> queryWrapper = new LambdaQueryWrapper<OperMaintenanceTaskEntity>() {{ |
|
|
|
|
orderByDesc(OperMaintenanceTaskEntity::getDisposeTime); |
|
|
|
|
if (!StringUtil.isEmpty(business.getTitle())) { |
|
|
|
|
like(OperMaintenanceTaskEntity::getTitle, business.getTitle()); |
|
|
|
|
} |
|
|
|
|
if (!StringUtil.isEmpty(business.getTaskType())) { |
|
|
|
|
eq(OperMaintenanceTaskEntity::getTaskType, business.getTaskType()); |
|
|
|
|
} |
|
|
|
|
if (!StringUtil.isEmpty(business.getContent())) { |
|
|
|
|
like(OperMaintenanceTaskEntity::getContent, business.getContent()); |
|
|
|
|
} |
|
|
|
|
if (!StringUtil.isEmpty(business.getStartTime())) { |
|
|
|
|
ge(OperMaintenanceTaskEntity::getDisposeTime,business.getStartTime()); |
|
|
|
|
} |
|
|
|
@ -1118,7 +1126,7 @@ public class TargetServiceImpl implements TargetService {
|
|
|
|
|
eq(OperMaintenanceTaskEntity::getFlowTaskName,"结束"); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.isEmpty(business.getDeptIds())){ |
|
|
|
|
in(OperMaintenanceTaskEntity::getCreateDept, Func.toLongList(business.getDeptIds(),",")); |
|
|
|
|
in(OperMaintenanceTaskEntity::getCreateDept, Func.toLongList(",",business.getDeptIds())); |
|
|
|
|
} |
|
|
|
|
}}; |
|
|
|
|
IPage pages = maintenanceTaskService.page(page,queryWrapper); |
|
|
|
@ -1133,9 +1141,22 @@ public class TargetServiceImpl implements TargetService {
|
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public IPage<OperPhenomenonVO> phenomenon(IPage<OperPhenomenonEntity> page, BusinessQueryVo business) { |
|
|
|
|
public IPage<OperPhenomenonVO> phenomenon(IPage<OperPhenomenonEntity> page, MaintenancePhenomenonVo business) { |
|
|
|
|
Wrapper<OperPhenomenonEntity> queryWrapper = new LambdaQueryWrapper<OperPhenomenonEntity>() {{ |
|
|
|
|
orderByDesc(OperPhenomenonEntity::getCreateTime); |
|
|
|
|
if (!StringUtil.isEmpty(business.getName())) { |
|
|
|
|
like(OperPhenomenonEntity::getName,business.getName()); |
|
|
|
|
} |
|
|
|
|
if (!ObjectUtil.isEmpty(business.getIsDefect())) { |
|
|
|
|
eq(OperPhenomenonEntity::getIsDefect,business.getIsDefect()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!StringUtil.isEmpty(business.getFindStartTime())) { |
|
|
|
|
ge(OperPhenomenonEntity::getFindTime,business.getFindStartTime()); |
|
|
|
|
} |
|
|
|
|
if (!StringUtil.isEmpty(business.getFindEndTime())) { |
|
|
|
|
le(OperPhenomenonEntity::getFindTime,business.getFindEndTime()); |
|
|
|
|
} |
|
|
|
|
if (!StringUtil.isEmpty(business.getStartTime())) { |
|
|
|
|
ge(OperPhenomenonEntity::getCreateTime,business.getStartTime()); |
|
|
|
|
} |
|
|
|
@ -1146,7 +1167,7 @@ public class TargetServiceImpl implements TargetService {
|
|
|
|
|
isNotNull(OperPhenomenonEntity::getHandleTaskId); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.isEmpty(business.getDeptIds())){ |
|
|
|
|
in(OperPhenomenonEntity::getCreateDept, Func.toLongList(business.getDeptIds(),",")); |
|
|
|
|
in(OperPhenomenonEntity::getCreateDept, Func.toLongList(",",business.getDeptIds())); |
|
|
|
|
} |
|
|
|
|
}}; |
|
|
|
|
IPage pages = phenomenonService.page(page, queryWrapper); |
|
|
|
@ -1161,9 +1182,12 @@ public class TargetServiceImpl implements TargetService {
|
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public IPage<OperAccessTaskVO> access(IPage<OperAccessTaskEntity> page, BusinessQueryVo business) { |
|
|
|
|
public IPage<OperAccessTaskVO> access(IPage<OperAccessTaskEntity> page, AccessAssociationVo business) { |
|
|
|
|
Wrapper<OperAccessTaskEntity> queryWrapper = new LambdaQueryWrapper<OperAccessTaskEntity>() {{ |
|
|
|
|
orderByDesc(OperAccessTaskEntity::getPlanStartTime); |
|
|
|
|
if (!StringUtil.isEmpty(business.getName())) { |
|
|
|
|
like(OperAccessTaskEntity::getName,business.getName()); |
|
|
|
|
} |
|
|
|
|
if (!StringUtil.isEmpty(business.getStartTime())) { |
|
|
|
|
ge(OperAccessTaskEntity::getPlanStartTime,business.getStartTime()); |
|
|
|
|
} |
|
|
|
@ -1174,7 +1198,7 @@ public class TargetServiceImpl implements TargetService {
|
|
|
|
|
eq(OperAccessTaskEntity::getStatus,4); |
|
|
|
|
} |
|
|
|
|
if(!StringUtil.isEmpty(business.getDeptIds())){ |
|
|
|
|
in(OperAccessTaskEntity::getCreateDept, Func.toLongList(business.getDeptIds(),",")); |
|
|
|
|
in(OperAccessTaskEntity::getCreateDept, Func.toLongList(",",business.getDeptIds())); |
|
|
|
|
} |
|
|
|
|
}}; |
|
|
|
|
IPage pages = accessTaskService.page(page, queryWrapper); |
|
|
|
|