云联一号 1 viikko sitten
vanhempi
commit
d4aea58dd6
20 muutettua tiedostoa jossa 64 lisäystä ja 64 poistoa
  1. 1 1
      fs-service/src/main/resources/mapper/company/CompanyDeptMapper.xml
  2. 1 1
      fs-service/src/main/resources/mapper/company/CompanyTagMapper.xml
  3. 4 4
      fs-service/src/main/resources/mapper/company/CompanyUserMapper.xml
  4. 5 5
      fs-service/src/main/resources/mapper/course/FsCourseTrafficLogMapper.xml
  5. 1 1
      fs-service/src/main/resources/mapper/course/FsUserCourseTrainingCampMapper.xml
  6. 1 1
      fs-service/src/main/resources/mapper/his/FsPackageOrderMapper.xml
  7. 4 4
      fs-service/src/main/resources/mapper/his/FsStoreOrderMapper.xml
  8. 3 3
      fs-service/src/main/resources/mapper/his/FsUserMapper.xml
  9. 2 2
      fs-service/src/main/resources/mapper/hisStore/FsStoreOrderScrmMapper.xml
  10. 1 1
      fs-service/src/main/resources/mapper/hisStore/FsUserCourseCountScrmMapper.xml
  11. 3 3
      fs-service/src/main/resources/mapper/hisStore/FsUserScrmMapper.xml
  12. 2 2
      fs-service/src/main/resources/mapper/live/LiveDataMapper.xml
  13. 1 1
      fs-service/src/main/resources/mapper/live/LiveOrderMapper.xml
  14. 3 3
      fs-service/src/main/resources/mapper/qw/QwWatchLogMapper.xml
  15. 1 1
      fs-service/src/main/resources/mapper/sop/QwSopMapper.xml
  16. 20 20
      fs-service/src/main/resources/mapper/statis/ConsumptionBalanceMapper.xml
  17. 2 2
      fs-service/src/main/resources/mapper/statis/FsStatisEveryDayMapper.xml
  18. 2 2
      fs-service/src/main/resources/mapper/statis/FsStatisPeriodWatchMapper.xml
  19. 6 6
      fs-service/src/main/resources/mapper/statis/FsStatisSalerWatchMapper.xml
  20. 1 1
      fs-service/src/main/resources/mapper/store/FsUserCourseCountMapper.xml

+ 1 - 1
fs-service/src/main/resources/mapper/company/CompanyDeptMapper.xml

@@ -164,7 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
             <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
             update_time = sysdate()
             update_time = sysdate()
         </set>
         </set>
