|
|
|
@ -7,6 +7,7 @@ import com.hnac.hzims.common.logs.annotation.OperationAnnotation;
|
|
|
|
|
import com.hnac.hzims.common.logs.enums.BusinessType; |
|
|
|
|
import com.hnac.hzims.common.logs.enums.OperatorType; |
|
|
|
|
import com.hnac.hzims.operational.defect.dto.OperDefectStatisticsDTO; |
|
|
|
|
import com.hnac.hzims.operational.defect.entity.OperDefectEntity; |
|
|
|
|
import com.hnac.hzims.operational.defect.entity.OperDefectStatisticsEntity; |
|
|
|
|
import com.hnac.hzims.operational.defect.entity.OperFaultEntity; |
|
|
|
|
import com.hnac.hzims.operational.defect.service.IOperDefectStatisticsService; |
|
|
|
@ -79,6 +80,9 @@ public class OperDefectStatisticsController extends BladeController {
|
|
|
|
|
if(entity.getActEndTime()!=null){ |
|
|
|
|
queryWrapper.le(OperDefectStatisticsEntity::getActStartTime,entity.getActEndTime()); |
|
|
|
|
} |
|
|
|
|
if (entity.getCreateDept() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getCreateDept, entity.getCreateDept()); |
|
|
|
|
} |
|
|
|
|
queryWrapper.orderByDesc(OperDefectStatisticsEntity::getActStartTime); |
|
|
|
|
IPage<OperDefectStatisticsEntity> pages = statisticsService.page(Condition.getPage(query), queryWrapper); |
|
|
|
|
IPage<OperDefectStatisticsVO> vos = OperDefectStatisticsWrapper.build().pageVO(pages); |
|
|
|
|