Browse Source

优化出院费用计算时费用时间界限的比较

lighter 3 years ago
parent
commit
f908de7892
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/thyyxxk/webserver/dao/his/inpatient/DismissDao.java

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

@@ -133,7 +133,7 @@ public interface DismissDao {
 
     @Select("select isnull(sum(charge_fee),0) from zy_detail_charge where inpatient_no=#{patNo} and " +
             "admiss_times=#{times} and ledger_sn=#{ledgerSn} and isnull(charge_status, '1')!='1' and " +
-            "isnull(trans_flag_yb,0)!=2 and charge_date ${compare} #{timeLimit}")
+            "isnull(trans_flag_yb,0)!=2 and charge_date ${compare} convert(varchar(19),#{timeLimit},21)")
     BigDecimal selectOverTimeLimitFee(@Param("patNo") String patNo,
                                       @Param("times") Integer times,
                                       @Param("ledgerSn") int ledgerSn,