@Service(value="couponService") public class CouponServiceImpl extends Object implements CouponService
Constructor and Description |
---|
CouponServiceImpl() |
Modifier and Type | Method and Description |
---|---|
int |
delete(Integer id)
根据主键删除
|
int |
deleteBatch(Integer[] ids)
根据主键批量删除
|
R |
publish(Map<String,Object> params)
按用户、商品下发优惠券
|
List<CouponEntity> |
queryList(Map<String,Object> map)
分页查询
|
CouponEntity |
queryObject(Integer id)
根据主键查询实体
|
int |
queryTotal(Map<String,Object> map)
分页统计总数
|
int |
save(CouponEntity coupon)
保存实体
|
int |
update(CouponEntity coupon)
根据主键更新实体
|
public CouponEntity queryObject(Integer id)
CouponService
queryObject
in interface CouponService
id
- 主键public List<CouponEntity> queryList(Map<String,Object> map)
CouponService
queryList
in interface CouponService
map
- 参数public int queryTotal(Map<String,Object> map)
CouponService
queryTotal
in interface CouponService
map
- 参数public int save(CouponEntity coupon)
CouponService
save
in interface CouponService
coupon
- 实体public int update(CouponEntity coupon)
CouponService
update
in interface CouponService
coupon
- 实体public int delete(Integer id)
CouponService
delete
in interface CouponService
public int deleteBatch(Integer[] ids)
CouponService
deleteBatch
in interface CouponService
public R publish(Map<String,Object> params)
CouponService
publish
in interface CouponService
Copyright © 2021. All rights reserved.