| | |
| | | */ |
| | | public List<XhProductModel> page(QueryFilter queryFilter) { |
| | | List<XhProductModel> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | for (XhProductModel productModel : list) { |
| | | if (productModel.getProductType().equals("1")) { |
| | | productModel.setDefaultImg(baseDao.getDefaultImg()); |
| | | if (productModel.getId() != null) { |
| | | this.update(productModel); |
| | | } |
| | | } |
| | | } |
| | | return list; |
| | | } |
| | | |
| | |
| | | public List<ProductImg> getProduct(Long productId) { |
| | | return baseDao.getProduct(productId); |
| | | } |
| | | |
| | | public List<XhProductModel> getTaskProductList() { |
| | | return baseDao.getTaskProductList(); |
| | | } |
| | | } |