商品模块代码提交

This commit is contained in:
Tankaikai
2025-03-03 16:27:36 +08:00
parent 4c1e0b6304
commit dd74371be2
3 changed files with 17 additions and 4 deletions

View File

@@ -56,6 +56,7 @@ public class ProductRpcServiceImpl implements ProductRpcService {
@Override
@Transactional(rollbackFor = Exception.class)
//@GlobalTransactional
@CacheEvict(value = {CacheConstant.USER_CLIENT_HOTS_PRODUCT, CacheConstant.USER_CLIENT_GROUPS_PRODUCT}, key = "#shopId", allEntries = true, beforeInvocation = true)
public void paySuccessSubtractStock(Long shopId, Long orderId, List<Map<String, Object>> dataList) {
List<ProductStockSubtractDTO> list = BeanUtil.copyToList(dataList, ProductStockSubtractDTO.class);