-        where dept_id in (${ancestors})
+        where find_in_set(dept_id, #{ancestors})
     </update>
     </update>
 
 
     <select id="selectChildrenDeptById" resultMap="CompanyDeptResult">
     <select id="selectChildrenDeptById" resultMap="CompanyDeptResult">

+ 1 - 1
fs-service/src/main/resources/mapper/company/CompanyTagMapper.xml

@@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         where ctu.user_id = #{userId}
         where ctu.user_id = #{userId}
     </select>
     </select>
     <select id="findUserTagByUserId" resultType="java.lang.String">
     <select id="findUserTagByUserId" resultType="java.lang.String">
-        select tag_ids from company_tag_user where user_id = ${userId} and company_user_id=${companyUserId} limit 1
+        select tag_ids from company_tag_user where user_id = #{userId} and company_user_id=#{companyUserId} limit 1
     </select>
     </select>
     <resultMap id="companyTagMap" type="com.fs.company.domain.CompanyTag">
     <resultMap id="companyTagMap" type="com.fs.company.domain.CompanyTag">
         <id column="tag_id" property="tagId" jdbcType="BIGINT" javaType="java.lang.Long"/>
         <id column="tag_id" property="tagId" jdbcType="BIGINT" javaType="java.lang.Long"/>

+ 4 - 4
fs-service/src/main/resources/mapper/company/CompanyUserMapper.xml

@@ -288,7 +288,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </foreach>
         </foreach>
     </insert>
     </insert>
     <update id="uploadQrCode">
     <update id="uploadQrCode">
-        update company_user set qr_code_weixin=#{url} where user_id=${userId}
+        update company_user set qr_code_weixin=#{url} where user_id=#{userId}
     </update>
     </update>
     <update id="updateCompanyUser">
     <update id="updateCompanyUser">
         update company_user
         update company_user
@@ -587,7 +587,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 AND company_user_id = #{companyUserId}
                 AND company_user_id = #{companyUserId}
             </if>
             </if>
             <if test="previousDay != null">
             <if test="previousDay != null">
-                and camp_period_time = ${previousDay}
+                and camp_period_time = #{previousDay}
             </if>
             </if>
         </where>
         </where>
     </select>
     </select>
@@ -599,7 +599,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 AND company_user_id = #{companyUserId}
                 AND company_user_id = #{companyUserId}
             </if>
             </if>
             <if test="previousDay != null">
             <if test="previousDay != null">
-                and camp_period_time = ${previousDay}
+                and camp_period_time = #{previousDay}
             </if>
             </if>
         </where>
         </where>
     </select>
     </select>
@@ -611,7 +611,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 AND company_user_id = #{companyUserId}
                 AND company_user_id = #{companyUserId}
             </if>
             </if>
             <if test="previousDay != null">
             <if test="previousDay != null">
-                and camp_period_time = ${previousDay}
+                and camp_period_time = #{previousDay}
             </if>
             </if>
         </where>
         </where>
     </select>
     </select>

+ 5 - 5
fs-service/src/main/resources/mapper/course/FsCourseTrafficLogMapper.xml

@@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             create_time >= CURDATE()
             create_time >= CURDATE()
             AND create_time &lt; CURDATE() + INTERVAL 1 DAY
             AND create_time &lt; CURDATE() + INTERVAL 1 DAY
             <if test="companyId != null">
             <if test="companyId != null">
-                AND company_id = ${companyId}
+                AND company_id = #{companyId}
             </if>
             </if>
         </where>
         </where>
     </select>
     </select>
@@ -77,7 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             create_time  &gt;= CURDATE() - INTERVAL 1 DAY
             create_time  &gt;= CURDATE() - INTERVAL 1 DAY
             AND create_time &lt; CURDATE()
             AND create_time &lt; CURDATE()
             <if test="companyId != null">
             <if test="companyId != null">
-                AND company_id = ${companyId}
+                AND company_id = #{companyId}
             </if>
             </if>
         </where>
         </where>
     </select>
     </select>
@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             create_time >= DATE_FORMAT(CURDATE(), '%Y-%m-01')
             create_time >= DATE_FORMAT(CURDATE(), '%Y-%m-01')
             AND create_time &lt; DATE_FORMAT(CURDATE() + INTERVAL 1 MONTH, '%Y-%m-01')
             AND create_time &lt; DATE_FORMAT(CURDATE() + INTERVAL 1 MONTH, '%Y-%m-01')
             <if test="companyId != null">
             <if test="companyId != null">
-                AND company_id = ${companyId}
+                AND company_id = #{companyId}
             </if>
             </if>
         </where>
         </where>
     </select>
     </select>
@@ -259,10 +259,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 and company_id = #{companyId}
                 and company_id = #{companyId}
             </if>
             </if>
             <if test="courseId != null">
             <if test="courseId != null">
-                and course_id = ${courseId}
+                and course_id = #{courseId}
             </if>
             </if>
             <if test="project != null">
             <if test="project != null">
-                and project = ${project}
+                and project = #{project}
             </if>
             </if>
             <if test="common == null">
             <if test="common == null">
                 AND company_id IS not NULL
                 AND company_id IS not NULL

+ 1 - 1
fs-service/src/main/resources/mapper/course/FsUserCourseTrainingCampMapper.xml

@@ -37,7 +37,7 @@
         <choose>
         <choose>
             <when test="params.scs != null and params.scs.size() > 0">
             <when test="params.scs != null and params.scs.size() > 0">
                 <foreach collection="params.scs" item="sc" separator=",">
                 <foreach collection="params.scs" item="sc" separator=",">
-                    ${sc.column} ${sc.order}
+                    <choose><when test="sc.column == 'order_number'">order_number</when><when test="sc.column == 'training_camp_name'">training_camp_name</when><when test="sc.column == 'training_camp_id'">training_camp_id</when><otherwise>training_camp_id</otherwise></choose> <choose><when test="sc.order == 'ASC'">ASC</when><otherwise>DESC</otherwise></choose>
                 </foreach>
                 </foreach>
             </when>
             </when>
             <otherwise>
             <otherwise>

+ 1 - 1
fs-service/src/main/resources/mapper/his/FsPackageOrderMapper.xml

@@ -318,7 +318,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         where O.is_pay = 1 ORDER BY RAND() desc LIMIT 20
         where O.is_pay = 1 ORDER BY RAND() desc LIMIT 20
     </select>
     </select>
     <select id="selectOutTimeOrderList" resultType="com.fs.his.domain.FsPackageOrder">
     <select id="selectOutTimeOrderList" resultType="com.fs.his.domain.FsPackageOrder">
-        select * from fs_package_order  where status = 1 AND NOW() &gt; DATE_ADD(create_time, INTERVAL ${unPayTime} MINUTE)
+        select * from fs_package_order  where status = 1 AND NOW() &gt; DATE_ADD(create_time, INTERVAL #{unPayTime} MINUTE)
     </select>
     </select>
     <select id="selectInformationCollectionByStoreOrderId" resultType="com.fs.his.vo.FsUserInfoCollectionAndStoreOrderVo">
     <select id="selectInformationCollectionByStoreOrderId" resultType="com.fs.his.vo.FsUserInfoCollectionAndStoreOrderVo">
         SELECT ic.* FROM `fs_package_order` po
         SELECT ic.* FROM `fs_package_order` po

+ 4 - 4
fs-service/src/main/resources/mapper/his/FsStoreOrderMapper.xml

@@ -953,7 +953,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             so.pay_money
             so.pay_money
         </if>
         </if>
         <if test="maps.sortOrder != null and maps.sortOrder != ''">
         <if test="maps.sortOrder != null and maps.sortOrder != ''">
-            ${maps.sortOrder}
+            <choose><when test="maps.sortOrder == 'ASC'">ASC</when><otherwise>DESC</otherwise></choose>
         </if>
         </if>
         <if test="maps.sortField == null or maps.sortField == ''">
         <if test="maps.sortField == null or maps.sortField == ''">
             so.order_id desc
             so.order_id desc
@@ -1177,7 +1177,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             so.pay_money
             so.pay_money
         </if>
         </if>
         <if test="maps.sortOrder != null and maps.sortOrder != ''">
         <if test="maps.sortOrder != null and maps.sortOrder != ''">
-            ${maps.sortOrder}
+            <choose><when test="maps.sortOrder == 'ASC'">ASC</when><otherwise>DESC</otherwise></choose>
         </if>
         </if>
         <if test="maps.sortField == null or maps.sortField == ''">
         <if test="maps.sortField == null or maps.sortField == ''">
             so.order_id desc
             so.order_id desc
@@ -1656,7 +1656,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             so.pay_money
             so.pay_money
         </if>
         </if>
         <if test="maps.sortOrder != null and maps.sortOrder != ''">
         <if test="maps.sortOrder != null and maps.sortOrder != ''">
-            ${maps.sortOrder}
+            <choose><when test="maps.sortOrder == 'ASC'">ASC</when><otherwise>DESC</otherwise></choose>
         </if>
         </if>
         <if test="maps.sortField == null or maps.sortField == ''">
         <if test="maps.sortField == null or maps.sortField == ''">
             so.order_id desc
             so.order_id desc
@@ -2153,7 +2153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </select>
     </select>
     <select id="selectOutTimeOrderList" resultType="com.fs.his.domain.FsStoreOrder">
     <select id="selectOutTimeOrderList" resultType="com.fs.his.domain.FsStoreOrder">
         <include refid="selectFsStoreOrderVo"/>
         <include refid="selectFsStoreOrderVo"/>
-        where is_del = 0 and status = 1 and NOW() &gt; DATE_ADD(create_time, INTERVAL ${unPayTime} MINUTE)
+        where is_del = 0 and status = 1 and NOW() &gt; DATE_ADD(create_time, INTERVAL #{unPayTime} MINUTE)
     </select>
     </select>
 
 
 </mapper>
 </mapper>

+ 3 - 3
fs-service/src/main/resources/mapper/his/FsUserMapper.xml

@@ -392,7 +392,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="companyUserIds != null and companyUserIds.size > 0">
             <if test="companyUserIds != null and companyUserIds.size > 0">
                 AND ucu.company_user_id in
                 AND ucu.company_user_id in
                 <foreach collection="companyUserIds" item="item" index="index" open="(" separator="," close=")">
                 <foreach collection="companyUserIds" item="item" index="index" open="(" separator="," close=")">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="nickname != null and nickname != ''">
             <if test="nickname != null and nickname != ''">
@@ -434,7 +434,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="companyUserIds != null and companyUserIds.size > 0">
             <if test="companyUserIds != null and companyUserIds.size > 0">
                 AND ucu.company_user_id in
                 AND ucu.company_user_id in
                 <foreach collection="companyUserIds" item="item" index="index" open="(" separator="," close=")">
                 <foreach collection="companyUserIds" item="item" index="index" open="(" separator="," close=")">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="nickname != null and nickname!=''">
             <if test="nickname != null and nickname!=''">
@@ -454,7 +454,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         where
         where
         user_id in
         user_id in
         <foreach collection="userIds" open="(" close=")" separator="," item="item">
         <foreach collection="userIds" open="(" close=")" separator="," item="item">
-            ${item}
+            #{item}
         </foreach>
         </foreach>
     </update>
     </update>
 
 

+ 2 - 2
fs-service/src/main/resources/mapper/hisStore/FsStoreOrderScrmMapper.xml

@@ -1268,7 +1268,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             o.pay_money
             o.pay_money
         </if>
         </if>
         <if test="maps.sortOrder != null and maps.sortOrder != ''">
         <if test="maps.sortOrder != null and maps.sortOrder != ''">
-            ${maps.sortOrder}
+            <choose><when test="maps.sortOrder == 'ASC'">ASC</when><otherwise>DESC</otherwise></choose>
         </if>
         </if>
         <if test="maps.sortField == null or maps.sortField == ''">
         <if test="maps.sortField == null or maps.sortField == ''">
             o.id desc
             o.id desc
@@ -1888,7 +1888,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             o.pay_money
             o.pay_money
         </if>
         </if>
         <if test="maps.sortOrder != null and maps.sortOrder != ''">
         <if test="maps.sortOrder != null and maps.sortOrder != ''">
-            ${maps.sortOrder}
+            <choose><when test="maps.sortOrder == 'ASC'">ASC</when><otherwise>DESC</otherwise></choose>
         </if>
         </if>
         <if test="maps.sortField == null or maps.sortField == ''">
         <if test="maps.sortField == null or maps.sortField == ''">
             o.id desc
             o.id desc

+ 1 - 1
fs-service/src/main/resources/mapper/hisStore/FsUserCourseCountScrmMapper.xml

@@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             ifnull ( sum( fs_user_course_count.part_course_count ), 0 ) AS part_course_count,
             ifnull ( sum( fs_user_course_count.part_course_count ), 0 ) AS part_course_count,
             Max( fs_user_course_count.last_watch_date ) AS last_watch_date,
             Max( fs_user_course_count.last_watch_date ) AS last_watch_date,
             Max( fs_user_course_count.complete_watch_date) AS complete_watch_date
             Max( fs_user_course_count.complete_watch_date) AS complete_watch_date
-            from fs_user_course_count where user_id = ${userId}
+            from fs_user_course_count where user_id = #{userId}
     </select>
     </select>
 
 
     <insert id="insertFsUserCourseCount">
     <insert id="insertFsUserCourseCount">

+ 3 - 3
fs-service/src/main/resources/mapper/hisStore/FsUserScrmMapper.xml

@@ -577,7 +577,7 @@
         where
         where
             user_id in
             user_id in
         <foreach collection="userIds" open="(" close=")" separator="," item="item">
         <foreach collection="userIds" open="(" close=")" separator="," item="item">
-            ${item}
+            #{item}
         </foreach>
         </foreach>
     </update>
     </update>
 
 
@@ -628,7 +628,7 @@
             <if test="companyUserIds != null and companyUserIds.size > 0">
             <if test="companyUserIds != null and companyUserIds.size > 0">
                 AND ucu.company_user_id in
                 AND ucu.company_user_id in
                 <foreach collection="companyUserIds" item="item" index="index" open="(" separator="," close=")">
                 <foreach collection="companyUserIds" item="item" index="index" open="(" separator="," close=")">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="nickname != null and nickname != ''">
             <if test="nickname != null and nickname != ''">
@@ -1695,7 +1695,7 @@
             <if test="companyUserIds != null and companyUserIds.size > 0">
             <if test="companyUserIds != null and companyUserIds.size > 0">
                 AND ucu.company_user_id in
                 AND ucu.company_user_id in
                 <foreach collection="companyUserIds" item="item" index="index" open="(" separator="," close=")">
                 <foreach collection="companyUserIds" item="item" index="index" open="(" separator="," close=")">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="nickname != null and nickname!=''">
             <if test="nickname != null and nickname!=''">

+ 2 - 2
fs-service/src/main/resources/mapper/live/LiveDataMapper.xml

@@ -139,7 +139,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 END AS date_range,
                 END AS date_range,
         <choose>
         <choose>
             <when test="category == 'streams'"> COUNT(l.live_id) </when>
             <when test="category == 'streams'"> COUNT(l.live_id) </when>
-            <otherwise> SUM(ld.${category}) </otherwise>
+            <otherwise> SUM(ld.<choose><when test="category == 'views'">views</when><when test="category == 'likes'">likes</when><when test="category == 'comments'">comments</when><when test="category == 'shares'">shares</when><otherwise>views</otherwise></choose>) </otherwise>
         </choose>
         </choose>
          AS views
          AS views
             FROM live_data ld
             FROM live_data ld
@@ -189,7 +189,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 END AS date_range,
                 END AS date_range,
         <choose>
         <choose>
             <when test="category == 'streams'"> COUNT(l.live_id) </when>
             <when test="category == 'streams'"> COUNT(l.live_id) </when>
-            <otherwise> SUM(ld.${category}) </otherwise>
+            <otherwise> SUM(ld.<choose><when test="category == 'views'">views</when><when test="category == 'likes'">likes</when><when test="category == 'comments'">comments</when><when test="category == 'shares'">shares</when><otherwise>views</otherwise></choose>) </otherwise>
         </choose>
         </choose>
          AS views
          AS views
             FROM live_data ld
             FROM live_data ld

+ 1 - 1
fs-service/src/main/resources/mapper/live/LiveOrderMapper.xml

@@ -814,7 +814,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         o.pay_money
         o.pay_money
     </if>
     </if>
     <if test="maps.sortOrder != null and maps.sortOrder != ''">
     <if test="maps.sortOrder != null and maps.sortOrder != ''">
-        ${maps.sortOrder}
+        <choose><when test="maps.sortOrder == 'ASC'">ASC</when><otherwise>DESC</otherwise></choose>
     </if>
     </if>
     <if test="maps.sortField == null or maps.sortField == ''">
     <if test="maps.sortField == null or maps.sortField == ''">
         o.order_id desc
         o.order_id desc

+ 3 - 3
fs-service/src/main/resources/mapper/qw/QwWatchLogMapper.xml

@@ -107,7 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="companyUserIds != null and companyUserIds.size() != 0">
             <if test="companyUserIds != null and companyUserIds.size() != 0">
                 and company_user_id in
                 and company_user_id in
                 <foreach collection="companyUserIds" item="item" open="(" close=")" separator=",">
                 <foreach collection="companyUserIds" item="item" open="(" close=")" separator=",">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="project != null">
             <if test="project != null">
@@ -131,7 +131,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="companyUserIds != null">
             <if test="companyUserIds != null">
                 and company_user_id in
                 and company_user_id in
                 <foreach collection="companyUserIds" item="item" open="(" close=")" separator=",">
                 <foreach collection="companyUserIds" item="item" open="(" close=")" separator=",">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="project != null">
             <if test="project != null">
@@ -160,7 +160,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="companyUserIds != null and companyUserIds.size() != 0">
             <if test="companyUserIds != null and companyUserIds.size() != 0">
                 and company_user_id in
                 and company_user_id in
                 <foreach collection="companyUserIds" item="item" open="(" close=")" separator=",">
                 <foreach collection="companyUserIds" item="item" open="(" close=")" separator=",">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="project != null">
             <if test="project != null">

+ 1 - 1
fs-service/src/main/resources/mapper/sop/QwSopMapper.xml

@@ -467,7 +467,7 @@
             ]]>
             ]]>
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
-                AND qw_sop.company_id = ${companyId}
+                AND qw_sop.company_id = #{companyId}
             </if>
             </if>
         </where>
         </where>
         ORDER BY qw_sop.create_time DESC
         ORDER BY qw_sop.create_time DESC

