| | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import static org.bouncycastle.asn1.x500.style.RFC4519Style.uid; |
| | | |
| | | |
| | | @Service |
| | | public class UserCouponRecordServiceImpl extends ServiceImpl<UserCouponRecordMapper, UserCouponRecord> implements IUserCouponRecordService { |
| | |
| | | public int queryAvailable(Integer uid, Integer companyId, Integer state, Integer couponUseType, Double money) throws Exception { |
| | | return userCouponRecordMapper.queryAvailable(uid, companyId, state, couponUseType, money); |
| | | } |
| | | /** |
| | | * 获取可用优惠券数量 |
| | | * @param uid |
| | | * @param companyId |
| | | * @param state |
| | | * @param couponUseType |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @Override |
| | | public List<Map<String, Object>> queryAvailable_(Integer uid, Integer companyId, Integer state, Integer couponUseType, Double money){ |
| | | return userCouponRecordMapper.queryAvailable_(uid, companyId, state, couponUseType, money); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> queryCouponCrossCity(List<Integer> ids, Integer pageNum, Integer size) { |
| | | pageNum = (pageNum - 1) * size; |
| | | return userCouponRecordMapper.queryCouponCrossCity(ids, pageNum, size); |
| | | } |
| | | |
| | | |
| | | /** |