Kaynağa Gözat

发货后申请售后添加异常状态

yuhongqi 3 gün önce
ebeveyn
işleme
3e45cd0f4e

+ 7 - 0
fs-service/src/main/java/com/fs/hisStore/service/impl/FsStoreAfterSalesScrmServiceImpl.java

@@ -74,6 +74,7 @@ import com.github.binarywang.wxpay.service.WxPayService;
 import com.google.gson.Gson;
 import lombok.Synchronized;
 import org.apache.commons.beanutils.BeanUtils;
+import org.apache.commons.lang3.ObjectUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -456,6 +457,12 @@ public class FsStoreAfterSalesScrmServiceImpl implements IFsStoreAfterSalesScrmS
         storeAfterSales.setCompanyUserId(order.getCompanyUserId());
         storeAfterSales.setPackageJson(order.getPackageJson());
         storeAfterSales.setIsPackage(order.getIsPackage());
+        if(ObjectUtils.equals(order.getStatus(),2) || ObjectUtils.equals(order.getStatus(),3)){
+            boolean jstCheckEnabled = isStoreJstOrderCheckEnabled();
+            if (jstCheckEnabled) {
+                storeAfterSales.setErpExceptionStatus(1);
+            }
+        }
         fsStoreAfterSalesMapper.insertFsStoreAfterSales(storeAfterSales);
         //售后商品详情
         for (FsStoreAfterSalesProductParam productParam : storeAfterSalesParam.getProductList()) {