+ 20 - 20
fs-service/src/main/resources/mapper/statis/ConsumptionBalanceMapper.xml

@@ -42,13 +42,13 @@
         select count(log_id) from fs_course_watch_log
         select count(log_id) from fs_course_watch_log
         <where>
         <where>
             <if test="userType != null">
             <if test="userType != null">
-                and send_type=${userType}
+                and send_type=#{userType}
             </if>
             </if>
             <if test="startTime != null and endTime != null">
             <if test="startTime != null and endTime != null">
                 and create_time between #{startTime} and #{endTime}
                 and create_time between #{startTime} and #{endTime}
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
-                and company_id = #{companyId}
+                AND company_id = #{companyId}
             </if>
             </if>
         </where>
         </where>
     </select>
     </select>
@@ -57,13 +57,13 @@
         <where>
         <where>
             finish_time is not null
             finish_time is not null
             <if test="userType != null">
             <if test="userType != null">
-                and send_type=${userType}
+                and send_type=#{userType}
             </if>
             </if>
             <if test="startTime != null and endTime != null">
             <if test="startTime != null and endTime != null">
                 and create_time between #{startTime} and #{endTime}
                 and create_time between #{startTime} and #{endTime}
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
-                and company_id = #{companyId}
+                AND company_id = #{companyId}
             </if>
             </if>
         </where>
         </where>
     </select>
     </select>
