<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!-- 结题经费记录表 --> <mapper namespace="com.yiboshi.science.dao.ComNoticeDAO"> <sql id="allColumns"> </sql> <select id="getListByPage" resultType="com.yiboshi.science.param.dto.ComNoticeDTO"> SELECT a.id,a.title,a.created,a.updated FROM com_notice a <where> ${ew.sqlSegment} </where> ORDER BY a.created desc </select> <select id="getLatestNotice" resultType="com.yiboshi.science.param.dto.ComNoticeDTO"> SELECT a.* FROM com_notice a <where> ${ew.sqlSegment} </where> order by a.created desc limit 1 </select> </mapper>