Browse Source

优化项目录入的sql

xiaochan 4 years ago
parent
commit
d5b6f09d43
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/java/thyyxxk/webserver/dao/his/yibao/XiangMuLuRuDao.java

+ 3 - 3
src/main/java/thyyxxk/webserver/dao/his/yibao/XiangMuLuRuDao.java

@@ -62,7 +62,7 @@ public interface XiangMuLuRuDao {
             "        a.admiss_times=#{admissTimes} and " +
             "        a.ledger_sn   = #{ledgerSn}    and " +
             "<if test=\"chargeCode !=null and chargeCode != '' \">" +
-            " a.charge_code = #{chargeCode} and" +
+            " a.charge_code_mx = #{chargeCode} and" +
             "</if>" +
             "        a.charge_code=b.code and " +
             "        a.order_no &gt;=0  and a.order_no &lt;= 1  and " +
@@ -102,10 +102,10 @@ public interface XiangMuLuRuDao {
             "        a.admiss_times= #{admissTimes} and " +
             "        a.ledger_sn   = #{ledgerSn}    and " +
             "<if test=\"chargeCode !=null and chargeCode != '' \">" +
-            " a.charge_code = #{chargeCode} and" +
+            " a.charge_code_mx = #{chargeCode} and" +
             "</if>" +
             "        a.charge_code=b.code and " +
-            "        a.order_no &gt;=0  and a.order_no &lt;= 1  and " +
+//            "        a.order_no &gt;=0  and a.order_no &lt;= 1  and " +
             "        a.charge_code not like 'BILL%' and " +
             "        a.infant_flag = '0' and c.code = a.op_id_code ) temp" +
             "</script>")