提交 34747ca4 作者: yanxin

专题绑定关键词组bug修改

上级 bde157fd
...@@ -428,12 +428,13 @@ public class SubjectManageController { ...@@ -428,12 +428,13 @@ public class SubjectManageController {
/** /**
* 专题绑定关键词组列表-专题配置页 * 专题绑定关键词组列表-专题配置页
* *
* @param subjectId 专题id * @param id 专题id
* @param bindingType 词组类型
* @return * @return
*/ */
@GetMapping(value = "/bindKeyWordsList") @GetMapping(value = "/bindKeyWordsList")
public Result<?> bindKeyWordsList(@RequestParam String subjectId) { public Result<?> bindKeyWordsList(@RequestParam(name = "id") String id,@RequestParam(name = "bindingType",required = false) String bindingType) {
List<KeyWordsPage> bindKeyWordsList = subjectKeywordsMapService.bindKeyWordsList(subjectId); List<KeyWordsPage> bindKeyWordsList = subjectKeywordsMapService.bindKeyWordsList(id,bindingType);
return Result.OK(bindKeyWordsList); return Result.OK(bindKeyWordsList);
} }
......
...@@ -1337,7 +1337,7 @@ public class EsService { ...@@ -1337,7 +1337,7 @@ public class EsService {
subjectIdList.add(subjectId); subjectIdList.add(subjectId);
List<String> infoSourceIdList = subjectInfoSourceMapService.subjectRealBindInfoSourceList(subjectIdList); List<String> infoSourceIdList = subjectInfoSourceMapService.subjectRealBindInfoSourceList(subjectIdList);
//查询专题绑定的关键词组 //查询专题绑定的关键词组
List<KeyWordsPage> list = subjectKeywordsMapService.bindKeyWordsList(subjectId); List<KeyWordsPage> list = subjectKeywordsMapService.bindKeyWordsList(subjectId, "1");
for (KeyWordsPage keyWordsPage : list) { for (KeyWordsPage keyWordsPage : list) {
infoSourceIdList.add(keyWordsPage.getId()); infoSourceIdList.add(keyWordsPage.getId());
} }
......
...@@ -2,6 +2,7 @@ package com.zzsn.event.mapper; ...@@ -2,6 +2,7 @@ package com.zzsn.event.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzsn.event.entity.ClbLabelInfoSourceMap; import com.zzsn.event.entity.ClbLabelInfoSourceMap;
import org.apache.ibatis.annotations.Mapper;
/** /**
* <p> * <p>
...@@ -11,6 +12,7 @@ import com.zzsn.event.entity.ClbLabelInfoSourceMap; ...@@ -11,6 +12,7 @@ import com.zzsn.event.entity.ClbLabelInfoSourceMap;
* @author obcy * @author obcy
* @since 2025-01-03 * @since 2025-01-03
*/ */
@Mapper
public interface ClbLabelInfoSourceMapMapper extends BaseMapper<ClbLabelInfoSourceMap> { public interface ClbLabelInfoSourceMapMapper extends BaseMapper<ClbLabelInfoSourceMap> {
} }
...@@ -27,7 +27,7 @@ public interface SubjectKeywordsMapMapper extends BaseMapper<SubjectKeywordsMap> ...@@ -27,7 +27,7 @@ public interface SubjectKeywordsMapMapper extends BaseMapper<SubjectKeywordsMap>
void deleteBySubjectId (@Param("subjectId") String subjectId); void deleteBySubjectId (@Param("subjectId") String subjectId);
List<KeyWordsPage> bindKeyWordsList(@Param("subjectId") String subjectId); List<KeyWordsPage> bindKeyWordsList(@Param("subjectId") String subjectId, @Param("bindingType")String bindingType);
List<SearchWordVO> subjectBindWordInfo(@Param("subjectId") String subjectId); List<SearchWordVO> subjectBindWordInfo(@Param("subjectId") String subjectId);
} }
...@@ -57,6 +57,9 @@ ...@@ -57,6 +57,9 @@
LEFT JOIN keywords_type_map c ON b.id = c.keywords_id LEFT JOIN keywords_type_map c ON b.id = c.keywords_id
LEFT JOIN keywords_type d ON d.id = c.type_id LEFT JOIN keywords_type d ON d.id = c.type_id
where a.subject_id = #{subjectId} where a.subject_id = #{subjectId}
<if test="bindingType != null and bindingType != ''">
and a.binding_type = #{bindingType}
</if>
group by b.id group by b.id
</select> </select>
......
...@@ -44,11 +44,12 @@ public interface ISubjectKeywordsMapService extends IService<SubjectKeywordsMap> ...@@ -44,11 +44,12 @@ public interface ISubjectKeywordsMapService extends IService<SubjectKeywordsMap>
/** /**
* 专题绑定关键词组集合-专题配置页 * 专题绑定关键词组集合-专题配置页
* *
* @param subjectId 专题id * @param subjectId 专题id
* @param bindingType
* @author lkg * @author lkg
* @date 2024/12/23 * @date 2024/12/23
*/ */
List<KeyWordsPage> bindKeyWordsList(String subjectId); List<KeyWordsPage> bindKeyWordsList(String subjectId, String bindingType);
List<SearchWordVO> subjectBindWordInfo(String subjectId); List<SearchWordVO> subjectBindWordInfo(String subjectId);
} }
...@@ -43,8 +43,8 @@ public class SubjectKeywordsMapServiceImpl extends ServiceImpl<SubjectKeywordsMa ...@@ -43,8 +43,8 @@ public class SubjectKeywordsMapServiceImpl extends ServiceImpl<SubjectKeywordsMa
} }
@Override @Override
public List<KeyWordsPage> bindKeyWordsList(String subjectId) { public List<KeyWordsPage> bindKeyWordsList(String subjectId, String bindingType) {
return baseMapper.bindKeyWordsList(subjectId); return baseMapper.bindKeyWordsList(subjectId,bindingType);
} }
@Override @Override
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论