微调
This commit is contained in:
@@ -179,7 +179,7 @@ public class CommTerminalController extends BaseController {
|
|||||||
public HttpResult<List<DeptGetDeviceDTO>> deptGetDevice(@RequestBody @Validated DeptGetLineParam deptGetLineParam) {
|
public HttpResult<List<DeptGetDeviceDTO>> deptGetDevice(@RequestBody @Validated DeptGetLineParam deptGetLineParam) {
|
||||||
TimeInterval timer = new TimeInterval();
|
TimeInterval timer = new TimeInterval();
|
||||||
String methodDescribe = getMethodDescribe("deptGetDevice");
|
String methodDescribe = getMethodDescribe("deptGetDevice");
|
||||||
List<DeptGetDeviceDTO> result = commTerminalService.deptGetDevice(deptGetLineParam,0);
|
List<DeptGetDeviceDTO> result = commTerminalService.deptGetDevice(deptGetLineParam,3);
|
||||||
log.info("运行时长" + timer.intervalSecond());
|
log.info("运行时长" + timer.intervalSecond());
|
||||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ public class CommTerminalServiceImpl implements CommTerminalService {
|
|||||||
public List<DeptGetDeviceDTO> deptGetDevice(DeptGetLineParam deptGetLineParam,Integer type) {
|
public List<DeptGetDeviceDTO> deptGetDevice(DeptGetLineParam deptGetLineParam,Integer type) {
|
||||||
List<DeptGetDeviceDTO> result = new ArrayList<>();
|
List<DeptGetDeviceDTO> result = new ArrayList<>();
|
||||||
List<DeptGetBase> temDept = getDeptChildrenByParent(deptGetLineParam);
|
List<DeptGetBase> temDept = getDeptChildrenByParent(deptGetLineParam);
|
||||||
Map<String, List<LineDevGetDTO>> map = deptLineService.lineDevGet(filterDataTypeNew(deptGetLineParam.getServerName()),3,deptGetLineParam.getLineRunFlag());
|
Map<String, List<LineDevGetDTO>> map = deptLineService.lineDevGet(filterDataTypeNew(deptGetLineParam.getServerName()),type,deptGetLineParam.getLineRunFlag());
|
||||||
temDept.forEach(item -> {
|
temDept.forEach(item -> {
|
||||||
DeptGetDeviceDTO deptGetDeviceDTO = new DeptGetDeviceDTO();
|
DeptGetDeviceDTO deptGetDeviceDTO = new DeptGetDeviceDTO();
|
||||||
deptGetDeviceDTO.setUnitId(item.getUnitId());
|
deptGetDeviceDTO.setUnitId(item.getUnitId());
|
||||||
|
|||||||
Reference in New Issue
Block a user