Commit f8a351c7 by 徐高华

企微托管

parent 70e02fe5
...@@ -163,4 +163,8 @@ public interface GroupChatApiService { ...@@ -163,4 +163,8 @@ public interface GroupChatApiService {
public ServiceResponse<GroupChatDTO> getByWxChatId(String wxEnterpriseId, String wxChatId); public ServiceResponse<GroupChatDTO> getByWxChatId(String wxEnterpriseId, String wxChatId);
public GroupChatUserDTO getGroupUserInfo(Long groupChatId , String externalUserId) ;
} }
...@@ -32,6 +32,8 @@ public interface GroupChatUserMapper { ...@@ -32,6 +32,8 @@ public interface GroupChatUserMapper {
public TabGroupChatUser selectById(Long chatUserId); public TabGroupChatUser selectById(Long chatUserId);
public TabGroupChatUser getGroupUserInfo(@Param("groupChatId") Long groupChatId , @Param("userId") String externalUserId) ;
public TabGroupChatUser selectByUserIdAndChatId(@Param("groupChatId") Long groupChatId, public TabGroupChatUser selectByUserIdAndChatId(@Param("groupChatId") Long groupChatId,
@Param("userId") String userId); @Param("userId") String userId);
......
...@@ -12,8 +12,10 @@ import com.gic.enterprise.api.dto.StoreDTO; ...@@ -12,8 +12,10 @@ import com.gic.enterprise.api.dto.StoreDTO;
import com.gic.enterprise.api.service.StoreService; import com.gic.enterprise.api.service.StoreService;
import com.gic.haoban.manage.service.dao.mapper.TabHaobanClerkMainStoreRelatedMapper; import com.gic.haoban.manage.service.dao.mapper.TabHaobanClerkMainStoreRelatedMapper;
import com.gic.haoban.manage.service.dao.mapper.chat.GroupChatMapper; import com.gic.haoban.manage.service.dao.mapper.chat.GroupChatMapper;
import com.gic.haoban.manage.service.dao.mapper.chat.GroupChatUserMapper;
import com.gic.haoban.manage.service.entity.TabHaobanClerkMainStoreRelated; import com.gic.haoban.manage.service.entity.TabHaobanClerkMainStoreRelated;
import com.gic.haoban.manage.service.entity.chat.TabGroupChat; import com.gic.haoban.manage.service.entity.chat.TabGroupChat;
import com.gic.haoban.manage.service.entity.chat.TabGroupChatUser;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.LogManager;
...@@ -73,6 +75,8 @@ public class GroupChatApiServiceImpl implements GroupChatApiService { ...@@ -73,6 +75,8 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
private StoreService storeService ; private StoreService storeService ;
@Autowired @Autowired
private GroupChatMapper groupChatMapper ; private GroupChatMapper groupChatMapper ;
@Autowired
private GroupChatUserMapper groupChatUserMapper ;
@Override @Override
public ServiceResponse<Page<GroupChatDTO>> listPage(GroupChatSearchQDTO qdto, BasePageInfo basePageInfo) { public ServiceResponse<Page<GroupChatDTO>> listPage(GroupChatSearchQDTO qdto, BasePageInfo basePageInfo) {
...@@ -301,4 +305,14 @@ public class GroupChatApiServiceImpl implements GroupChatApiService { ...@@ -301,4 +305,14 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
GroupChatDTO dto = EntityUtil.changeEntityByJSON(GroupChatDTO.class,groupChat) ; GroupChatDTO dto = EntityUtil.changeEntityByJSON(GroupChatDTO.class,groupChat) ;
return ServiceResponse.success(dto); return ServiceResponse.success(dto);
} }
@Override
public GroupChatUserDTO getGroupUserInfo(Long groupChatId, String externalUserId) {
TabGroupChatUser tab = this.groupChatUserMapper.getGroupUserInfo(groupChatId,externalUserId) ;
if(null != tab) {
GroupChatUserDTO dto = EntityUtil.changeEntityByJSON(GroupChatUserDTO.class,tab) ;
return dto ;
}
return null;
}
} }
...@@ -310,4 +310,9 @@ ...@@ -310,4 +310,9 @@
and user_quit_time <![CDATA[<=]]> #{end} and status_flag = 2 group by quit_staff_id and user_quit_time <![CDATA[<=]]> #{end} and status_flag = 2 group by quit_staff_id
</select> </select>
<select id="getGroupUserInfo" resultMap="result-map-tabHaobanGroupChatUser">
select <include refid="Base_Column_List"/> from tab_haoban_group_chat_user where group_chat_id = #{groupChatId} and user_id = #{userId}
and delete_flag = 0 and status_flag = 1 limit 1
</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