فهرست منبع

fix: 事后科室稽核列表的违反规则编号查询

Scott 1 سال پیش
والد
کامیت
e87b937923

+ 5 - 0
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/controller/ViolationAnalysisController.java

@@ -247,6 +247,11 @@ public class ViolationAnalysisController {
                                                               @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
                                                               HttpServletRequest req) {
         QueryWrapper<AfterwardsAuditDetail> queryWrapper = QueryGenerator.initQueryWrapper(afterwardsAuditDetail, req.getParameterMap());
+        if (StringUtils.hasText(afterwardsAuditDetail.getProjectSearch())) {
+            queryWrapper.and(q1 ->
+                    q1.eq("medical_project_code", afterwardsAuditDetail.getProjectSearch()).or().eq("medical_project_code", afterwardsAuditDetail.getProjectSearch())
+            );
+        }
         Page<AfterwardsAuditDetail> page = new Page<AfterwardsAuditDetail>(pageNo, pageSize);
         IPage<AfterwardsAuditDetail> pageList = afterwardsAuditDetailService.page(page, queryWrapper);
         return Result.OK(pageList);