Browse Source

优化代码

DESKTOP-0GD05B0\Administrator 2 years ago
parent
commit
52abc1162a

+ 6 - 0
src/main/java/thyyxxk/webserver/dao/his/casefrontsheet/JieShouHuiZhenDao.java

@@ -33,6 +33,12 @@ public interface JieShouHuiZhenDao {
                                             @Param(Constants.WRAPPER) QueryWrapper<?> queryWrapper);
 
 
+    /**
+     * 根据职称获取医嘱的编码
+     *
+     * @param code 职称
+     * @return 医嘱码
+     */
     @Select("SELECT order_code FROM zd_emp_title where code = #{code} ")
     String getOrderCodeByEmpTit(String code);
 

+ 0 - 111
src/main/java/thyyxxk/webserver/dao/his/inpatient/XiangMuLuRuDao.java

@@ -690,117 +690,6 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
                          @Param("ledgerSn") Integer ledgerSn,
                          @Param("opIdCode") String opIdCode);
 
-    /**
-     * 需要更新患者的总费用
-     *
-     * @param fy          费用
-     * @param inpatientNo 住院号
-     * @param admissTimes 住院次数
-     */
-    @Update("<script>" +
-            "update ${tableName} " +
-            "<trim prefix='set' suffixOverrides=','> " +
-            "total_charge = total_charge + #{fy.totalCharge} , " +
-            "balance = balance - #{fy.totalCharge}," +
-            "<if test=\"fy.charge1 !=null \">" +
-            "charge1 =charge1 + #{fy.charge1} ," +
-            "</if>" +
-            "<if test=\"fy.charge2 !=null \">" +
-            "charge2 =charge2 + #{fy.charge2} ," +
-            "</if>" +
-            "<if test=\"fy.charge3 !=null \">" +
-            "charge3 =charge3 + #{fy.charge3} ," +
-            "</if>" +
-            "<if test=\"fy.charge4 !=null \">" +
-            "charge4 =charge4 + #{fy.charge4} ," +
-            "</if>" +
-            "<if test=\"fy.charge5 !=null \">" +
-            "charge5 =charge5 + #{fy.charge5} ," +
-            "</if>" +
-            "<if test=\"fy.charge6 !=null \">" +
-            "charge6 =charge6 + #{fy.charge6} ," +
-            "</if>" +
-            "<if test=\"fy.charge7 !=null \">" +
-            "charge7 =charge7 + #{fy.charge7} ," +
-            "</if>" +
-            "<if test=\"fy.charge8 !=null \">" +
-            "charge8 =charge8 + #{fy.charge8} ," +
-            "</if>" +
-            "<if test=\"fy.charge9 !=null \">" +
-            "charge9 =charge9 + #{fy.charge9} ," +
-            "</if>" +
-            "<if test=\"fy.charge10 !=null \">" +
-            "charge10 =charge10 + #{fy.charge10} ," +
-            "</if>" +
-            "<if test=\"fy.charge11 !=null \">" +
-            "charge11 =charge11 + #{fy.charge11} ," +
-            "</if>" +
-            "<if test=\"fy.charge12 !=null \">" +
-            "charge12 =charge12 + #{fy.charge12} ," +
-            "</if>" +
-            "<if test=\"fy.charge13 !=null \">" +
-            "charge13 =charge13 + #{fy.charge13} ," +
-            "</if>" +
-            "<if test=\"fy.charge14 !=null \">" +
-            "charge14 =charge14 + #{fy.charge14} ," +
-            "</if>" +
-            "<if test=\"fy.charge15 !=null \">" +
-            "charge15 =charge15 + #{fy.charge15} ," +
-            "</if>" +
-            "<if test=\"fy.charge16 !=null \">" +
-            "charge16 =charge16 + #{fy.charge16} ," +
-            "</if>" +
-            "<if test=\"fy.charge17 !=null \">" +
-            "charge17 =charge17 + #{fy.charge17} ," +
-            "</if>" +
-            "<if test=\"fy.charge18 !=null \">" +
-            "charge18 =charge18 + #{fy.charge18} ," +
-            "</if>" +
-            "<if test=\"fy.charge19 !=null \">" +
-            "charge19 =charge19 + #{fy.charge19} ," +
-            "</if>" +
-            "<if test=\"fy.charge20 !=null \">" +
-            "charge20 =charge20 + #{fy.charge20} ," +
-            "</if>" +
-            "<if test=\"fy.charge21 !=null \">" +
-            "charge21 =charge21 + #{fy.charge21} ," +
-            "</if>" +
-            "<if test=\"fy.charge22 !=null \">" +
-            "charge22 =charge22 + #{fy.charge22} ," +
-            "</if>" +
-            "<if test=\"fy.charge23 !=null \">" +
-            "charge23 =charge23 + #{fy.charge23} ," +
-            "</if>" +
-            "<if test=\"fy.charge24 !=null \">" +
-            "charge24 =charge24 + #{fy.charge24} ," +
-            "</if>" +
-            "<if test=\"fy.charge25 !=null \">" +
-            "charge25 =charge25 + #{fy.charge25} ," +
-            "</if>" +
-            "<if test=\"fy.charge26 !=null \">" +
-            "charge26 =charge26 + #{fy.charge26} ," +
-            "</if>" +
-            "<if test=\"fy.charge27 !=null \">" +
-            "charge27 =charge27 + #{fy.charge27} ," +
-            "</if>" +
-            "<if test=\"fy.charge28 !=null \">" +
-            "charge28 =charge28 + #{fy.charge28} ," +
-            "</if>" +
-            "<if test=\"fy.charge29 !=null \">" +
-            "charge29 =charge29 + #{fy.charge29} ," +
-            "</if>" +
-            "<if test=\"fy.charge30 !=null \">" +
-            "charge30 =charge30 + #{fy.charge30} ," +
-            "</if>" +
-            "</trim>" +
-            "WHERE inpatient_no = #{inpatientNo} and admiss_times=#{admissTimes}" +
-            "</script>")
-    void huanZheZongFeiYong(@Param("fy") FeiYongLeiXin fy,
-                            @Param("inpatientNo") String inpatientNo,
-                            @Param("admissTimes") Integer admissTimes,
-                            @Param("tableName") String tableName);
-
-
     /**
      * 查看模板名称是否存在
      *

+ 4 - 0
src/main/java/thyyxxk/webserver/service/casefrontsheet/JieShouHuiZhenService.java

@@ -121,6 +121,10 @@ public class JieShouHuiZhenService {
     }
 
 
+    /**
+     * @param code 医嘱编码
+     * @return 返回会诊级别
+     */
     private String getHzTypeByOrderCode(String code) {
         switch (code) {
             case 主任编码: