feat(wms): 修改redis注解
This commit is contained in:
@@ -55,10 +55,10 @@ public class WmsProductServiceImpl implements IWmsProductService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询产品列表
|
||||
* 查询产品列表(带Redis缓存,30分钟过期)
|
||||
*/
|
||||
@Override
|
||||
// @Cacheable(cacheNames = "wms:product:list", key = "#bo.toString() + ':' + #pageQuery.pageNum + ':' + #pageQuery.pageSize", unless = "#result == null")
|
||||
@Cacheable(cacheNames = "wms:product:list", key = "'page_' + #pageQuery.pageNum + '_' + #pageQuery.pageSize")
|
||||
public TableDataInfo<WmsProductVo> queryPageList(WmsProductBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<WmsProduct> lqw = buildQueryWrapper(bo);
|
||||
Page<WmsProductVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
|
||||
@@ -61,10 +61,10 @@ public class WmsRawMaterialServiceImpl implements IWmsRawMaterialService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询原材料列表
|
||||
* 查询原材料列表(带Redis缓存,30分钟过期)
|
||||
*/
|
||||
@Override
|
||||
// @Cacheable(cacheNames = "wms:rawMaterial:list", key = "#bo.toString() + ':' + #pageQuery.pageNum + ':' + #pageQuery.pageSize", unless = "#result == null")
|
||||
@Cacheable(cacheNames = "wms:rawMaterial:list", key = "'page_' + #pageQuery.pageNum + '_' + #pageQuery.pageSize")
|
||||
public TableDataInfo<WmsRawMaterialVo> queryPageList(WmsRawMaterialBo bo, PageQuery pageQuery) {
|
||||
LambdaQueryWrapper<WmsRawMaterial> lqw = buildQueryWrapper(bo);
|
||||
Page<WmsRawMaterialVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
|
||||
|
||||
Reference in New Issue
Block a user