Search in sources :

Example 1 with DrawMapper

use of com.cas.sim.tis.mapper.DrawMapper in project TeachingInSimulation by ScOrPiOzzy.

the class DrawServiceImpl method findByCreatorId.

@Override
public List<Draw> findByCreatorId(int creatorId) {
    DrawMapper mapper = (DrawMapper) this.mapper;
    Condition condition = new Condition(Draw.class);
    Criteria criteria = condition.createCriteria();
    criteria.andEqualTo("creatorId", creatorId);
    criteria.andEqualTo("del", 0);
    return mapper.selectByCondition(condition);
}
Also used : Condition(tk.mybatis.mapper.entity.Condition) DrawMapper(com.cas.sim.tis.mapper.DrawMapper) Criteria(tk.mybatis.mapper.entity.Example.Criteria)

Aggregations

DrawMapper (com.cas.sim.tis.mapper.DrawMapper)1 Condition (tk.mybatis.mapper.entity.Condition)1 Criteria (tk.mybatis.mapper.entity.Example.Criteria)1