@@ -71,13 +71,13 @@
         select count(distinct user_id) from fs_course_watch_log
         select count(distinct user_id) from fs_course_watch_log
         <where>
         <where>
             <if test="userType != null">
             <if test="userType != null">
-                and send_type=${userType}
+                and send_type=#{userType}
             </if>
             </if>
             <if test="startTime != null and endTime != null">
             <if test="startTime != null and endTime != null">
                 and create_time between #{startTime} and #{endTime}
                 and create_time between #{startTime} and #{endTime}
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
-                and company_id = #{companyId}
+                AND company_id = #{companyId}
             </if>
             </if>
 
 
         </where>
         </where>
@@ -90,10 +90,10 @@
                  AND create_time BETWEEN #{startTime} AND #{endTime}
                  AND create_time BETWEEN #{startTime} AND #{endTime}
              </if>
              </if>
              <if test="userType != null">
              <if test="userType != null">
-                 and send_type=${userType}
+                 and send_type=#{userType}
              </if>
              </if>
              <if test="companyId != null">
              <if test="companyId != null">
-                 and company_id = #{companyId}
+                 AND company_id = #{companyId}
              </if>
              </if>
          </where>
          </where>
     </select>
     </select>
@@ -104,7 +104,7 @@
                create_time BETWEEN #{startTime} AND #{endTime}
                create_time BETWEEN #{startTime} AND #{endTime}
            </if>
            </if>
            <if test="companyId != null">
            <if test="companyId != null">
