66 lines
3.0 KiB
XML
66 lines
3.0 KiB
XML
<?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.mhd.wms.domain.commonSettings.repository.mapper.CommonSettingsMapper">
|
|
|
|
<resultMap type="com.mhd.wms.domain.commonSettings.repository.po.CommonSettingsPO" id="CommonSettingsResult">
|
|
<result property="commonSettingsId" column="common_settings_id" />
|
|
<result property="parentId" column="parent_id" />
|
|
<result property="name" column="name" />
|
|
<result property="route" column="route" />
|
|
<result property="level" column="level" />
|
|
<result property="remark" column="remark" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createByName" column="create_by_name" />
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateByName" column="update_by_name" />
|
|
<result property="organizationId" column="organization_id" />
|
|
<result property="organizationName" column="organization_name" />
|
|
<result property="topOrganizationId" column="top_organization_id" />
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCommonSettingsPo">
|
|
select common_settings_id, parent_id, name, route, level, remark, create_time, create_by, create_by_name, update_time, update_by, update_by_name, organization_id, organization_name, top_organization_id from common_settings
|
|
</sql>
|
|
|
|
<sql id="selectCommonSettingsPo1">
|
|
<where>
|
|
<if test="parentId != null ">
|
|
and parent_id = #{parentId}
|
|
</if>
|
|
<if test="name != null and name != ''">
|
|
and name like concat('%', #{name}, '%')
|
|
</if>
|
|
<if test="route != null and route != ''">
|
|
and route = #{route}
|
|
</if>
|
|
<if test="level != null ">
|
|
and level = #{level}
|
|
</if>
|
|
<if test="createByName != null and createByName != ''">
|
|
and create_by_name like concat('%', #{createByName}, '%')
|
|
</if>
|
|
<if test="updateByName != null and updateByName != ''">
|
|
and update_by_name like concat('%', #{updateByName}, '%')
|
|
</if>
|
|
<if test="organizationId != null ">
|
|
and organization_id = #{organizationId}
|
|
</if>
|
|
<if test="organizationName != null and organizationName != ''">
|
|
and organization_name like concat('%', #{organizationName}, '%')
|
|
</if>
|
|
<if test="topOrganizationId != null ">
|
|
and top_organization_id = #{topOrganizationId}
|
|
</if>
|
|
</where>
|
|
</sql>
|
|
|
|
<select id="queryList" parameterType="com.mhd.wms.domain.commonSettings.repository.todo.CommonSettingsDO" resultMap="CommonSettingsResult">
|
|
<include refid="selectCommonSettingsPo"/>
|
|
<include refid="selectCommonSettingsPo1"/>
|
|
</select>
|
|
</mapper> |