瀏覽代碼

医生职称接口入参调整

chengyao 3 年之前
父節點
當前提交
50371a4a4b

+ 3 - 4
src/main/java/com/diagbot/facade/BasDoctorInfoFacade.java

@@ -36,13 +36,12 @@ public class BasDoctorInfoFacade extends BasDoctorInfoServiceImpl {
     /**
      * 获取医院医生下拉列表信息
      *
-     * @param basDoctorInfoVO
+     * @param
      * @return 医院医生下拉列表信息
      */
-    public List<String> getDoctorProfessorList(BasDoctorInfoVO basDoctorInfoVO) {
-        basDoctorInfoVO.setHospitalId(Long.valueOf(SysUserUtils.getCurrentHospitalID()));
+    public List<String> getDoctorProfessorList() {
        return basDoctorInfoFacade.lambdaQuery()
-                .eq(BasDoctorInfo::getHospitalId, basDoctorInfoVO.getHospitalId())
+                .eq(BasDoctorInfo::getHospitalId, Long.valueOf(SysUserUtils.getCurrentHospitalID()))
                 .eq(BasDoctorInfo::getIsDeleted, IsDeleteEnum.N.getKey())
                 .orderByAsc(BasDoctorInfo::getProfessor)
                 .list().stream().filter(obj->!"NULL".equals(obj.getProfessor()) && StringUtils.isNotBlank(obj.getProfessor())).map(BasDoctorInfo::getProfessor).distinct().collect(Collectors.toList());

+ 2 - 2
src/main/java/com/diagbot/web/BasDoctorInfoController.java

@@ -44,7 +44,7 @@ public class BasDoctorInfoController {
             notes = "inputStr: 搜索参数")
     @PostMapping("/getDoctorProfessorList")
     @SysLogger("getDoctorProfessorList")
-    public RespDTO<List<String>> getDoctorProfessorList(@RequestBody BasDoctorInfoVO basDoctorInfoVO) {
-        return RespDTO.onSuc(basDoctorInfoFacade.getDoctorProfessorList(basDoctorInfoVO));
+    public RespDTO<List<String>> getDoctorProfessorList() {
+        return RespDTO.onSuc(basDoctorInfoFacade.getDoctorProfessorList());
     }
 }