“djh”
7 天以前 ab25f94a1e593001bf993d182f9a3860fd098583
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
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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.InternalAuditCheckMapper">
 
    <resultMap id="BaseResultMap" type="com.gkhy.exam.system.domain.InternalAuditCheck">
        <id column="id" jdbcType="BIGINT" property="id" />
        <result column="company_id" jdbcType="INTEGER" property="companyId" />
        <result column="dept_id" jdbcType="BIGINT" property="deptId" />
        <result column="audit_id" jdbcType="BIGINT" property="auditId" />
        <result column="audit_date" jdbcType="TIMESTAMP" property="auditDate" />
        <result column="caluse_num" jdbcType="VARCHAR" property="caluseNum" />
        <result column="caluse_content" jdbcType="VARCHAR" property="caluseContent" />
        <result column="check_record" jdbcType="VARCHAR" property="checkRecord" />
        <result column="inconsistent" jdbcType="VARCHAR" property="inconsistent" />
        <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="dept_name" jdbcType="VARCHAR" property="deptName" />
    </resultMap>
 
    <select id="selectInternalAuditCheckList" parameterType="int" resultMap="BaseResultMap">
            select
        a.id, a.company_id, a.dept_id, b.dept_name,a.audit_id, a.audit_date, a.caluse_num, a.caluse_content, a.check_record, a.inconsistent, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time
            from internal_audit_check a
        left join sys_dept b on a.dept_id = b.dept_id
 
            where a.del_flag = 0
                <if test="companyId != null">
                    and a.company_id = #{companyId}
                </if>
            order by a.create_time desc
    </select>
 
 
 
 
</mapper>