Search in sources :

Example 1 with TApplyRecord

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

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

Aggregations

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