Commit a5934fd8 by 徐高华

托管群

parent 75b65ccb
...@@ -165,6 +165,12 @@ public interface GroupChatApiService { ...@@ -165,6 +165,12 @@ public interface GroupChatApiService {
public GroupChatUserDTO getGroupUserInfo(Long groupChatId , String externalUserId) ; public GroupChatUserDTO getGroupUserInfo(Long groupChatId , String externalUserId) ;
/**
* 自动群群发的id
* @param enterpriseId
* @param staffId
* @return
*/
public List<String> listOpenGroupChatDK(String enterpriseId , String staffId) ;
} }
...@@ -75,4 +75,6 @@ public interface GroupChatMapper { ...@@ -75,4 +75,6 @@ public interface GroupChatMapper {
@Param("force") int force); @Param("force") int force);
public List<GroupChatDTO> listChangeOwner() ; public List<GroupChatDTO> listChangeOwner() ;
List<String> listOpenGroupChatDK(@Param("enterpriseId")String enterpriseId, @Param("staffId") String staffId);
} }
\ No newline at end of file
...@@ -315,4 +315,9 @@ public class GroupChatApiServiceImpl implements GroupChatApiService { ...@@ -315,4 +315,9 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
} }
return null; return null;
} }
@Override
public List<String> listOpenGroupChatDK(String enterpriseId, String staffId) {
return this.groupChatMapper.listOpenGroupChatDK(enterpriseId,staffId);
}
} }
...@@ -364,5 +364,9 @@ ...@@ -364,5 +364,9 @@
<select id="listChangeOwner" resultType="com.gic.haoban.manage.api.dto.chat.GroupChatDTO"> <select id="listChangeOwner" resultType="com.gic.haoban.manage.api.dto.chat.GroupChatDTO">
select wx_enterprise_id wxEnterpriseId , staff_id staffId FROM tab_haoban_group_chat WHERE update_time > DATE_ADD(NOW(),INTERVAL -7 DAY) AND chat_status = 1 and staff_id is not null select wx_enterprise_id wxEnterpriseId , staff_id staffId FROM tab_haoban_group_chat WHERE update_time > DATE_ADD(NOW(),INTERVAL -7 DAY) AND chat_status = 1 and staff_id is not null
</select> </select>
<select id="listOpenGroupChatDK" resultType="java.lang.String">
select wx_chat_id_dk from tab_haoban_group_chat where enterprise_id=#{enterpriseId} and staff_id = #{staffId} and delete_flag=0 and chat_status != 4 and wx_chat_id_dk is not null
</select>
</mapper> </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