فهرست منبع

购物车单价显修改

hu 4 ماه پیش
والد
کامیت
078b1a99d2
1فایلهای تغییر یافته به همراه2 افزوده شده و 7 حذف شده
  1. 2 7
      src/custom/restcontroller/sale/shoppingcart/ShoppingCart.java

+ 2 - 7
src/custom/restcontroller/sale/shoppingcart/ShoppingCart.java

@@ -325,16 +325,11 @@ public class ShoppingCart extends Controller {
         //定制信息
         CustomScheme customScheme = new CustomScheme(this);
 
-        int year = Year.now().getValue();
-        int quarter = YearMonth.now().get(IsoFields.QUARTER_OF_YEAR);
         BigDecimal rwpricerate = new BigDecimal(1);
         Rows custamountrows = dbConnect.runSqlQuery("select * from sa_agents where sys_enterpriseid=" + sys_enterpriseid + " and siteid='" + siteid + "'");
         if (!custamountrows.isEmpty()) {
-
-            if (custamountrows.get(0).getInteger("year") == year && custamountrows.get(0).getInteger("quarter") == quarter) {
-                if (custamountrows.get(0).getBigDecimal("pricerate").compareTo(BigDecimal.ZERO) > 0) {
-                    rwpricerate = custamountrows.get(0).getBigDecimal("pricerate");
-                }
+            if (custamountrows.get(0).getBigDecimal("pricerate").compareTo(BigDecimal.ZERO) > 0) {
+                rwpricerate = custamountrows.get(0).getBigDecimal("pricerate");
             }
         }
         for (Row row : rows) {