dev798
wxy 2024-05-12 15:58:49 +08:00
parent 3961567935
commit 01bd3dd68f
1 changed files with 15 additions and 0 deletions

View File

@ -111,7 +111,15 @@ public class MallProductTypeInfoServiceImpl implements MallProductTypeInfoServic
return pageInfo; return pageInfo;
} }
//定義
public static final Long PARENT_ID=0L; public static final Long PARENT_ID=0L;
/**
*
*
* @param mallProductTypeInfo
* @return
*/
@Override @Override
public List<MallProductTypeInfoVO> listAll(MallProductTypeInfo mallProductTypeInfo) { public List<MallProductTypeInfoVO> listAll(MallProductTypeInfo mallProductTypeInfo) {
//根據查詢條件獲取商品類型信息列表 //根據查詢條件獲取商品類型信息列表
@ -129,6 +137,13 @@ public class MallProductTypeInfoServiceImpl implements MallProductTypeInfoServic
return returnList; return returnList;
} }
/**
*
*
* @param mallProductTypeInfoVO
* @param mallProductTypeInfos
* @return
*/
private List<MallProductTypeInfoVO> packageChildrenList(MallProductTypeInfoVO mallProductTypeInfoVO, List<MallProductTypeInfo> mallProductTypeInfos) { private List<MallProductTypeInfoVO> packageChildrenList(MallProductTypeInfoVO mallProductTypeInfoVO, List<MallProductTypeInfo> mallProductTypeInfos) {
Long parentId = mallProductTypeInfoVO.getCatId(); Long parentId = mallProductTypeInfoVO.getCatId();
//根據父類型ID查找並包裝子類型信息,遞歸處理 //根據父類型ID查找並包裝子類型信息,遞歸處理