Parcourir la source

删除没用的接口

DESKTOP-0GD05B0\Administrator il y a 2 ans
Parent
commit
ca30c2d35d

+ 7 - 13
src/main/java/thyyxxk/webserver/controller/zhuyuanyizheng/YizhuLuRuController.java

@@ -69,19 +69,6 @@ public class YizhuLuRuController {
         return server.getParentOrders(patNo, times);
     }
 
-    @GetMapping("/huoQuYiZhuMingCheng")
-    public ResultVo<List<GetDropdownBox>> huoQuYiZhuMingCheng(@RequestParam("inpatientNo") String inpatientNo,
-                                                              @RequestParam("admissTimes") Integer admissTimes,
-                                                              @RequestParam("orderName") String orderName) {
-        return server.huoQuYiZhuMingCheng(inpatientNo, admissTimes, orderName);
-    }
-
-    @GetMapping("/huoQuGeRenPinLv")
-    public ResultVo<List<GetDropdownBox>> huoQuGeRenPinLv(@RequestParam("patNo") String patNo,
-                                                          @RequestParam("times") Integer times) {
-        return server.huoQuGeRenPinLv(patNo, times);
-    }
-
     @PostMapping("/huoQuYiZhuShuJu")
     public ResultVo<List<XinZhenYzActOrder>> huoQuYiZhuShuJu(@RequestBody @Validated YiZhuFeiYongChaXunTiaoJian param) {
         return server.huoQuYiZhuShuJu(param);
@@ -94,6 +81,13 @@ public class YizhuLuRuController {
         return server.huoQuXiangMu(code, groupNo);
     }
 
+
+    @GetMapping("/getFrequency")
+    @PassToken
+    public ResultVo<List<GetDropdownBox>> getFrequency() {
+        return server.getFrequency();
+    }
+
     @GetMapping("/huoQuFeiYongXinXi")
     public ResultVo<Map<String, Object>> huoQuFeiYongXinXi(@RequestParam("queryCode") String queryCode) {
         if (queryCode == null) {

+ 5 - 18
src/main/java/thyyxxk/webserver/dao/his/zhuyuanyisheng/YiZhuLuRuDao.java

@@ -105,24 +105,6 @@ public interface YiZhuLuRuDao {
                                 @Param("admissTimes") Integer admissTimes,
                                 @Param("ledgerSn") Integer ledgerSn);
 
-    @Select("select distinct rtrim(order_name) code, rtrim(order_name) name " +
-            "from yz_act_order with (NOLOCK) " +
-            "where inpatient_no = #{inpatientNo} " +
-            "  and admiss_times = #{admissTimes} " +
-            "  and (order_name like #{orderName} or order_code like #{orderName})")
-    List<GetDropdownBox> huoQuYiZhuMingZi(@Param("inpatientNo") String inpatientNo,
-                                          @Param("admissTimes") Integer admissTimes,
-                                          @Param("orderName") String orderName);
-
-    @Select("select     rtrim(frequ_code) code, " +
-            "    name = (select rtrim(comm) from yz_order_frequency where frequ_code = code) " +
-            "from yz_act_order with (NOLOCK) " +
-            "where inpatient_no = #{patNo} " +
-            "  and admiss_times = #{times} " +
-            "group by frequ_code")
-    List<GetDropdownBox> huoQuGeRenPinLv(@Param("patNo") String patNo,
-                                         @Param("times") Integer times);
-
 
     @Select("select                     a.act_order_no, " +
             "                           cast(cast(a.act_order_no as decimal) as varchar) id, " +
@@ -813,6 +795,11 @@ public interface YiZhuLuRuDao {
     List<GetDropdownBox> huoQuZhuYuanPinLv(String code);
 
 
+    @Select("select rtrim(code) as code, rtrim(comm) name " +
+            "from yz_order_frequency")
+    List<GetDropdownBox> selectFrequency();
+
+
     @Select("select rtrim(supply_code) code, rtrim(supply_name) name " +
             "from yz_supply_type with (NOLOCK) " +
             "where (supply_code like #{code} or supply_name like #{code} or py_code like #{code} )")

+ 5 - 24
src/main/java/thyyxxk/webserver/service/zhuyuanyisheng/YiZhuLuRuServer.java

@@ -101,30 +101,6 @@ public class YiZhuLuRuServer {
         return ResultVoUtil.success(dao.getMyPatient(TokenUtil.getTokenUserId()));
     }
 
-    /**
-     * 获取医嘱的名称 这里为什么不用 医嘱的code和医嘱号呢,是因为药品编码和项目编码有些一样而医嘱号,又每次只能查询一个
-     *
-     * @param inpatientNo 住院号
-     * @param admissTimes 住院次数
-     * @param orderName   前端搜索的医嘱名称
-     * @return 返回医嘱名称去重了
-     */
-    public ResultVo<List<GetDropdownBox>> huoQuYiZhuMingCheng(String inpatientNo, Integer admissTimes, String orderName) {
-        return ResultVoUtil.success(dao.huoQuYiZhuMingZi(inpatientNo, admissTimes, StringUtil.isContainChinese(orderName)));
-    }
-
-    /**
-     * 获取患者个人的频率
-     *
-     * @param patNo 住院号
-     * @param times 住院次数
-     * @return 返回自己的医嘱频率
-     */
-    @Deprecated
-    public ResultVo<List<GetDropdownBox>> huoQuGeRenPinLv(String patNo, Integer times) {
-        return ResultVoUtil.success(dao.huoQuGeRenPinLv(patNo, times));
-    }
-
     /**
      * 获取医嘱的数据
      * 可以根据,医嘱时间区间,执行频率,医嘱名
@@ -818,6 +794,11 @@ public class YiZhuLuRuServer {
         }
     }
 
+
+    public ResultVo<List<GetDropdownBox>> getFrequency() {
+        return ResultVoUtil.success(dao.selectFrequency());
+    }
+
     /**
      * 获取频率
      *