| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.dromara.eims.domain.EimsInspectPlan; |
| | | import org.dromara.eims.domain.EimsInspectSt; |
| | | import org.dromara.eims.domain.EimsMaintPlan; |
| | | import org.dromara.eims.domain.bo.EimsInspectStBo; |
| | | import org.dromara.eims.domain.vo.EimsInspectStVo; |
| | | import org.dromara.eims.domain.vo.EimsMaintOrderVo; |
| | | import org.dromara.eims.mapper.EimsInspectPlanMapper; |
| | | import org.dromara.eims.mapper.EimsMaintPlanMapper; |
| | |
| | | return TableDataInfo.build(page); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询符合条件的点检记录列表 |
| | | * |
| | |
| | | lqw.eq(bo.getInspTime() != null, EimsInspectRecord::getInspTime, bo.getInspTime()); |
| | | lqw.eq(bo.getPlanTime() != null, EimsInspectRecord::getPlanTime, bo.getPlanTime()); |
| | | lqw.eq(bo.getVerifyUser() != null, EimsInspectRecord::getVerifyUser, bo.getVerifyUser()); |
| | | // 按创建时间倒序 |
| | | lqw.orderByDesc(EimsInspectRecord::getCreateTime); |
| | | return lqw; |
| | | } |
| | | |
| | |
| | | qw.in(bo.getInspDept() != null, "ir.insp_dept", getAllDescendantIds(bo.getInspDept())); |
| | | qw.eq(bo.getStatus() != null, "ir.status", bo.getStatus()); |
| | | qw.eq(bo.getInspResult() != null, "ir.insp_result", bo.getInspResult()); |
| | | qw.between(params.get("beginPlanTime") != null && params.get("endPlanTime") != null, |
| | | "ir.plan_time", params.get("beginPlanTime"), params.get("endPlanTime")); |
| | | qw.eq(bo.getPlanTime()!=null, |
| | | "ir.plan_time", bo.getPlanTime()); |
| | | qw.orderByDesc("ir.create_time"); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据id,获取所有后代id |
| | | * |