jyy
2021-04-20 06f0fb09a61e16df895dc9feebea8ddd24d14db5
修复微商城订单bug
1 files added
3 files modified
35 ■■■■ changed files
zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxCommonAction.java 9 ●●●●● patch | view | raw | blame | history
zq-erp/src/main/java/com/matrix/system/shopXcx/api/pojo/ShopOrderDto.java 2 ●●● patch | view | raw | blame | history
zq-erp/src/main/java/com/matrix/system/shopXcx/bean/ShopOrder.java 19 ●●●● patch | view | raw | blame | history
zq-erp/src/main/resources/config/db/increment/2021-04-20bug.sql 5 ●●●●● patch | view | raw | blame | history
zq-erp/src/main/java/com/matrix/system/shopXcx/api/action/WxCommonAction.java
@@ -10,7 +10,6 @@
import com.matrix.system.common.bean.BusParameterSettings;
import com.matrix.system.common.constance.AppConstance;
import com.matrix.system.common.dao.BusParameterSettingsDao;
import com.matrix.system.common.interceptor.HostInterceptor;
import com.matrix.system.hive.bean.MoneyCardUse;
import com.matrix.system.hive.bean.MoneyCardUseFlow;
import com.matrix.system.hive.bean.SysVipInfo;
@@ -160,12 +159,12 @@
                            //设置支付状态为支付成功
                            modifyMap.put("payStatus", ShopOrder.ORDER_PAY_STATUS_SUCCESS);
                            //设置订单状态
                            if (ShopOrder.ORDER_TYPE_GOODS == order.getOrderType()) {
                            if (ShopOrder.SHIPPING_METHOD_WL == order.getShippingMethod()) {
                                //如果是商品订单则进入待发货
                                modifyMap.put("orderStatus", ShopOrder.ORDER_STATUS_WAIT_SEND);
                            } else {
                                //如果是服务订单则进入待评价
                                modifyMap.put("orderStatus", ShopOrder.ORDER_STATUS_WAIT_REMARK);
                            } else if (ShopOrder.SHIPPING_METHOD_MDZT == order.getShippingMethod()) {
                                //如果是门店自提则进入待收款
                                modifyMap.put("orderStatus", ShopOrder.ORDER_STATUS_WAIT_RECEIVE);
                            }
                            shopOrderDao.updateByMap(modifyMap);
zq-erp/src/main/java/com/matrix/system/shopXcx/api/pojo/ShopOrderDto.java
@@ -22,7 +22,7 @@
    /**
     *  配送方式(1=物流,2=门店自取)
     */
    private String deliverySelect;
    private Integer deliverySelect;
    /**
     *  配送门店ID
zq-erp/src/main/java/com/matrix/system/shopXcx/bean/ShopOrder.java
@@ -3,6 +3,7 @@
import com.matrix.core.pojo.EntityDTO;
import com.matrix.core.anotations.Extend;
import com.matrix.core.tools.DateUtil;
import io.swagger.models.auth.In;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
@@ -126,6 +127,18 @@
    public static final int ACTIVITY_TYPE_SECKILL = 3;
    /**
     * 物流配送
     */
    public static final int SHIPPING_METHOD_WL = 1;
    /**
     * 门店自提
     */
    public static final int SHIPPING_METHOD_MDZT = 2;
    /**
     * 主键
     */
    private Integer id;
@@ -225,7 +238,7 @@
    /**
     * 配送方式(1=物流,2=门店自取)
     */
    private String shippingMethod;
    private Integer shippingMethod;
    /**
     * 配送门店ID
@@ -467,11 +480,11 @@
        this.remarks = remarks;
    }
    public String getShippingMethod() {
    public Integer getShippingMethod() {
        return shippingMethod;
    }
    public void setShippingMethod(String shippingMethod) {
    public void setShippingMethod(Integer shippingMethod) {
        this.shippingMethod = shippingMethod;
    }
zq-erp/src/main/resources/config/db/increment/2021-04-20bug.sql
New file
@@ -0,0 +1,5 @@
update shop_order set shipping_method='1' where shipping_method='物流配送';
update shop_order set shipping_method='2' where shipping_method='立即配送';
ALTER TABLE  `shop_order`
MODIFY COLUMN `shipping_method` int(2) NULL DEFAULT NULL AFTER `remarks`;