Merge branch 'master' of http://git.picaiba.com/CaiXiang/SPC
This commit is contained in:
commit
5e8110ad2c
@ -175,9 +175,10 @@ public class InspectionSheetController {
|
|||||||
|
|
||||||
@PostMapping("saveFluxParamList")
|
@PostMapping("saveFluxParamList")
|
||||||
@ApiOperation("将样本检测参数写入influxdb")
|
@ApiOperation("将样本检测参数写入influxdb")
|
||||||
public Result saveFluxParamList(@RequestBody InspectionSampleDTO[] lists){
|
public Result saveFluxParamList(@RequestBody InspectionSampleDTO[] lists) throws InterruptedException{
|
||||||
|
|
||||||
inspectionSheetService.saveFluxParamList(lists);
|
inspectionSheetService.saveFluxParamList(lists);
|
||||||
|
Thread.sleep(1000);
|
||||||
//样本数据更新后 计算检验单缺陷数不良数
|
//样本数据更新后 计算检验单缺陷数不良数
|
||||||
inspectionSheetService.calculate(Long.valueOf(lists[0].getInspectionSheetId()));
|
inspectionSheetService.calculate(Long.valueOf(lists[0].getInspectionSheetId()));
|
||||||
return new Result();
|
return new Result();
|
||||||
|
@ -252,7 +252,11 @@ public class InspectionSheetServiceImpl extends CrudServiceImpl<InspectionSheetM
|
|||||||
list.add(sampleDTO);
|
list.add(sampleDTO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return list;
|
//返回先按时间排序 再按样本号排序
|
||||||
|
List<InspectionSampleDTO> sortedList = list.stream()
|
||||||
|
.sorted(Comparator.comparing(InspectionSampleDTO::getSampleTime).thenComparing(InspectionSampleDTO::getSampleNumber))
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
return sortedList;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user