Commit 267eb0a8 by 徐高华

群发

parent 5084c1f5
......@@ -14,7 +14,7 @@ public class ChatHmSearchQDTO implements Serializable {
private String enterpriseId;
private String searchParams;
// 1有效 2作废
private Integer status = 1;
private Integer status ;
private Long linkId;
private List<Long> chatHmIdList;
......
......@@ -27,7 +27,6 @@
<result column="send_count" property="sendCount" />
<result column="success_chat_count" property="successChatCount" />
<result column="total_chat_count" property="totalChatCount" />
<result column="delete_flag" property="deleteFlag" />
<result column="send_flag" property="sendFlag" />
</resultMap>
<sql id="Base_Column_List">
......@@ -52,7 +51,7 @@
send_count,
success_chat_count,
total_chat_count ,
wx_enterprise_id , enterprise_id , send_flag , delete_flag
wx_enterprise_id , enterprise_id , send_flag
</sql>
<!-- ===================== 新增 ======================== -->
<insert id="insert"
......@@ -156,23 +155,19 @@
=#{wxEnterpriseId}
and enterprise_id = #{enterpriseId} and delete_flag = 0
<if test="null != status and status==1">
and start_time <![CDATA[<= ]]>
now() and end_time >= now()
and start_time <![CDATA[<= ]]> now() and end_time >= now()
</if>
<if test="null != status and status==2">
and start_time > now()
</if>
<if test="null != status and status==3">
and end_time <![CDATA[<]]>
now()
and end_time <![CDATA[<]]> now()
</if>
<if test="null != searchParams">
and name like '%#{searchParams}%'
and name like '%${searchParams}%'
</if>
<if test="null != startDate">
and create_time <![CDATA[>=]]>
#{startDate} and create_time <![CDATA[<=]]>
#{endDate}
and create_time <![CDATA[>=]]> #{startDate} and create_time <![CDATA[<=]]> #{endDate}
</if>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment