<?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.ComYearDAO">
<sql id="allColumns">
t.report_year as reportYear, t.unit_code as unitCode, t.year_type as yearType, t.start_time as startTime, t.end_time as endTime, t.remark as remark, t.check_year as checkYear, t.created as created,
t.updated as updated
</sql>
<select id="getMaxYearByType" parameterType="int" resultType="java.lang.Integer">
select ifnull(max(report_year),0) as report_year from com_year where year_type=#{yearType}
</select>
<select id="getListByPage" resultType="com.yiboshi.science.param.dto.ComYearDTO">
select c.* from com_year c
<where>
${ew.sqlSegment}
</where>
order by c.report_year desc
</select>
</mapper>
-
徐俊 authoredd3497d84