|
|
@@ -7,7 +7,7 @@
|
|
|
<resultMap type="com.xunmei.system.domain.SysAreaCheck" id="SysAreaCheckResult">
|
|
|
<result property="id" column="id"/>
|
|
|
<result property="checkName" column="check_name"/>
|
|
|
- <result property="areaId" column="area_id"/>
|
|
|
+ <!-- <result property="areaId" column="area_id"/>-->
|
|
|
<result property="orgId" column="org_id"/>
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
@@ -20,7 +20,7 @@
|
|
|
<sql id="selectSysAreaCheckVo">
|
|
|
select id,
|
|
|
check_name,
|
|
|
- area_id,
|
|
|
+ /*area_id,*/
|
|
|
org_id,
|
|
|
create_time,
|
|
|
update_time,
|
|
|
@@ -38,9 +38,9 @@
|
|
|
<if test="checkName != null and checkName != ''">
|
|
|
and check_name like concat('%', #{checkName}, '%')
|
|
|
</if>
|
|
|
- <if test="areaId != null ">
|
|
|
+ <!-- <if test="areaId != null ">
|
|
|
and area_id = #{areaId}
|
|
|
- </if>
|
|
|
+ </if>-->
|
|
|
<if test="orgId != null ">
|
|
|
and org_id = #{orgId}
|
|
|
</if>
|
|
|
@@ -62,7 +62,7 @@
|
|
|
SELECT sa.`name` AS areaName,
|
|
|
so.`name`
|
|
|
FROM sys_area_check sac
|
|
|
- LEFT JOIN sys_area sa ON sa.id = sac.area_id
|
|
|
+ /* LEFT JOIN sys_area sa ON sa.id = sac.area_id*/
|
|
|
LEFT JOIN sys_org so ON so.id = sac.org_id
|
|
|
WHERE sac.id = #{id}
|
|
|
|
|
|
@@ -70,20 +70,20 @@
|
|
|
<select id="selectSysAreaVO" resultType="com.xunmei.system.domain.vo.SysAreaCheckVO">
|
|
|
SELECT
|
|
|
sac.*,
|
|
|
- sa.`name` AS areaName,
|
|
|
+ /* sa.`name` AS areaName,*/
|
|
|
so.short_name AS orgName
|
|
|
FROM
|
|
|
sys_area_check sac
|
|
|
- LEFT JOIN sys_area sa ON sa.id = sac.area_id
|
|
|
+ /* LEFT JOIN sys_area sa ON sa.id = sac.area_id*/
|
|
|
LEFT JOIN sys_org so ON so.id = sac.org_id
|
|
|
where 1=1
|
|
|
and sac.del_flag='0'
|
|
|
<if test="sysAreaCheck.checkName !=null">
|
|
|
and check_name like concat('%', #{sysAreaCheck.checkName}, '%')
|
|
|
</if>
|
|
|
- <if test="sysAreaCheck.areaId !=null">
|
|
|
+ <!-- <if test="sysAreaCheck.areaId !=null">
|
|
|
and area_id=#{sysAreaCheck.areaId}
|
|
|
- </if>
|
|
|
+ </if>-->
|
|
|
<if test="sysAreaCheck.orgId !=null">
|
|
|
and org_id=#{sysAreaCheck.orgId}
|
|
|
</if>
|
|
|
@@ -99,8 +99,8 @@
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="checkName != null">check_name,
|
|
|
</if>
|
|
|
- <if test="areaId != null">area_id,
|
|
|
- </if>
|
|
|
+ <!-- <if test="areaId != null">area_id,
|
|
|
+ </if>-->
|
|
|
<if test="orgId != null">org_id,
|
|
|
</if>
|
|
|
<if test="createTime != null">create_time,
|
|
|
@@ -119,8 +119,8 @@
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="checkName != null">#{checkName},
|
|
|
</if>
|
|
|
- <if test="areaId != null">#{areaId},
|
|
|
- </if>
|
|
|
+ <!-- <if test="areaId != null">#{areaId},
|
|
|
+ </if>-->
|
|
|
<if test="orgId != null">#{orgId},
|
|
|
</if>
|
|
|
<if test="createTime != null">#{createTime},
|
|
|
@@ -144,9 +144,9 @@
|
|
|
<if test="checkName != null">check_name =
|
|
|
#{checkName},
|
|
|
</if>
|
|
|
- <if test="areaId != null">area_id =
|
|
|
+ <!-- <if test="areaId != null">area_id =
|
|
|
#{areaId},
|
|
|
- </if>
|
|
|
+ </if>-->
|
|
|
<if test="orgId != null">org_id =
|
|
|
#{orgId},
|
|
|
</if>
|