Explorar o código

修复余额不对的问题

lighter %!s(int64=2) %!d(string=hai) anos
pai
achega
9576195979

+ 1 - 1
src/main/java/thyyxxk/wxservice_server/dao/InpatientDao.java

@@ -23,7 +23,7 @@ public interface InpatientDao {
             "where code=isnull(a.refer_physician,a.admiss_physician)), " +
             "rtrim(c.total_charge) totalCharge, " +
             "rtrim(c.charge_yb) fundPay, " +
-            "lastBalance=RTRIM(c.balance+c.charge_yb) " +
+            "lastBalance=c.balance " +
             "from zy_actpatient a with(nolock), zy_ledger_file c with(nolock), zd_unit_code d with(nolock) " +
             "where a.inpatient_no=#{inpatientNo} and " +
             "a.inpatient_no=c.inpatient_no and " +