‘linchangsheng’ 7 tháng trước cách đây
mục cha
commit
937ca30fbd

+ 4 - 2
mall-server-api/src/main/java/com/gree/mall/manager/logic/LetterLogic.java

@@ -17,6 +17,7 @@ import com.gree.mall.manager.logic.common.CommonLogic;
 import com.gree.mall.manager.plus.entity.*;
 import com.gree.mall.manager.plus.service.*;
 import com.gree.mall.manager.utils.RedisUtil;
+import com.gree.mall.manager.utils.StringUtil;
 import com.gree.mall.manager.zfire.bean.ZfireParamBean;
 import com.gree.mall.manager.zfire.util.FieldUtils;
 import org.apache.commons.collections4.CollectionUtils;
@@ -394,6 +395,9 @@ public class LetterLogic {
         if (!leLetter.getStatus().equals(LetterStatusEnum.SEND.getKey()))
             throw new RemoteServiceException("不为待执行不能申诉");
 
+        if (StringUtil.isEmpty(leLetterItem.getWebsitAppeal()))
+            throw new RemoteServiceException("网点状态未传");
+
         leLetter.setStatus(LetterStatusEnum.WAIT_EXAMINE.getKey());
         if (leLetterItem.getWebsitAppeal().equals("OK")){
             leLetter.setStatus(LetterStatusEnum.EXECUTED.getKey());
@@ -404,8 +408,6 @@ public class LetterLogic {
 
         leLetter.updateById();
 
-
-
         leLetterItem.insert();
     }