@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)
CouponServicequeryObject in interface CouponServiceid - 主键public List<CouponEntity> queryList(Map<String,Object> map)
CouponServicequeryList in interface CouponServicemap - 参数public int queryTotal(Map<String,Object> map)
CouponServicequeryTotal in interface CouponServicemap - 参数public int save(CouponEntity coupon)
CouponServicesave in interface CouponServicecoupon - 实体public int update(CouponEntity coupon)
CouponServiceupdate in interface CouponServicecoupon - 实体public int delete(Integer id)
CouponServicedelete in interface CouponServicepublic int deleteBatch(Integer[] ids)
CouponServicedeleteBatch in interface CouponServicepublic R publish(Map<String,Object> params)
CouponServicepublish in interface CouponServiceCopyright © 2021. All rights reserved.