admin
2019-08-27 fe879975a3e8a0a1aa280fb839e02d159bfbcff8
fanli/src/main/java/com/yeshi/fanli/service/impl/user/UserSystemCouponGiveRecordServiceImpl.java
@@ -1,6 +1,6 @@
package com.yeshi.fanli.service.impl.user;
import java.util.Date;
import java.util.List;
import javax.annotation.Resource;
@@ -23,14 +23,22 @@
   }
   
   @Override
   public void updateRecord(Long receiveUid, Long giveUid, Long couponId) {
      UserSystemCouponGiveRecord record = userSystemCouponGiveRecordMapper.getRecordByUidAndCouponId(giveUid, couponId);
      if (record != null) {
         UserSystemCouponGiveRecord giveRecord = new UserSystemCouponGiveRecord();
         giveRecord.setId(record.getId());
         giveRecord.setReceiveUid(receiveUid);
         giveRecord.setReceiveTime(new Date());
         userSystemCouponGiveRecordMapper.updateByPrimaryKeySelective(giveRecord);
      }
   public UserSystemCouponGiveRecord selectByPrimaryKey(Long id) {
      return userSystemCouponGiveRecordMapper.selectByPrimaryKey(id);
   }
   @Override
   public UserSystemCouponGiveRecord getRecordByUidAndCouponId(Long giveUid, Long couponId) {
      return userSystemCouponGiveRecordMapper.getRecordByUidAndCouponId(giveUid, couponId);
   }
   @Override
   public void updateByPrimaryKeySelective(UserSystemCouponGiveRecord giveRecord) {
      userSystemCouponGiveRecordMapper.updateByPrimaryKeySelective(giveRecord);
   }
   @Override
   public List<UserSystemCouponGiveRecord> overdueList(int count) {
      return userSystemCouponGiveRecordMapper.overdueList(count);
   }
}