标签修改
This commit is contained in:
parent
86a96c3769
commit
8775d6fe01
@ -10,7 +10,6 @@ import com.xinelu.manage.domain.labelfieldinfo.LabelFieldInfo;
|
|||||||
import com.xinelu.manage.dto.labelfieldinfo.LabelFieldInfoAddDTO;
|
import com.xinelu.manage.dto.labelfieldinfo.LabelFieldInfoAddDTO;
|
||||||
import com.xinelu.manage.service.labelfieldinfo.ILabelFieldInfoService;
|
import com.xinelu.manage.service.labelfieldinfo.ILabelFieldInfoService;
|
||||||
import com.xinelu.manage.vo.labelfieldinfo.LabelFieldTreeVO;
|
import com.xinelu.manage.vo.labelfieldinfo.LabelFieldTreeVO;
|
||||||
import com.xinelu.manage.vo.labelfieldinfo.LabelFieldVO;
|
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
@ -116,4 +115,9 @@ public class LabelFieldInfoController extends BaseController {
|
|||||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
return toAjax(labelFieldInfoService.deleteLabelFieldInfoByIds(ids));
|
return toAjax(labelFieldInfoService.deleteLabelFieldInfoByIds(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/taskTypeGrouping")
|
||||||
|
public AjaxResult taskTypeGrouping() {
|
||||||
|
return labelFieldInfoService.taskTypeGrouping();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
package com.xinelu.manage.mapper.taskpartitiondict;
|
package com.xinelu.manage.mapper.taskpartitiondict;
|
||||||
|
|
||||||
import com.xinelu.manage.domain.taskpartitiondict.TaskPartitionDict;
|
import com.xinelu.manage.domain.taskpartitiondict.TaskPartitionDict;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -59,4 +60,6 @@ public interface TaskPartitionDictMapper {
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
int deleteTaskPartitionDictByIds(Long[] ids);
|
int deleteTaskPartitionDictByIds(Long[] ids);
|
||||||
|
|
||||||
|
List<TaskPartitionDict> selectTaskPartitionList( List<Long> ids);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
package com.xinelu.manage.mapper.tasktypedict;
|
package com.xinelu.manage.mapper.tasktypedict;
|
||||||
|
|
||||||
import com.xinelu.manage.domain.tasktypedict.TaskTypeDict;
|
import com.xinelu.manage.domain.tasktypedict.TaskTypeDict;
|
||||||
|
import com.xinelu.manage.vo.tasktypedict.TaskTypeDictVO;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -59,4 +60,11 @@ public interface TaskTypeDictMapper {
|
|||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
public int deleteTaskTypeDictByIds(Long[] ids);
|
public int deleteTaskTypeDictByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询任务类型字典列表
|
||||||
|
*
|
||||||
|
* @return 任务类型字典集合
|
||||||
|
*/
|
||||||
|
List<TaskTypeDictVO> selectTaskTypeDicts();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,6 @@ import com.xinelu.common.core.domain.AjaxResult;
|
|||||||
import com.xinelu.manage.domain.labelfieldinfo.LabelFieldInfo;
|
import com.xinelu.manage.domain.labelfieldinfo.LabelFieldInfo;
|
||||||
import com.xinelu.manage.dto.labelfieldinfo.LabelFieldInfoAddDTO;
|
import com.xinelu.manage.dto.labelfieldinfo.LabelFieldInfoAddDTO;
|
||||||
import com.xinelu.manage.vo.labelfieldinfo.LabelFieldTreeVO;
|
import com.xinelu.manage.vo.labelfieldinfo.LabelFieldTreeVO;
|
||||||
import com.xinelu.manage.vo.labelfieldinfo.LabelFieldVO;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -75,4 +74,11 @@ public interface ILabelFieldInfoService {
|
|||||||
* 批量新增标签字段信息
|
* 批量新增标签字段信息
|
||||||
*/
|
*/
|
||||||
int insertLabelFieldInfoList(LabelFieldInfoAddDTO labelFieldInfoAddDTO);
|
int insertLabelFieldInfoList(LabelFieldInfoAddDTO labelFieldInfoAddDTO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询任务类型
|
||||||
|
*
|
||||||
|
* @return AjaxResult
|
||||||
|
*/
|
||||||
|
AjaxResult taskTypeGrouping();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,18 @@
|
|||||||
package com.xinelu.manage.service.labelfieldinfo.impl;
|
package com.xinelu.manage.service.labelfieldinfo.impl;
|
||||||
|
|
||||||
|
import com.xinelu.common.core.domain.AjaxResult;
|
||||||
import com.xinelu.common.exception.ServiceException;
|
import com.xinelu.common.exception.ServiceException;
|
||||||
import com.xinelu.common.utils.SecurityUtils;
|
import com.xinelu.common.utils.SecurityUtils;
|
||||||
import com.xinelu.manage.domain.labelfieldinfo.LabelFieldInfo;
|
import com.xinelu.manage.domain.labelfieldinfo.LabelFieldInfo;
|
||||||
|
import com.xinelu.manage.domain.taskpartitiondict.TaskPartitionDict;
|
||||||
import com.xinelu.manage.dto.labelfieldinfo.LabelFieldInfoAddDTO;
|
import com.xinelu.manage.dto.labelfieldinfo.LabelFieldInfoAddDTO;
|
||||||
import com.xinelu.manage.mapper.labelfieldcontent.LabelFieldContentMapper;
|
|
||||||
import com.xinelu.manage.mapper.labelfieldinfo.LabelFieldInfoMapper;
|
import com.xinelu.manage.mapper.labelfieldinfo.LabelFieldInfoMapper;
|
||||||
|
import com.xinelu.manage.mapper.taskpartitiondict.TaskPartitionDictMapper;
|
||||||
|
import com.xinelu.manage.mapper.tasktypedict.TaskTypeDictMapper;
|
||||||
import com.xinelu.manage.service.labelfieldinfo.ILabelFieldInfoService;
|
import com.xinelu.manage.service.labelfieldinfo.ILabelFieldInfoService;
|
||||||
import com.xinelu.manage.vo.labelfieldinfo.LabelFieldTreeVO;
|
import com.xinelu.manage.vo.labelfieldinfo.LabelFieldTreeVO;
|
||||||
import com.xinelu.manage.vo.labelfieldinfo.LabelFieldVO;
|
import com.xinelu.manage.vo.labelfieldinfo.LabelFieldVO;
|
||||||
|
import com.xinelu.manage.vo.tasktypedict.TaskTypeDictVO;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.apache.commons.lang3.ObjectUtils;
|
import org.apache.commons.lang3.ObjectUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
@ -32,9 +36,10 @@ import java.util.stream.Collectors;
|
|||||||
public class LabelFieldInfoServiceImpl implements ILabelFieldInfoService {
|
public class LabelFieldInfoServiceImpl implements ILabelFieldInfoService {
|
||||||
@Resource
|
@Resource
|
||||||
private LabelFieldInfoMapper labelFieldInfoMapper;
|
private LabelFieldInfoMapper labelFieldInfoMapper;
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private LabelFieldContentMapper labelFieldContentMapper;
|
private TaskTypeDictMapper taskTypeDictMapper;
|
||||||
|
@Resource
|
||||||
|
private TaskPartitionDictMapper taskPartitionDictMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询标签字段信息
|
* 查询标签字段信息
|
||||||
@ -172,4 +177,21 @@ public class LabelFieldInfoServiceImpl implements ILabelFieldInfoService {
|
|||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AjaxResult taskTypeGrouping() {
|
||||||
|
List<TaskTypeDictVO> taskTypeDictList = taskTypeDictMapper.selectTaskTypeDicts();
|
||||||
|
List<Long> ids = taskTypeDictList.stream().filter(Objects::nonNull).map(TaskTypeDictVO::getTaskTypeId).filter(Objects::nonNull).collect(Collectors.toList());
|
||||||
|
List<TaskPartitionDict> taskPartitionDicts = taskPartitionDictMapper.selectTaskPartitionList(ids);
|
||||||
|
if (CollectionUtils.isEmpty(taskPartitionDicts)) {
|
||||||
|
return AjaxResult.success(taskPartitionDicts);
|
||||||
|
}
|
||||||
|
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());
|
||||||
|
if (CollectionUtils.isNotEmpty(collect)) {
|
||||||
|
taskTypeDictVO.setTaskPartitionDictList(collect);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return AjaxResult.success(taskTypeDictList);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,4 +27,6 @@ public class SpecialDiseaseNodeVO extends SpecialDiseaseNode {
|
|||||||
private String taskStatusName;
|
private String taskStatusName;
|
||||||
|
|
||||||
private String taskSubdivisiontemplateType;
|
private String taskSubdivisiontemplateType;
|
||||||
|
|
||||||
|
private String flowScheme;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,30 @@
|
|||||||
|
package com.xinelu.manage.vo.tasktypedict;
|
||||||
|
|
||||||
|
import com.xinelu.manage.domain.taskpartitiondict.TaskPartitionDict;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务类型字典对象 task_type_dict
|
||||||
|
*
|
||||||
|
* @author xinelu
|
||||||
|
* @date 2024-03-11
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class TaskTypeDictVO {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键id
|
||||||
|
*/
|
||||||
|
private Long taskTypeId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务类型名称
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "任务类型名称")
|
||||||
|
private String taskTypeName;
|
||||||
|
|
||||||
|
private List<TaskPartitionDict> taskPartitionDictList;
|
||||||
|
}
|
||||||
@ -125,6 +125,7 @@
|
|||||||
<result property="taskSubdivisionName" column="taskSubdivisionName"/>
|
<result property="taskSubdivisionName" column="taskSubdivisionName"/>
|
||||||
<result property="taskStatusName" column="taskStatusName"/>
|
<result property="taskStatusName" column="taskStatusName"/>
|
||||||
<result property="nodeContent" column="node_content"/>
|
<result property="nodeContent" column="node_content"/>
|
||||||
|
<result property="flowScheme" column="flowScheme"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectSpecialDiseaseNodeVo">
|
<sql id="selectSpecialDiseaseNodeVo">
|
||||||
@ -865,6 +866,7 @@
|
|||||||
sdn.route_check_remark,
|
sdn.route_check_remark,
|
||||||
sdn.node_content,
|
sdn.node_content,
|
||||||
sdn.phone_dial_method,
|
sdn.phone_dial_method,
|
||||||
|
(select flow_scheme from script_info where id = sdn.phone_template_id) flowScheme,
|
||||||
(select COUNT(1)
|
(select COUNT(1)
|
||||||
from special_disease_node
|
from special_disease_node
|
||||||
where route_id = specialDiseaseRouteId) totalNumber,
|
where route_id = specialDiseaseRouteId) totalNumber,
|
||||||
|
|||||||
@ -206,4 +206,12 @@
|
|||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<select id="selectTaskPartitionList"
|
||||||
|
resultType="com.xinelu.manage.domain.taskpartitiondict.TaskPartitionDict">
|
||||||
|
select * from task_partition_dict where task_type_id in
|
||||||
|
<foreach item="ids" collection="list" open="(" separator="," close=")">
|
||||||
|
#{ids}
|
||||||
|
</foreach>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@ -137,4 +137,10 @@
|
|||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<select id="selectTaskTypeDicts" resultType="com.xinelu.manage.vo.tasktypedict.TaskTypeDictVO">
|
||||||
|
select id taskTypeId,
|
||||||
|
task_type_name
|
||||||
|
from task_type_dict
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue
Block a user