异常数据清洗
This commit is contained in:
@@ -632,7 +632,12 @@ public enum DicDataEnum {
|
||||
No_Upload("未上送","0"),
|
||||
Has_Upload("已上送","1"),
|
||||
Reduce_Upload("取消上送","2"),
|
||||
Return_Upload("待重新上送","3")
|
||||
Return_Upload("待重新上送","3"),
|
||||
|
||||
|
||||
//字典树类型
|
||||
Obj_Type("监测对象类型","0"),
|
||||
Custom_Report_Type("自定义报表类型","1")
|
||||
|
||||
|
||||
;
|
||||
|
||||
@@ -176,6 +176,15 @@ public class DictTreeController extends BaseController {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@GetMapping("/queryFirstNode")
|
||||
@ApiOperation("查询所有大类节点")
|
||||
public HttpResult<List<SysDicTreePO>> queryFirstNodeList() {
|
||||
String methodDescribe = getMethodDescribe("queryFirstNodeList");
|
||||
List<SysDicTreePO> result = sysDicTreePOService.queryFirstNodeList();
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||
}
|
||||
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@GetMapping("/queryDictType")
|
||||
@ApiOperation("获取指标类型")
|
||||
|
||||
@@ -58,6 +58,12 @@ public interface SysDicTreePOService extends IService<SysDicTreePO> {
|
||||
|
||||
List<SysDicTreePO> queryTree();
|
||||
|
||||
/**
|
||||
* 查询所有大类节点
|
||||
* @date 2023/12/18
|
||||
*/
|
||||
List<SysDicTreePO> queryFirstNodeList();
|
||||
|
||||
/**
|
||||
* 根据code查询自动树
|
||||
* @param code code
|
||||
|
||||
@@ -20,10 +20,7 @@ import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@@ -168,6 +165,13 @@ public class SysDicTreePOServiceImpl extends ServiceImpl<SysDicTreePOMapper, Sys
|
||||
}).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SysDicTreePO> queryFirstNodeList() {
|
||||
LambdaQueryWrapper<SysDicTreePO> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
lambdaQueryWrapper.eq(SysDicTreePO::getPid,"0").eq(SysDicTreePO::getStatus,0);
|
||||
return this.list(lambdaQueryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SysDicTreePO> queryByCodeList(String code) {
|
||||
List<SysDicTreePO> sysDicTreePOList = this.list(new LambdaQueryWrapper<SysDicTreePO>().eq(SysDicTreePO::getStatus, 0));
|
||||
|
||||
Reference in New Issue
Block a user