xinyb
2024-06-18 f861292eb0786e8729171ce428a5adc61981c92c
微信小程序在线显示重复购买
1个文件已修改
8 ■■■■ 已修改文件
src/com/yc/sdk/shopping/action/Order.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/com/yc/sdk/shopping/action/Order.java
@@ -219,8 +219,10 @@
//                   orderEntityJsonObject.addProperty("PayableAmount",orderEntity.getPayableAmount());  //优惠后订单总金额
                if (orderEntity.getFormId() == 120230 || orderEntity.getFormId() == 120234) {
                    orderEntityJsonObject.addProperty("PayableAmount", orderEntity.getPayableAmount());  //优惠后订单总金额
                    orderEntityJsonObject.addProperty("isShowReBuyingButton","true");   //重复购买
                } else {
                    orderEntityJsonObject.addProperty("PayableAmount", (orderEntity.getSumTotalMoney2() - orderEntity.getReduceMoney()));  //优惠后订单总金额
                    orderEntityJsonObject.addProperty("isShowReBuyingButton","false");   //重复购买
                }
                   orderEntityJsonObject.addProperty("ReduceMoney",orderEntity.getReduceMoney());  //优惠金额 
                   orderEntityJsonObject.addProperty("TransCosts",orderEntity.getTransCosts());  //运费 
@@ -611,7 +613,11 @@
            json.addProperty("CltCode",orderEntity.getCltCode());
            json.addProperty("PreSendDate",orderEntity.getPreSendDate()==null?"":sdf3.format(orderEntity.getPreSendDate()));   //送货时间
            json.addProperty("PayableSecondBalance",orderEntity.getPayableSecondBalance()!=null&& orderEntity.getPayableSecondBalance().intValue() >0?orderEntity.getPayableSecondBalance():0);   //下单后支付倒计时秒数 
            if (orderEntity.getFormId() == 120230 || orderEntity.getFormId() == 120234) {
                json.addProperty("isShowReBuyingButton","true");   //重复购买
            } else {
                json.addProperty("isShowReBuyingButton","false");   //重复购买
            }
               //是否显示:支付按钮
            json.addProperty("isShowPayButton",cltCode.equals(orderEntity.getCltCode()) &&  orderEntity.getDocStatus()!=null&&orderEntity.getDocStatus().equals(0)
                    &&orderEntity.getCltCode()!=null&&orderEntity.getCltCode().equals(cltCode)