@Service(value="goodsService") public class GoodsServiceImpl extends Object implements GoodsService
| Constructor and Description |
|---|
GoodsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
back(Integer[] ids)
商品从回收站恢复
|
int |
delete(Integer id)
根据主键删除
|
int |
deleteBatch(Integer[] ids)
根据主键批量删除
|
int |
enSale(Integer id)
上架
|
List<GoodsEntity> |
queryList(Map<String,Object> map)
分页查询
|
GoodsEntity |
queryObject(Integer id)
根据主键查询实体
|
int |
queryTotal(Map<String,Object> map)
分页统计总数
|
int |
save(GoodsEntity goods)
保存实体
|
int |
unSale(Integer id)
下架
|
int |
update(GoodsEntity goods)
根据主键更新实体
|
public GoodsEntity queryObject(Integer id)
GoodsServicequeryObject in interface GoodsServiceid - 主键@DataFilter(userAlias="nideshop_goods.create_user_id", deptAlias="nideshop_goods.create_user_dept_id") public List<GoodsEntity> queryList(Map<String,Object> map)
GoodsServicequeryList in interface GoodsServicemap - 参数@DataFilter(userAlias="nideshop_goods.create_user_id", deptAlias="nideshop_goods.create_user_dept_id") public int queryTotal(Map<String,Object> map)
GoodsServicequeryTotal in interface GoodsServicemap - 参数@Transactional public int save(GoodsEntity goods)
GoodsServicesave in interface GoodsServicegoods - 实体@Transactional public int update(GoodsEntity goods)
GoodsServiceupdate in interface GoodsServicegoods - 实体public int delete(Integer id)
GoodsServicedelete in interface GoodsService@Transactional public int deleteBatch(Integer[] ids)
GoodsServicedeleteBatch in interface GoodsService@Transactional public int back(Integer[] ids)
GoodsServiceback in interface GoodsServicepublic int enSale(Integer id)
GoodsServiceenSale in interface GoodsServicepublic int unSale(Integer id)
GoodsServiceunSale in interface GoodsServiceCopyright © 2021. All rights reserved.