@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)
GoodsService
queryObject
in interface GoodsService
id
- 主键@DataFilter(userAlias="nideshop_goods.create_user_id", deptAlias="nideshop_goods.create_user_dept_id") public List<GoodsEntity> queryList(Map<String,Object> map)
GoodsService
queryList
in interface GoodsService
map
- 参数@DataFilter(userAlias="nideshop_goods.create_user_id", deptAlias="nideshop_goods.create_user_dept_id") public int queryTotal(Map<String,Object> map)
GoodsService
queryTotal
in interface GoodsService
map
- 参数@Transactional public int save(GoodsEntity goods)
GoodsService
save
in interface GoodsService
goods
- 实体@Transactional public int update(GoodsEntity goods)
GoodsService
update
in interface GoodsService
goods
- 实体public int delete(Integer id)
GoodsService
delete
in interface GoodsService
@Transactional public int deleteBatch(Integer[] ids)
GoodsService
deleteBatch
in interface GoodsService
@Transactional public int back(Integer[] ids)
GoodsService
back
in interface GoodsService
public int enSale(Integer id)
GoodsService
enSale
in interface GoodsService
public int unSale(Integer id)
GoodsService
unSale
in interface GoodsService
Copyright © 2021. All rights reserved.