|
|
@@ -12,6 +12,7 @@ import com.cyksj.mapper.shop.*;
|
|
|
import com.cyksj.model.entity.*;
|
|
|
import com.cyksj.model.request.DistributeApplyMoneyReq;
|
|
|
import com.cyksj.model.request.YhShopVerifyReq;
|
|
|
+import com.cyksj.redis.RedisService;
|
|
|
import com.cyksj.service.mange.CmsYhShopCommonService;
|
|
|
import com.cyksj.service.mange.business.UserBusinessRateService;
|
|
|
import com.cyksj.service.shop.YhShopUserPlatDistributeRateService;
|
|
|
@@ -55,6 +56,8 @@ public class CmsYhShopCommonServiceImpl implements CmsYhShopCommonService {
|
|
|
|
|
|
private final YhShopUserPlatDistributeRateMapper yhShopUserPlatDistributeRateMapper;
|
|
|
|
|
|
+ private final RedisService redisService;
|
|
|
+
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Throwable.class)
|
|
|
public void verifyYhShopApply(YhShopVerifyReq verifyReq) {
|
|
|
@@ -106,6 +109,12 @@ 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
|