-               and company_id = #{companyId}
+               AND company_id = #{companyId}
            </if>
            </if>
        </where>
        </where>
     </select>
     </select>
@@ -116,7 +116,7 @@
                 and create_time BETWEEN #{startTime} AND #{endTime}
                 and create_time BETWEEN #{startTime} AND #{endTime}
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
-                and company_id = #{companyId}
+                AND company_id = #{companyId}
             </if>
             </if>
         </where>
         </where>
     </select>
     </select>
@@ -129,7 +129,7 @@
                 and rpl.create_time BETWEEN #{startTime} AND #{endTime}
                 and rpl.create_time BETWEEN #{startTime} AND #{endTime}
             </if>
             </if>
             <if test="userType != null">
             <if test="userType != null">
-                and log.send_type = ${userType}
+                and log.send_type = #{userType}
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
                 and log.company_id = #{companyId}
                 and log.company_id = #{companyId}
@@ -145,7 +145,7 @@
                 and rpl.create_time BETWEEN #{startTime} AND #{endTime}
                 and rpl.create_time BETWEEN #{startTime} AND #{endTime}
             </if>
             </if>
             <if test="userType != null">
             <if test="userType != null">
-                and log.send_type = ${userType}
+                and log.send_type = #{userType}
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
                 and log.company_id = #{companyId}
                 and log.company_id = #{companyId}
