zoujiajian 2 vuotta sitten
vanhempi
sitoutus
65243b8406

+ 6 - 6
netflix-service/src/main/java/com/cyksj/service/mange/goods/CmsYhShopCommonServiceImpl.java

@@ -109,12 +109,6 @@ public class CmsYhShopCommonServiceImpl implements CmsYhShopCommonService {
 		yhShopApplyRecord.setVerifyStatus(verifyStatus);
 		yhShopApplyRecordMapper.updateById(yhShopApplyRecord);
 		yhShopMapper.updateById(yhShop);
-
-		if (yhShopApplyRecord.getVerifyStatus() == YhShopApplyRecord.Status.fail) {
-			String type = "shop";
-			String key = String.format(RedisService.key.APPLY_MONEY_DAY_LIMIT_KEY.getName(), DateTime.now().toDateStr(), type, yhShopApplyRecord.getUserId());
-			redisService.del(key);
-		}
 	}
 
 	@Override
@@ -202,6 +196,12 @@ public class CmsYhShopCommonServiceImpl implements CmsYhShopCommonService {
 			distributeMoneyApply.setImg(distributeApplyMoneyReq.getImg());
 		}
 		yhShopDistributeMoneyApplyMapper.updateById(distributeMoneyApply);
+
+		if (distributeMoneyApply.getVerifyStatus() == YhShopDistributeMoneyApply.Status.fail) {
+			String type = "shop";
+			String key = String.format(RedisService.key.APPLY_MONEY_DAY_LIMIT_KEY.getName(), DateTime.now().toDateStr(), type, distributeMoneyApply.getUserId());
+			redisService.del(key);
+		}
 	}
 
 	@Override