| | |
| | | |
| | | |
| | | /** |
| | | * ty_product_model |
| | | * product_model_common |
| | | * |
| | | * @author zt generator |
| | | * @author zt generator |
| | | * @since 1.0.0 2024-02-28 |
| | | */ |
| | | @Service |
| | | public class TyProductModelService extends BaseService<TyProductModelDao, TyProductModel> { |
| | | public class TyProductModelService extends BaseService<TyProductModelDao, TyProductModel> { |
| | | |
| | | /** |
| | | * 分页查询 |
| | |
| | | * @return |
| | | */ |
| | | public List<TyProductModel> page(QueryFilter queryFilter) { |
| | | return baseDao.getList(queryFilter.getQueryParams()); |
| | | List<TyProductModel> list = baseDao.getList(queryFilter.getQueryParams()); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | public List<TyProductModel> getProductList() { |
| | | List<TyProductModel> ProductList = baseDao.getProductList(); |
| | | return ProductList; |
| | | return baseDao.getProductList(); |
| | | } |
| | | |
| | | public List<TyProductModel> getAllTree() { |
| | | List<TyProductModel> productList = baseDao.selectList(new QueryWrapper<TyProductModel>().eq(Constant.TableColumn.IS_DELETE, |
| | | Constant.Bool.NO).orderByAsc(Constant.TableColumn.SORT)); |
| | | return TreeUtils.build(productList); |
| | | List<TyProductModel> productList = baseDao.selectList(new QueryWrapper<TyProductModel>().eq(Constant.TableColumn.IS_DELETE, |
| | | Constant.Bool.NO).orderByAsc("node_type").orderByAsc(Constant.TableColumn.SORT)); |
| | | return TreeUtils.build(productList); |
| | | } |
| | | |
| | | public Integer getNo(Long pid) { |
| | | if (baseDao.getNo(pid) == null){ |
| | | public Integer getNo(Long pid, String nodeType) { |
| | | Integer no = baseDao.getNo(pid, nodeType); |
| | | if (no == null) { |
| | | return 0; |
| | | } |
| | | return baseDao.getNo(pid); |
| | | return baseDao.getNo(pid, nodeType); |
| | | } |
| | | } |