激活码过期 key设置

商品假性删除Bug
This commit is contained in:
wangw 2024-03-12 13:46:00 +08:00
parent bf42ed75a3
commit 17e606cbb9
2 changed files with 2 additions and 1 deletions

View File

@ -341,6 +341,7 @@ public class TbProductServiceImpl implements TbProductService {
}
@Override
@Transactional
public void deleteAll(Integer[] ids) {
List<Integer> list = Arrays.asList(ids);
tbProductRepository.updateByStatus(list);

View File

@ -154,7 +154,7 @@ public class TbShopInfoServiceImpl implements TbShopInfoService {
}
tbShopInfo.setExpireAt(DateUtil.addMonthsAndGetTimestamp(tbMerchantRegister.getPeriodYear()));
//向redis中存入key
redisUtils.set(CacheKey.ACT_CODE,resources.getAccount(),tbShopInfo.getExpireAt()-Instant.now().toEpochMilli());
redisUtils.set(CacheKey.ACT_CODE+resources.getAccount(),tbShopInfo.getExpireAt()-Instant.now().toEpochMilli());
}
//增加商户详情
TbShopInfo save = tbShopInfoRepository.save(tbShopInfo);