Przeglądaj źródła

订单提交时价格是否更新判断增加销售价格是否变更判断

沈静伟 3 lat temu
rodzic
commit
6b3df2cc1f

+ 1 - 3
src/rest/openapi/restcontroller/wechatapp/saorder/tools/SaorderTool.java

@@ -488,10 +488,8 @@ public class SaorderTool extends BaseClass {
                             double fprice = titem.getAgentSalePrice(fagentnum);
                             if (fchangeprice >= fprice) {
                                 detailPao.setValue("fprice", fchangeprice, 2L);
-                                detailPao.setValue("fpricechanged", true, 11L);
-                            } else {
-                                detailPao.setValue("fpricechanged", false, 11L);
                             }
+                            detailPao.setValue("fpricechanged", fchangeprice > fprice, 11L);
                         }
                     }
                     detailPao.setValue("fqty", fqty, 2L);