| | |
| | | package com.yeshi.fanli.service.inter.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.UserSystemCouponRecord;
|
| | |
|
| | | public interface UserSystemCouponRecordService {
|
| | |
|
| | | public int insertSelective(UserSystemCouponRecord record);
|
| | |
|
| | | public UserSystemCouponRecord selectByPrimaryKey(Long id);
|
| | |
|
| | | public int updateByPrimaryKeySelective(UserSystemCouponRecord record);
|
| | |
|
| | | public int updateByPrimaryKey(UserSystemCouponRecord record);
|
| | |
|
| | | public UserSystemCouponRecord getRecordByOrderNo(String orderNo, Integer state);
|
| | |
|
| | | public List<UserSystemCouponRecord> getRecordByOrderNoList(List<String> list);
|
| | |
|
| | | /**
|
| | | * 查询正在使用中 超过时间仍未匹配到订单记录
|
| | | * @param uid
|
| | | * @param seconds
|
| | | * @return
|
| | | */
|
| | | public List<UserSystemCouponRecord> getCouponByUsingTimeOut(Long uid, long seconds);
|
| | |
|
| | | /**
|
| | | * 查询状态
|
| | | * @param uid
|
| | | * @param state
|
| | | * @return
|
| | | */
|
| | | public List<UserSystemCouponRecord> getRecordByState(Long uid, Integer state);
|
| | | |
| | | }
|
| | | package com.yeshi.fanli.service.inter.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.UserSystemCouponRecord; |
| | | |
| | | public interface UserSystemCouponRecordService { |
| | | |
| | | public int insertSelective(UserSystemCouponRecord record); |
| | | |
| | | public UserSystemCouponRecord selectByPrimaryKey(Long id); |
| | | |
| | | public int updateByPrimaryKeySelective(UserSystemCouponRecord record); |
| | | |
| | | public int updateByPrimaryKey(UserSystemCouponRecord record); |
| | | |
| | | public UserSystemCouponRecord getRecordByOrderNo(String orderNo, Integer source, Integer state); |
| | | |
| | | public List<UserSystemCouponRecord> getRecordByOrderNoList(Integer source, List<String> list); |
| | | |
| | | |
| | | /** |
| | | * 查询状态 |
| | | * |
| | | * @param uid |
| | | * @param state |
| | | * @return |
| | | */ |
| | | public List<UserSystemCouponRecord> getRecordByState(Long uid, Integer state); |
| | | |
| | | /** |
| | | * 订单号是否成功免单 |
| | | * |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | public boolean isSuccessMianDan(Integer source, String orderId); |
| | | |
| | | |
| | | /** |
| | | * 查询最近记录 |
| | | * @param userCouponId |
| | | * @return |
| | | */ |
| | | public UserSystemCouponRecord getNearByUserCouponId(Long userCouponId); |
| | | |
| | | } |