Sfoglia il codice sorgente

订单提交满足条件自动审核是传最新的版本号

wu 1 mese fa
parent
commit
5bd81b11e9

+ 2 - 0
src/custom/restcontroller/webmanage/sale/order/Order.java

@@ -3019,6 +3019,8 @@ public class Order extends Controller {
 //                Rows orderdetailsRows = dbConnect.runSqlQuery("select * from sa_orderitems where sa_orderid="+sa_orderid+" and ifnull(remarks,'')!=''");
 //                Rows orderdetailsRows = dbConnect.runSqlQuery("select * from sa_orderitems where sa_orderid="+sa_orderid+" and ifnull(remarks,'')!=''");
                 if (amount.compareTo(BigDecimal.ZERO) > 0) {
                 if (amount.compareTo(BigDecimal.ZERO) > 0) {
                     if (Accountbalance.judgeBalance(this, pay_enterpriseid, sa_accountclassid, amount)) {
                     if (Accountbalance.judgeBalance(this, pay_enterpriseid, sa_accountclassid, amount)) {
+                        Rows orderRows=getOrderRows(this,sa_orderid);
+                        content.put("sa_order_v",orderRows.get(0).getLong("sa_order_v"));
                         String result = check();
                         String result = check();
                         if (result.contains("成功")) {
                         if (result.contains("成功")) {
                             dbConnect.runSqlUpdate("update sa_order set checkby='自动审核' where sa_orderid=" + sa_orderid);
                             dbConnect.runSqlUpdate("update sa_order set checkby='自动审核' where sa_orderid=" + sa_orderid);