Kaynağa Gözat

销售后台营期查询修改

15376779826 1 hafta önce
ebeveyn
işleme
82e38e5f03

+ 3 - 3
fs-service/src/main/resources/mapper/course/FsUserCoursePeriodMapper.xml

@@ -72,10 +72,10 @@
             <if test="trainingCampId != null"> and fs_user_course_period.training_camp_id = #{trainingCampId}</if>
             <if test="periodName != null  and periodName != ''"> and period_name like concat('%', #{periodName}, '%')</if>
             <if test="companyIdList != null and companyIdList.size() > 0 ">
-                and fs_user_course_period.company_id in
+                and
                 <foreach item="companyId" index="index" collection="companyIdList"
-                         open="(" separator="," close=")">
-                    #{companyId}
+                         open="(" separator="or" close=")">
+                    FIND_IN_SET(#{companyId}, fs_user_course_period.company_id)
                 </foreach>
             </if>
             <if test="periodStartingTime != null "> and period_starting_time &gt;= #{periodStartingTime}</if>