Commit 70e02fe5 by 徐高华

企微托管

parent 94b3d5d5
......@@ -160,4 +160,7 @@ public interface GroupChatApiService {
*/
public ServiceResponse<List<GroupChatDTO>> listChatByIdList(String wxEnterpriseId, List<Long> groupChatIdList);
public ServiceResponse<GroupChatDTO> getByWxChatId(String wxEnterpriseId, String wxChatId);
}
......@@ -11,7 +11,9 @@ import java.util.stream.Collectors;
import com.gic.enterprise.api.dto.StoreDTO;
import com.gic.enterprise.api.service.StoreService;
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.entity.TabHaobanClerkMainStoreRelated;
import com.gic.haoban.manage.service.entity.chat.TabGroupChat;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
......@@ -69,6 +71,8 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
private TabHaobanClerkMainStoreRelatedMapper clerkMainStoreRelatedMapper ;
@Autowired
private StoreService storeService ;
@Autowired
private GroupChatMapper groupChatMapper ;
@Override
public ServiceResponse<Page<GroupChatDTO>> listPage(GroupChatSearchQDTO qdto, BasePageInfo basePageInfo) {
......@@ -284,4 +288,17 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
}
return ServiceResponse.success();
}
@Override
public ServiceResponse<GroupChatDTO> getByWxChatId(String wxEnterpriseId, String wxChatId) {
TabGroupChat groupChat = this.groupChatMapper.selectByWxChatId(wxEnterpriseId, wxChatId);
if(null == groupChat) {
groupChat = this.groupChatMapper.selectByWxChatIdDk(wxEnterpriseId,wxChatId) ;
}
if(null == groupChat) {
return ServiceResponse.success(null) ;
}
GroupChatDTO dto = EntityUtil.changeEntityByJSON(GroupChatDTO.class,groupChat) ;
return ServiceResponse.success(dto);
}
}
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