郭齐峰 %!s(int64=3) %!d(string=hai) anos
pai
achega
522d76fdaf

+ 1 - 0
src/custom/restcontroller/webmanage/sale/paybill/Paybilldetail.java

@@ -72,6 +72,7 @@ public class Paybilldetail extends Controller {
             sqlList.add(sqlFactory.getSQL());
 
         }
+        sqlList.add("update sa_paybill set amount=(select sum(amount) from sa_paybilldetail where siteid='" + siteid + "' and sa_paybillid=" + sa_paybillid + ") where siteid='" + siteid + "' and sa_paybillid=" + sa_paybillid);
         dbConnect.runSqlUpdate(sqlList);
         return getSucReturnObject().toString();
     }