|
|
@@ -129,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
) t
|
|
|
GROUP BY t.type
|
|
|
</select>
|
|
|
+
|
|
|
<select id="selectCompanySmsLogsListQueryYsytg" resultType="com.fs.company.vo.CompanySmsLogsQueryVO">
|
|
|
SELECT
|
|
|
csl.logs_id AS logsId,
|
|
|
@@ -137,6 +138,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
csl.temp_code AS tempCode,
|
|
|
csl.phone AS phone,
|
|
|
csl.number AS number,
|
|
|
+ csl.status AS status,
|
|
|
csl.type AS type,
|
|
|
csl.content AS content,
|
|
|
<!-- 根据optionType动态选择关联字段 -->
|
|
|
@@ -171,8 +173,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="dto.companyId != null">
|
|
|
AND csl.company_id = #{dto.companyId}
|
|
|
</if>
|
|
|
- <if test="dto.companyUserId != null">
|
|
|
- AND csl.company_user_id = #{dto.companyUserId}
|
|
|
+ <if test="dto.status != null">
|
|
|
+ AND csl.status = #{dto.status}
|
|
|
+ </if>
|
|
|
+ <if test="dto.companyUserName != null and dto.companyUserName != ''">
|
|
|
+ AND cu.nick_name LIKE CONCAT('%', #{dto.companyUserName}, '%')
|
|
|
</if>
|
|
|
<if test="dto.phone != null and dto.phone != ''">
|
|
|
AND csl.phone LIKE CONCAT('%', #{dto.phone}, '%')
|
|
|
@@ -180,7 +185,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="dto.tempCode != null and dto.tempCode != ''">
|
|
|
AND csl.temp_code = #{dto.tempCode}
|
|
|
</if>
|
|
|
- <if test="dto.type != null">
|
|
|
+ <if test="dto.type != null and dto.type != ''">
|
|
|
AND csl.type = #{dto.type}
|
|
|
</if>
|
|
|
<if test="dto.beginCreateTime != null">
|
|
|
@@ -189,12 +194,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="dto.endCreateTime != null">
|
|
|
AND csl.create_time <= #{dto.endCreateTime}
|
|
|
</if>
|
|
|
- <if test="dto.userIds != null and dto.userIds.size() > 0">
|
|
|
- AND csl.company_user_id IN
|
|
|
- <foreach collection="dto.userIds" item="userId" open="(" separator="," close=")">
|
|
|
- #{userId}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
<!-- 课程链接类型特有查询条件 -->
|
|
|
<if test="dto.optionType == 1">
|
|
|
<if test="dto.courseId != null">
|