@@ -190,7 +190,7 @@
                 AND create_time <![CDATA[<]]> #{endTime}
                 AND create_time <![CDATA[<]]> #{endTime}
             </if>
             </if>
             <if test="userType != null">
             <if test="userType != null">
-                AND send_type = ${userType}
+                AND send_type = #{userType}
             </if>
             </if>
         </where>
         </where>
         GROUP BY
         GROUP BY
@@ -220,10 +220,10 @@
                 AND create_time <![CDATA[<]]> #{endTime}
                 AND create_time <![CDATA[<]]> #{endTime}
             </if>
             </if>
             <if test="userType != null">
             <if test="userType != null">
-                AND send_type = ${userType}
+                AND send_type = #{userType}
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
-                AND company_id = ${companyId}
+                AND company_id = #{companyId}
             </if>
             </if>
         </where>
         </where>
         GROUP BY company_id
         GROUP BY company_id
@@ -423,10 +423,10 @@
                 AND rpl.create_time <![CDATA[<]]> #{endTime}
                 AND rpl.create_time <![CDATA[<]]> #{endTime}
             </if>
             </if>
             <if test="userType != null">
             <if test="userType != null">
-                and log.send_type = ${userType}
+                and log.send_type = #{userType}
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
-                and log.company_id = ${companyId}
+                and log.company_id = #{companyId}
             </if>
             </if>
         </where>
         </where>
         GROUP BY
         GROUP BY
