Explorar o código

商品组查询性能优化

shenjingwei hai 4 meses
pai
achega
d596a48c97
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  1. 6 1
      src/custom/restcontroller/sale/itemgroup/itemgroup.java

+ 6 - 1
src/custom/restcontroller/sale/itemgroup/itemgroup.java

@@ -56,7 +56,12 @@ public class itemgroup extends Controller {
             sys_enterpriseid = content.getLongValue("sys_enterpriseid");
         }
 
-        double pricegrade = Parameter.getInteger(siteid, "defaultlevelprice");//价格等级
+        double pricegrade = 1;
+        try {
+            pricegrade = Parameter.getInteger(siteid, "defaultlevelprice");//价格等级
+        } catch (Exception e) {
+            pricegrade = 1;
+        }
         boolean saleclassauth = false;//是否需要经营授权
         if (sys_enterpriseid > 0) {
             Row enterpriseRow = Enterprise.getEnterprise(this, sys_enterpriseid);