| | |
| | | package com.yeshi.fanli.service.impl.money.extract;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.ExtractRecordMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.ExtractRecord;
|
| | | import com.yeshi.fanli.service.inter.config.ConfigService;
|
| | | import com.yeshi.fanli.service.inter.money.extract.ExtractRecordService;
|
| | |
|
| | | @Service
|
| | | public class ExtractRecordServiceImpl implements ExtractRecordService {
|
| | | @Resource
|
| | | private ExtractRecordMapper extractRecordMapper;
|
| | |
|
| | | @Resource
|
| | | private ConfigService configService;
|
| | |
|
| | | // 定时删除ExtractRecord记录
|
| | | public void deleteExtractRecord() {
|
| | | extractRecordMapper.deleteAll();
|
| | | }
|
| | |
|
| | | @Override
|
| | | public ExtractRecord getExtractRecordByUid(Long uid) {
|
| | | List<ExtractRecord> extractRecordList = extractRecordMapper.selectByUid(uid);
|
| | | if (extractRecordList == null || extractRecordList.size() == 0)
|
| | | return null;
|
| | | else
|
| | | return extractRecordList.get(0);
|
| | | }
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.service.impl.money.extract; |
| | | |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.yeshi.fanli.dao.mybatis.ExtractRecordMapper; |
| | | import com.yeshi.fanli.entity.bus.user.ExtractRecord; |
| | | import com.yeshi.fanli.service.inter.config.ConfigService; |
| | | import com.yeshi.fanli.service.inter.money.extract.ExtractRecordService; |
| | | |
| | | @Service |
| | | public class ExtractRecordServiceImpl implements ExtractRecordService { |
| | | @Resource |
| | | private ExtractRecordMapper extractRecordMapper; |
| | | |
| | | @Resource |
| | | private ConfigService configService; |
| | | |
| | | // 定时删除ExtractRecord记录 |
| | | public void deleteExtractRecord() { |
| | | extractRecordMapper.deleteAll(); |
| | | } |
| | | |
| | | @Override |
| | | public ExtractRecord getExtractRecordByUid(Long uid) { |
| | | List<ExtractRecord> extractRecordList = extractRecordMapper.selectByUid(uid); |
| | | if (extractRecordList == null || extractRecordList.size() == 0) |
| | | return null; |
| | | else |
| | | return extractRecordList.get(0); |
| | | } |
| | | |
| | | } |