@MyBatisDao public interface DeskDao extends CrudDao<Desk> { /** * 统计诊室的等待人数、已接诊人数 * @param sql * @return List<Desk> */ List<Desk> findListBySql(@Param("sql") String sql); }
<select id="findListBySql" resultType="com.dc.desk.entity.Desk"> ${sql} </select>