use of com.yt.seckill.entity.TOverdueRecord in project seckill by yt-King.
the class TOverdueRecordServiceImpl method detail.
public TOverdueRecord detail(String dataId) {
QueryWrapper<TOverdueRecord> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("data_id", dataId);
TOverdueRecord tOverdueRecord = tOverdueRecordMapper.selectOne(queryWrapper);
if (null == tOverdueRecord)
throw new RuntimeException("记录不存在");
return tOverdueRecord;
}
use of com.yt.seckill.entity.TOverdueRecord in project seckill by yt-King.
the class TOverdueRecordServiceImpl method selectlist.
public Map selectlist(Map params) {
Map map = new HashMap();
List<TOverdueRecord> list;
int count = tOverdueRecordMapper.selectCount(params);
PageUtils.checkPage(params);
list = tOverdueRecordMapper.selectByCondition(params);
map.put("count", count);
map.put("list", list);
return map;
}
Aggregations