浏览代码

经销商

njs 1 年之前
父节点
当前提交
7c23fb52e6
共有 1 个文件被更改,包括 11 次插入2 次删除
  1. 11 2
      suishenbang-system/src/main/resources/mapper/system/AlertConfigurationMapper.xml

+ 11 - 2
suishenbang-system/src/main/resources/mapper/system/AlertConfigurationMapper.xml

@@ -56,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectAlertConfigurationVo"/>
         WHERE alert_status = 1
         <if test="userType !=null and userType !=''  ">
-            and user_type = #{userType}
+            and user_type like concat('%', #{userType}, '%')
         </if>
     </select>
 
@@ -175,8 +175,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         BUSINESS_UNIT = '零售'
         <include refid="orgListWhere"/>
         GROUP BY
-        suboffice_code
+        suboffice_code UNION
         </if>
+        SELECT
+        customer_id AS orgCode
+        FROM
+        order_sales_sum_tuc_customer
+        WHERE
+        BUSINESS_UNIT = '零售'
+        <include refid="orgListWhere"/>
+        GROUP BY
+        customer_id
     </select>
     <select id="selectOrgCode" resultType="java.lang.String">