Search in sources :

Example 1 with TOverdueRecord

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;
}
Also used : QueryWrapper(com.baomidou.mybatisplus.core.conditions.query.QueryWrapper) TOverdueRecord(com.yt.seckill.entity.TOverdueRecord)

Example 2 with 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;
}
Also used : HashMap(java.util.HashMap) TOverdueRecord(com.yt.seckill.entity.TOverdueRecord) HashMap(java.util.HashMap) Map(java.util.Map)

Aggregations

TOverdueRecord (com.yt.seckill.entity.TOverdueRecord)2 QueryWrapper (com.baomidou.mybatisplus.core.conditions.query.QueryWrapper)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1