Commit e0db7913 by 徐高华

查询

parent f194a676
...@@ -21,6 +21,15 @@ public class GroupChatSearchQDTO implements Serializable { ...@@ -21,6 +21,15 @@ public class GroupChatSearchQDTO implements Serializable {
private List<String> staffIdList; private List<String> staffIdList;
// 群活码id // 群活码id
private Long chatHmId ; private Long chatHmId ;
private String staffId ;
public String getStaffId() {
return staffId;
}
public void setStaffId(String staffId) {
this.staffId = staffId;
}
public Long getChatHmId() { public Long getChatHmId() {
return chatHmId; return chatHmId;
......
...@@ -190,6 +190,9 @@ ...@@ -190,6 +190,9 @@
<select id="list" resultMap="result-map-tabHaobanGroupChat"> <select id="list" resultMap="result-map-tabHaobanGroupChat">
select <include refid="Base_Column_List" /> from tab_haoban_group_chat where wx_enterprise_id=#{wxEnterpriseId} and delete_flag = 0 select <include refid="Base_Column_List" /> from tab_haoban_group_chat where wx_enterprise_id=#{wxEnterpriseId} and delete_flag = 0
<if test="null != staffId">
and staff_id = #{staffId}
</if>
</select> </select>
<update id="updateChatEnterpriseId"> <update id="updateChatEnterpriseId">
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<select id="listOwner" parameterType="com.gic.haoban.manage.api.dto.qdto.chat.OwnerSearchQDTO" resultType="com.gic.haoban.manage.api.dto.chat.GroupChatOwnerDTO"> <select id="listOwner" parameterType="com.gic.haoban.manage.api.dto.qdto.chat.OwnerSearchQDTO" resultType="com.gic.haoban.manage.api.dto.chat.GroupChatOwnerDTO">
SELECT a.staff_id staffId , b.`staff_name` staffName SELECT a.staff_id staffId , b.`staff_name` staffName
FROM tab_haoban_group_chat_owner a LEFT JOIN tab_haoban_staff b ON a.`staff_id` = b.`staff_id` FROM tab_haoban_group_chat_owner a LEFT JOIN tab_haoban_staff b ON a.`staff_id` = b.`staff_id`
where wx_enterprise_id=#{wxEnterpriseId} where a.wx_enterprise_id=#{wxEnterpriseId}
<if test="null != searchParams"> <if test="null != searchParams">
and b.staff_name like '%${searchParams}%' and b.staff_name like '%${searchParams}%'
</if> </if>
......
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