Przeglądaj źródła

已发货的发送标识增加过期时间

yh 1 dzień temu
rodzic
commit
2f61b6410f

+ 2 - 2
fs-service/src/main/java/com/fs/erp/service/impl/DfOrderServiceImpl.java

@@ -911,8 +911,8 @@ public class DfOrderServiceImpl implements IErpOrderService {
                                         return;
                                     }
 
-                                    boolean sendGoods = redisCache.getCacheObject(sendGoodsKey + orderId);
-                                    if (("0".equals(stateEx) || "1".equals(stateEx) || "2".equals(stateEx)) && sendGoods) {
+                                    Object sendGoods = redisCache.getCacheObject(sendGoodsKey + orderId);
+                                    if (("0".equals(stateEx) || "1".equals(stateEx) || "2".equals(stateEx)) && !ObjectUtil.isEmpty(sendGoods)) {
                                         log.info("发货消息已发送过,跳过 - orderId: {}", orderId);
                                         return;
                                     }