first commit
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
<?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.linke.finance.domain.auditConfiguration.repository.mapper.AuditConfigurationMapper">
|
||||
|
||||
<resultMap type="com.mhd.common.core.domain.po.AuditConfigurationPO" id="AuditConfigurationResult">
|
||||
<result property="auditConfigurationId" column="audit_configuration_id" />
|
||||
<result property="organizationId" column="organization_id" />
|
||||
<result property="topOrganizationId" column="top_organization_id" />
|
||||
<result property="roleId" column="role_id" />
|
||||
<result property="roleCode" column="role_code" />
|
||||
<result property="roleName" column="role_name" />
|
||||
<result property="sort" column="sort" />
|
||||
<result property="auditType" column="audit_type" />
|
||||
<result property="isEnabled" column="is_enabled" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectAuditConfigurationPo">
|
||||
select audit_configuration_id, organization_id, top_organization_id, role_id, role_code, role_name, sort, audit_type, is_enabled, create_time, create_by, update_time, update_by, del_flag from audit_configuration
|
||||
</sql>
|
||||
|
||||
<sql id="selectAuditConfigurationPo1">
|
||||
<where>
|
||||
del_flag = 1
|
||||
<if test="organizationId != null ">
|
||||
and organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="topOrganizationId != null ">
|
||||
and top_organization_id = #{topOrganizationId}
|
||||
</if>
|
||||
<if test="roleId != null ">
|
||||
and role_id = #{roleId}
|
||||
</if>
|
||||
<if test="roleCode != null ">
|
||||
and role_code = #{roleCode}
|
||||
</if>
|
||||
<if test="roleName != null ">
|
||||
and role_name like concat('%', #{roleName}, '%')
|
||||
</if>
|
||||
<if test="sort != null ">
|
||||
and sort = #{sort}
|
||||
</if>
|
||||
<if test="auditType != null ">
|
||||
and audit_type = #{auditType}
|
||||
</if>
|
||||
<if test="isEnabled != null ">
|
||||
and is_enabled = #{isEnabled}
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
<select id="queryList" parameterType="com.linke.finance.domain.auditConfiguration.repository.todo.AuditConfigurationDO" resultMap="AuditConfigurationResult">
|
||||
<include refid="selectAuditConfigurationPo"/>
|
||||
<include refid="selectAuditConfigurationPo1"/>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user