ソースを参照

参数校验完善

0027005599 2 年 前
コミット
7c17ba1ce5

+ 1 - 24
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/controller/HisController.java

@@ -46,37 +46,14 @@ import java.util.Map;
 * @Date:   2023-04-23
 * @Version: V1.0
 */
-@Api(tags="事中提醒")
+@Api(tags="his接口提醒")
 @RestController
 @RequestMapping("/his/check")
 @Slf4j
 public class HisController extends JeecgController<Audit, IAuditService> {
-   @Autowired
-   private IAuditService auditService;
    @Autowired
    private RuleEngine ruleEngine;
 
-   /**
-    * 分页列表查询
-    *
-    * @param audit
-    * @param pageNo
-    * @param pageSize
-    * @param req
-    * @return
-    */
-   //@AutoLog(value = "audit-分页列表查询")
-   @ApiOperation(value="audit-分页列表查询", notes="audit-分页列表查询")
-   @GetMapping(value = "/list")
-   public Result<IPage<Audit>> queryPageList(Audit audit,
-                                  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
-                                  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
-                                  HttpServletRequest req) {
-       QueryWrapper<Audit> queryWrapper = QueryGenerator.initQueryWrapper(audit, req.getParameterMap());
-       Page<Audit> page = new Page<Audit>(pageNo, pageSize);
-       IPage<Audit> pageList = auditService.page(page, queryWrapper);
-       return Result.OK(pageList);
-   }
 
    /**
     *   事前提醒

+ 2 - 0
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/entity/AdvanceWarningVO.java

@@ -3,6 +3,7 @@ package org.jeecg.modules.medical.entity;
 import io.swagger.annotations.ApiModel;
 import lombok.Data;
 
+import javax.validation.constraints.DecimalMax;
 import javax.validation.constraints.NotBlank;
 import javax.validation.constraints.NotNull;
 
@@ -22,6 +23,7 @@ public class AdvanceWarningVO {
     private String patient_name;
     //就诊类型(1住院、2门诊)
     @NotNull
+    @DecimalMax(value = "2", message = "就诊类型为1代表住院、2代表门诊")
     private String visit_type;
     //    科室编码
     @NotBlank(message = "医生科室编码不能为空")