<?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.gkhy.exam.system.mapper.InconsistentMapper">
|
<resultMap id="BaseResultMap" type="com.gkhy.exam.system.domain.Inconsistent">
|
<id column="id" jdbcType="BIGINT" property="id" />
|
<result column="company_id" jdbcType="INTEGER" property="companyId" />
|
<result column="del_flag" jdbcType="INTEGER" property="delFlag" />
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
<result column="inconsistent_name" jdbcType="VARCHAR" property="inconsistentName" />
|
<result column="file_path" jdbcType="VARCHAR" property="filePath" />
|
<result column="format" jdbcType="VARCHAR" property="format" />
|
<result column="year" jdbcType="VARCHAR" property="year" />
|
|
</resultMap>
|
<select id="selectInconsistentList" resultMap="BaseResultMap" parameterType="int">
|
select * from inconsistent where del_flag = 0
|
<if test="companyId != null">
|
and company_id = #{companyId}
|
</if>
|
order by create_time desc
|
</select>
|
|
</mapper>
|