浏览代码

修复余额不对的问题

lighter 2 年之前
父节点
当前提交
9576195979
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/thyyxxk/wxservice_server/dao/InpatientDao.java

+ 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 " +