1
This commit is contained in:
parent
433677db90
commit
28e8e60aa4
@ -28,5 +28,5 @@ public interface BusiProdNewMapper extends BaseMapper<BusiProdNew>
|
||||
* @date 14:06 2025/6/30
|
||||
* @return java.util.List<com.ruoyi.busi.vo.ProdNewVO>
|
||||
**/
|
||||
List<ProdNewVO> getCatgAmount();
|
||||
List<ProdNewVO> getCatgAmount(@Param("tenantId")String tenantId);
|
||||
}
|
||||
|
@ -31,7 +31,6 @@ public interface IBusiProdNewService extends IService<BusiProdNew>
|
||||
* 为网站栏目中递归产品数和下级产品数赋值
|
||||
* @author PQZ
|
||||
* @date 14:03 2025/6/30
|
||||
* @return void
|
||||
**/
|
||||
void setAmount(String tenantId);
|
||||
}
|
||||
|
@ -63,7 +63,7 @@ public class BusiProdNewServiceImpl extends ServiceImpl<BusiProdNewMapper,BusiPr
|
||||
@Override
|
||||
public void setAmount(String tenantId) {
|
||||
//统计各分类产品数量
|
||||
List<ProdNewVO> list = busiProdNewMapper.getCatgAmount();
|
||||
List<ProdNewVO> list = busiProdNewMapper.getCatgAmount(tenantId);
|
||||
if (!list.isEmpty()) {
|
||||
categoryService.setCategoryAmount(list,tenantId);
|
||||
}
|
||||
|
@ -126,6 +126,7 @@
|
||||
dl_busi_prod_new
|
||||
WHERE
|
||||
del_flag = 0
|
||||
and tenant_id = #{tenantId}
|
||||
GROUP BY
|
||||
catg_id
|
||||
</select>
|
||||
|
Loading…
Reference in New Issue
Block a user