@Service(value="productService") public class ProductServiceImpl extends Object implements ProductService
| Constructor and Description |
|---|
ProductServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
delete(Integer id)
根据主键删除
|
int |
deleteBatch(Integer[] ids)
根据主键批量删除
|
List<ProductEntity> |
queryList(Map<String,Object> map)
分页查询
|
ProductEntity |
queryObject(Integer id)
根据主键查询实体
|
int |
queryTotal(Map<String,Object> map)
分页统计总数
|
int |
save(ProductEntity product)
保存实体
|
int |
update(ProductEntity product)
根据主键更新实体
|
public ProductEntity queryObject(Integer id)
ProductServicequeryObject in interface ProductServiceid - 主键public List<ProductEntity> queryList(Map<String,Object> map)
ProductServicequeryList in interface ProductServicemap - 参数public int queryTotal(Map<String,Object> map)
ProductServicequeryTotal in interface ProductServicemap - 参数@Transactional public int save(ProductEntity product)
ProductServicesave in interface ProductServiceproduct - 实体public int update(ProductEntity product)
ProductServiceupdate in interface ProductServiceproduct - 实体public int delete(Integer id)
ProductServicedelete in interface ProductServicepublic int deleteBatch(Integer[] ids)
ProductServicedeleteBatch in interface ProductServiceCopyright © 2021. All rights reserved.