Browse Source

项目录入中 zy_ledger_file 中的 settle_type 为 1 的也可以录入

xiaochan 3 years ago
parent
commit
4a7f6f7d29

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

@@ -870,7 +870,7 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
     Integer getHuanZheSFZaiYuan(@Param("inpatientNo") String inpatientNo,
                                 @Param("admissTimes") Integer admissTimes);
 
-    @Select("select settle_type from zy_ledger_file where " +
+    @Select("select case settle_type when '1' then '0' else settle_type end as settle_type from zy_ledger_file where " +
             "inpatient_no = #{inpatientNo} and admiss_times = #{admissTimes} " +
             "and ledger_sn = (select max(ledger_sn)ledger_sn from zy_ledger_file where  zy_ledger_file.inpatient_no = #{inpatientNo} " +
             "and zy_ledger_file.admiss_times = #{admissTimes}) ")