Explorar el Código

按照老大要求 f.status 加上 in 1,2

xiaochan hace 3 años
padre
commit
720023c403
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/main/java/thyyxxk/webserver/dao/his/yibao/DismissDao.java

+ 2 - 2
src/main/java/thyyxxk/webserver/dao/his/yibao/DismissDao.java

@@ -130,7 +130,7 @@ public interface DismissDao {
                      @Param("endtime") Date endtime);
 
     @Update("update zy_ledger_file set deposit=(select sum(depo_amount) from zy_deposit_file f with(nolock) " +
-            "where f.inpatient_no=#{zyh} and f.admiss_times=#{times} and f.ledger_sn=#{ledger} and f.status = '1') " +
+            "where f.inpatient_no=#{zyh} and f.admiss_times=#{times} and f.ledger_sn=#{ledger} and f.status in ('1','2')) " +
             "where inpatient_no=#{zyh} and admiss_times=#{times} and ledger_sn=#{ledger}")
     void recountDeposit(@Param("zyh") String zyh,
                         @Param("times") int times,
@@ -368,7 +368,7 @@ public interface DismissDao {
                               @Param("ledgerSn") int ledgerSn);
 
     @Select("select cast(sum(depo_amount) as varchar(16)) from zy_deposit_file where " +
-            "inpatient_no=#{patNo} and admiss_times=#{times} and ledger_sn=#{ledgerSn} and status = '1' ")
+            "inpatient_no=#{patNo} and admiss_times=#{times} and ledger_sn=#{ledgerSn} and status in ('1','2') ")
     String selectDepositSumamt(@Param("patNo") String patNo,
                                @Param("times") int times,
                                @Param("ledgerSn") int ledgerSn);