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