@@ -462,10 +462,10 @@
                 AND rpl.create_time <![CDATA[<]]> #{endTime}
                 AND rpl.create_time <![CDATA[<]]> #{endTime}
             </if>
             </if>
             <if test="userType != null">
             <if test="userType != null">
-                and log.send_type = ${userType}
+                and log.send_type = #{userType}
             </if>
             </if>
             <if test="companyId != null">
             <if test="companyId != null">
-                and log.company_id = ${companyId}
+                and log.company_id = #{companyId}
             </if>
             </if>
         </where>
         </where>
         group by start_date
         group by start_date
@@ -509,7 +509,7 @@
                 (select COUNT(*) FROM qw_user
                 (select COUNT(*) FROM qw_user
                 <where>
                 <where>
                     <if test="companyId != null">
                     <if test="companyId != null">
-                       AND company_id = ${companyId}
+                       AND company_id = #{companyId}
                     </if>
                     </if>
                 </where>
                 </where>
         ) AS qw_member_num
         ) AS qw_member_num

+ 2 - 2
fs-service/src/main/resources/mapper/statis/FsStatisEveryDayMapper.xml

@@ -144,13 +144,13 @@
             <if test="userIds != null and userIds.length > 0">
             <if test="userIds != null and userIds.length > 0">
                 AND company_user_id IN
                 AND company_user_id IN
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="periodList != null and periodList.length > 0">
             <if test="periodList != null and periodList.length > 0">
                 AND period_id IN
                 AND period_id IN
                 <foreach collection="periodList" open="(" close=")" separator="," item="item">
                 <foreach collection="periodList" open="(" close=")" separator="," item="item">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="startDate != null and endDate != null">
             <if test="startDate != null and endDate != null">

