“djh”
2 天以前 8182370136b1d91330ada09e2fcebdd01dde1161
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?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>