|
@@ -55,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<select id="selectAlertConfigurationByAlertStatus" parameterType="Long" resultMap="AlertConfigurationResult">
|
|
<select id="selectAlertConfigurationByAlertStatus" parameterType="Long" resultMap="AlertConfigurationResult">
|
|
<include refid="selectAlertConfigurationVo"/>
|
|
<include refid="selectAlertConfigurationVo"/>
|
|
WHERE alert_status = 1
|
|
WHERE alert_status = 1
|
|
- <if test="userType !=null and userType !=''">
|
|
|
|
|
|
+ <if test="userType !=null and userType !='' and orgCode !='null' ">
|
|
and user_type = #{userType}
|
|
and user_type = #{userType}
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
@@ -155,7 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
GROUP BY
|
|
GROUP BY
|
|
company_code UNION
|
|
company_code UNION
|
|
</if>
|
|
</if>
|
|
- <if test="parType != null and parType == 'saledept_level' or parType == 'office_level' or parType == 'diy_level' ">
|
|
|
|
|
|
+ <if test="parType != null and parType == 'company_level' or parType == 'saledept_level' or parType == 'office_level' or parType == 'diy_level' ">
|
|
SELECT
|
|
SELECT
|
|
saledept_code AS orgCode
|
|
saledept_code AS orgCode
|
|
FROM
|
|
FROM
|
|
@@ -166,7 +166,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
GROUP BY
|
|
GROUP BY
|
|
saledept_code UNION
|
|
saledept_code UNION
|
|
</if>
|
|
</if>
|
|
- <if test="parType != null and parType == 'suboffice_level' or parType == 'diy_level' ">
|
|
|
|
|
|
+ <if test="parType != null and parType == 'company_level' or parType == 'suboffice_level' or parType == 'saledept_level' or parType == 'office_level' or parType == 'diy_level' ">
|
|
SELECT
|
|
SELECT
|
|
suboffice_code AS orgCode
|
|
suboffice_code AS orgCode
|
|
FROM
|
|
FROM
|