public interface GoodsService
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)
根据主键更新实体
|
GoodsEntity queryObject(Integer id)
id
- 主键List<GoodsEntity> queryList(Map<String,Object> map)
map
- 参数int save(GoodsEntity goods)
goods
- 实体int update(GoodsEntity goods)
goods
- 实体int delete(Integer id)
id
- int deleteBatch(Integer[] ids)
ids
- int back(Integer[] ids)
ids
- int enSale(Integer id)
id
- int unSale(Integer id)
id
- Copyright © 2021. All rights reserved.