소스 검색

信用额度调整单审核时改为从原基础上增加金额

hu 3 년 전
부모
커밋
be01c40264
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/custom/restcontroller/sale/creditbill/creditbill.java

+ 2 - 2
src/custom/restcontroller/sale/creditbill/creditbill.java

@@ -220,8 +220,8 @@ public class creditbill extends Controller {
                         // content.put("sa_creditbillid", sa_creditbillid);
                         sqlList.add(sqlFactory.getSQL());
                     } else {
-                        sqlList.add("update sa_accountbalance set creditquota='" + creditquota
-                                + "',changedate=CURRENT_TIME,changeby ='" + username + "',changeuserid='" + userid
+                        sqlList.add("update sa_accountbalance set creditquota=creditquota+" + creditquota
+                                + ",changedate=CURRENT_TIME,changeby ='" + username + "',changeuserid='" + userid
                                 + "' where sys_enterpriseid ='" + sys_enterpriseid + "' and  sa_accountclassid='"
                                 + sa_accountclassid + "' and siteid='" + siteid + "'");
                     }