|
@@ -26,7 +26,6 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
@@ -56,7 +55,6 @@ import com.qunzhixinxi.hnqz.admin.entity.dto.WmDeptTaskTypeConfigJsonDTO;
|
|
|
import com.qunzhixinxi.hnqz.admin.entity.vo.WmTaskVO;
|
|
|
import com.qunzhixinxi.hnqz.admin.enums.DelEnum;
|
|
|
import com.qunzhixinxi.hnqz.admin.enums.EnableEnum;
|
|
|
-import com.qunzhixinxi.hnqz.admin.enums.PackageFinishStatusEnum;
|
|
|
import com.qunzhixinxi.hnqz.admin.enums.PackageStatusEnum;
|
|
|
import com.qunzhixinxi.hnqz.admin.enums.ReportEnum;
|
|
|
import com.qunzhixinxi.hnqz.admin.enums.ScorePackageStatusEnum;
|
|
@@ -959,19 +957,19 @@ public class WmReportServiceImpl extends ServiceImpl<WmReportMapper, WmReport> i
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 报告管理--查看
|
|
|
- *
|
|
|
- * @param page
|
|
|
- * @param wmReport
|
|
|
- * @param isApprovalPage 1审批,0查看
|
|
|
- * @param taskTypeId
|
|
|
- * @return
|
|
|
- */
|
|
|
+ * 报告管理--查看
|
|
|
+ *
|
|
|
+ * @param page
|
|
|
+ * @param wmReport
|
|
|
+ * @param isApprovalPage 1审批,0查看
|
|
|
+ * @param taskTypeId 任务类型id
|
|
|
+ * @param taskNumber 任务编号
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@Override
|
|
|
- public R getTaskListPage(Page page, WmReport wmReport, Integer isApprovalPage, String taskTypeId) {
|
|
|
+ public R getTaskListPage(Page page, WmReport wmReport, Integer isApprovalPage, String taskTypeId, String taskNumber) {
|
|
|
Page pages=null;
|
|
|
WmScorePackage scorePackage=wmScorePackageService.getById(wmReport.getScoreId());
|
|
|
- WmTask wmTask=new WmTask();
|
|
|
LambdaQueryWrapper<WmTask> lambdaQueryWrapper= Wrappers.<WmTask>query().lambda();
|
|
|
lambdaQueryWrapper.and(wrapper -> wrapper.eq(WmTask::getReportDrugId, wmReport.getId())
|
|
|
.or().eq(WmTask::getReportOneId, wmReport.getId())
|
|
@@ -986,6 +984,9 @@ public class WmReportServiceImpl extends ServiceImpl<WmReportMapper, WmReport> i
|
|
|
lambdaQueryWrapper.and(wrapper -> wrapper.isNull(WmTask::getReportOneApprovalOpinion));
|
|
|
}
|
|
|
}
|
|
|
+ if (StrUtil.isNotBlank(taskNumber)) {
|
|
|
+ lambdaQueryWrapper.like(WmTask::getTaskNumber, taskNumber);
|
|
|
+ }
|
|
|
if (StrUtil.isNotBlank(taskTypeId)) {
|
|
|
lambdaQueryWrapper.eq(WmTask::getTaskTypeId, taskTypeId);
|
|
|
}
|