| | |
| | | return TreeUtils.build(productList); |
| | | } |
| | | |
| | | public Integer getNo(Long pid) { |
| | | if (baseDao.getNo(pid) == null) { |
| | | public Integer getNo(Long pid, String productType) { |
| | | if (baseDao.getNo(pid, productType) == null) { |
| | | return 0; |
| | | } |
| | | return baseDao.getNo(pid); |
| | | return baseDao.getNo(pid,productType); |
| | | } |
| | | |
| | | public List<XhProductModel> getProductList() { |
| | |
| | | } |
| | | |
| | | public List<ProductImg> getProduct(Long productId) { |
| | | return baseDao.getProduct(productId); |
| | | XhProductModel model =this.get(productId); |
| | | Long parentId = model.getPid(); |
| | | return baseDao.getProduct(productId,parentId); |
| | | } |
| | | |
| | | public List<XhProductModel> getTaskProductList() { |