+ 2 - 2
fs-service/src/main/resources/mapper/statis/FsStatisPeriodWatchMapper.xml

@@ -42,13 +42,13 @@
             <if test="userIds != null and userIds.length > 0">
             <if test="userIds != null and userIds.length > 0">
                 AND company_user_id IN
                 AND company_user_id IN
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="periodList != null and periodList.length > 0">
             <if test="periodList != null and periodList.length > 0">
                 AND period_id IN
                 AND period_id IN
                 <foreach collection="periodList" open="(" close=")" separator="," item="item">
                 <foreach collection="periodList" open="(" close=")" separator="," item="item">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="startDate != null and endDate != null">
             <if test="startDate != null and endDate != null">

+ 6 - 6
fs-service/src/main/resources/mapper/statis/FsStatisSalerWatchMapper.xml

@@ -59,7 +59,7 @@
             <if test="userIds != null and userIds.size() > 0">
             <if test="userIds != null and userIds.size() > 0">
                 AND company_user_id IN
                 AND company_user_id IN
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="periodList != null and periodList.size() > 0">
             <if test="periodList != null and periodList.size() > 0">
@@ -117,7 +117,7 @@
             <if test="userIds != null and userIds.size() > 0">
             <if test="userIds != null and userIds.size() > 0">
                 AND company_user_id IN
                 AND company_user_id IN
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="periodList != null and periodList.size() > 0">
             <if test="periodList != null and periodList.size() > 0">
@@ -166,7 +166,7 @@
             <if test="userIds != null and userIds.size() > 0">
             <if test="userIds != null and userIds.size() > 0">
                 AND company_user_id IN
                 AND company_user_id IN
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="periodList != null and periodList.size() > 0">
             <if test="periodList != null and periodList.size() > 0">
@@ -226,7 +226,7 @@
             <if test="userIds != null and userIds.size() > 0">
             <if test="userIds != null and userIds.size() > 0">
                 AND watch.company_user_id IN
                 AND watch.company_user_id IN
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="periodList != null and periodList.size() > 0">
             <if test="periodList != null and periodList.size() > 0">
@@ -353,7 +353,7 @@
             <if test="userIds != null and userIds.size() > 0">
             <if test="userIds != null and userIds.size() > 0">
                 AND company_user_id IN
                 AND company_user_id IN
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="periodList != null and periodList.size() > 0">
             <if test="periodList != null and periodList.size() > 0">
@@ -402,7 +402,7 @@
             <if test="userIds != null and userIds.size() > 0">
             <if test="userIds != null and userIds.size() > 0">
                 AND company_user_id IN
                 AND company_user_id IN
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
                 <foreach collection="userIds" open="(" close=")" separator="," item="item">
-                    ${item}
+                    #{item}
                 </foreach>
                 </foreach>
             </if>
             </if>
             <if test="periodList != null and periodList.size() > 0">
             <if test="periodList != null and periodList.size() > 0">

+ 1 - 1
fs-service/src/main/resources/mapper/store/FsUserCourseCountMapper.xml

@@ -63,7 +63,7 @@
             ifnull ( sum( fs_user_course_count.part_course_count ), 0 ) AS part_course_count,
             ifnull ( sum( fs_user_course_count.part_course_count ), 0 ) AS part_course_count,
             Max( fs_user_course_count.last_watch_date ) AS last_watch_date,
             Max( fs_user_course_count.last_watch_date ) AS last_watch_date,
             Max( fs_user_course_count.complete_watch_date) AS complete_watch_date
             Max( fs_user_course_count.complete_watch_date) AS complete_watch_date
-        from fs_user_course_count where user_id = ${userId}
+        from fs_user_course_count where user_id = #{userId}
     </select>
     </select>
 
 
     <insert id="insertFsUserCourseCount">
     <insert id="insertFsUserCourseCount">