|
@@ -47,6 +47,7 @@ public class DataAcquisitionInstrumentController {
|
47
|
47
|
{
|
48
|
48
|
IPage<DataAcquisitionInstrument> page = new Page<>(vo.getPageNum(), vo.getPageSize());
|
49
|
49
|
QueryWrapper<DataAcquisitionInstrument> wrapper = new QueryWrapper<>();
|
|
50
|
+ wrapper.orderByDesc("department_code");
|
50
|
51
|
IPage<DataAcquisitionInstrument> pageList = dataAcquisitionInstrumentService.page(page, wrapper);
|
51
|
52
|
IPage<DataAcquisitionInstrumentVo> volits = new Page<>();
|
52
|
53
|
if (!pageList.getRecords().isEmpty()){
|
|
@@ -191,7 +192,7 @@ public class DataAcquisitionInstrumentController {
|
191
|
192
|
List<DetectMonitoringFactor> detectMonitoringFactors = x.getDetectMonitoringFactors();
|
192
|
193
|
detectMonitoringFactors.forEach(y->{
|
193
|
194
|
y.setAnalyticalInstrumentId(analyticalInstruments.getId());
|
194
|
|
-
|
|
195
|
+ y.setDataAcquisitionInstrumentId(dataAcquisitionInstrument.getId());
|
195
|
196
|
boolean save2 = detectMonitoringFactorService.save(y);
|
196
|
197
|
if (!save2){
|
197
|
198
|
throw new RuntimeException("添加失败");
|