管理端知识库无数据修改
This commit is contained in:
parent
7dbf152a62
commit
f959cbc0a0
@ -116,6 +116,9 @@ public class LabelFieldInfoController extends BaseController {
|
|||||||
return toAjax(labelFieldInfoService.deleteLabelFieldInfoByIds(ids));
|
return toAjax(labelFieldInfoService.deleteLabelFieldInfoByIds(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务类型分组
|
||||||
|
*/
|
||||||
@GetMapping("/taskTypeGrouping")
|
@GetMapping("/taskTypeGrouping")
|
||||||
public AjaxResult taskTypeGrouping() {
|
public AjaxResult taskTypeGrouping() {
|
||||||
return labelFieldInfoService.taskTypeGrouping();
|
return labelFieldInfoService.taskTypeGrouping();
|
||||||
|
|||||||
@ -181,14 +181,25 @@ public class LabelFieldInfoServiceImpl implements ILabelFieldInfoService {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询字段信息
|
||||||
|
*
|
||||||
|
* @return AjaxResult
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult taskTypeGrouping() {
|
public AjaxResult taskTypeGrouping() {
|
||||||
|
//查询任务类型
|
||||||
List<TaskTypeDictVO> taskTypeDictList = taskTypeDictMapper.selectTaskTypeDicts();
|
List<TaskTypeDictVO> taskTypeDictList = taskTypeDictMapper.selectTaskTypeDicts();
|
||||||
List<Long> ids = taskTypeDictList.stream().filter(Objects::nonNull).map(TaskTypeDictVO::getTaskTypeId).filter(Objects::nonNull).collect(Collectors.toList());
|
List<Long> ids = taskTypeDictList.stream().filter(Objects::nonNull).map(TaskTypeDictVO::getTaskTypeId).filter(Objects::nonNull).collect(Collectors.toList());
|
||||||
|
//查询细分类型
|
||||||
|
if (CollectionUtils.isEmpty(taskTypeDictList)) {
|
||||||
|
return AjaxResult.success(taskTypeDictList);
|
||||||
|
}
|
||||||
List<TaskPartitionDict> taskPartitionDicts = taskPartitionDictMapper.selectTaskPartitionList(ids);
|
List<TaskPartitionDict> taskPartitionDicts = taskPartitionDictMapper.selectTaskPartitionList(ids);
|
||||||
if (CollectionUtils.isEmpty(taskPartitionDicts)) {
|
if (CollectionUtils.isEmpty(taskPartitionDicts)) {
|
||||||
return AjaxResult.success(taskPartitionDicts);
|
return AjaxResult.success(taskPartitionDicts);
|
||||||
}
|
}
|
||||||
|
//组装
|
||||||
for (TaskTypeDictVO taskTypeDictVO : taskTypeDictList) {
|
for (TaskTypeDictVO taskTypeDictVO : taskTypeDictList) {
|
||||||
List<TaskPartitionDict> collect = taskPartitionDicts.stream().filter(Objects::nonNull).filter(item -> Objects.nonNull(item.getTaskTypeId()) && taskTypeDictVO.getTaskTypeId().equals(item.getTaskTypeId())).collect(Collectors.toList());
|
List<TaskPartitionDict> collect = taskPartitionDicts.stream().filter(Objects::nonNull).filter(item -> Objects.nonNull(item.getTaskTypeId()) && taskTypeDictVO.getTaskTypeId().equals(item.getTaskTypeId())).collect(Collectors.toList());
|
||||||
if (CollectionUtils.isNotEmpty(collect)) {
|
if (CollectionUtils.isNotEmpty(collect)) {
|
||||||
|
|||||||
@ -156,7 +156,7 @@
|
|||||||
<!-- 数据范围过滤 -->
|
<!-- 数据范围过滤 -->
|
||||||
${params.dataScope}
|
${params.dataScope}
|
||||||
</where>
|
</where>
|
||||||
group by wt.id order by wt.create_time DESC,wtst.create_time DESC
|
group by wt.id,wtst.id order by wt.create_time DESC,wtst.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
<select id="selectWechatTemplateDtoById" resultMap="WechatTemplateVOResultMap">
|
<select id="selectWechatTemplateDtoById" resultMap="WechatTemplateVOResultMap">
|
||||||
select wt.id,
|
select wt.id,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user