heheng
4 天以前 3cc8d1cc3662d88fe7f3666fb1f99e1b19411424
multi-system/src/main/resources/mapper/system/InternalAuditCheckMapper.xml
@@ -17,17 +17,20 @@
        <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
                id, company_id, dept_id, audit_id, audit_date, caluse_num, caluse_content, check_record, inconsistent, del_flag, create_by, create_time, update_by, update_time
            from internal_audit_check
            where del_flag = 0
        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 company_id = #{companyId}
                    and a.company_id = #{companyId}
                </if>
            order by create_time desc
            order by a.create_time desc
    </select>