|
@@ -541,4 +541,28 @@
|
|
<select id="getQwSopInfoById" resultType="com.fs.sop.domain.QwSop">
|
|
<select id="getQwSopInfoById" resultType="com.fs.sop.domain.QwSop">
|
|
SELECT id,filter_mode,chat_id FROM qw_sop where id IN <foreach collection="ids" item="item" index="index" open="(" separator="," close=")">#{item}</foreach>
|
|
SELECT id,filter_mode,chat_id FROM qw_sop where id IN <foreach collection="ids" item="item" index="index" open="(" separator="," close=")">#{item}</foreach>
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+ <select id="selectAllQwSopInfo" parameterType="QwSop" resultMap="QwSopResult">
|
|
|
|
+ <include refid="selectQwSopVo"/>
|
|
|
|
+ <where>
|
|
|
|
+ <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
|
+ <if test="status != null "> and status = #{status}</if>
|
|
|
|
+ <if test="type != null "> and type = #{type}</if>
|
|
|
|
+ <if test="id != null "> and id = #{id}</if>
|
|
|
|
+ <if test="companyId != null "> and company_id = #{companyId}</if>
|
|
|
|
+ <if test="qwUserIds != null and qwUserIds != ''"> and FIND_IN_SET(#{qwUserIds}, qw_user_ids) > 0</if>
|
|
|
|
+ <if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
|
|
|
|
+ <if test="corpId != null and corpId != ''"> and corp_id = #{corpId}</if>
|
|
|
|
+ <if test="createTime != null "> and DATE(create_time) = #{createTime}</if>
|
|
|
|
+ <if test="sendType != null "> and send_type = #{sendType}</if>
|
|
|
|
+ <if test="expiryTime != null "> and expiry_time = #{expiryTime}</if>
|
|
|
|
+ <if test="isAutoSop != null "> and is_auto_sop = #{isAutoSop}</if>
|
|
|
|
+ <if test="autoSopTime != null "> and auto_sop_time = #{autoSopTime}</if>
|
|
|
|
+ <if test="minSend != null "> and min_send = #{minSend}</if>
|
|
|
|
+ <if test="maxSend != null "> and max_send = #{maxSend}</if>
|
|
|
|
+ <if test="stopTime != null "> and stop_time = #{stopTime}</if>
|
|
|
|
+ </where>
|
|
|
|
+ order by create_time desc
|
|
|
|
+ </select>
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|