zoujiajian 2 년 전
부모
커밋
65243b8406
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      netflix-service/src/main/java/com/cyksj/service/mange/goods/CmsYhShopCommonServiceImpl.java

+ 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