Procházet zdrojové kódy

订单手工关闭报错修复

hu před 2 roky
rodič
revize
63ea58b482

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

@@ -3064,7 +3064,7 @@ public class Order extends Controller {
             }
         }
 
-        Rows rows = dbConnect.runSqlQuery("SELECT sum(undeliqty*price) totalprice from sa_orderitems WHERE sa_orderid=" + sa_orderid + " and siteid = '" + siteid + "'");
+        Rows rows = dbConnect.runSqlQuery("SELECT cast(sum(undeliqty*price) as DECIMAL(16,2)) totalprice from sa_orderitems WHERE sa_orderid=" + sa_orderid + " and siteid = '" + siteid + "'");
         if (rows.isNotEmpty()) {
             BigDecimal totalprice = rows.get(0).getBigDecimal("totalprice");
             JSONArray sa_accountclassinfos = orderRow.get(0).getJSONArray("sa_accountclassinfos");