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