增加了一些适配贵阳市局的新字段,现在我们不需要导入数据,通过手动录入数据的方式来进行检验分析以及生成检验记录了
This commit is contained in:
+4
-4
@@ -34,9 +34,9 @@ public class TestRecordSampleData extends BaseEntity {
|
|||||||
|
|
||||||
private String rtTimeWithinError;//保留时间是否在误差范围 ±1 以内
|
private String rtTimeWithinError;//保留时间是否在误差范围 ±1 以内
|
||||||
|
|
||||||
private double targetRtTime;//目标物保留时间
|
private Double targetRtTime;//目标物保留时间
|
||||||
|
|
||||||
private double stdRtTime;//标准物保留时间
|
private Double stdRtTime;//标准物保留时间
|
||||||
|
|
||||||
private int isDetected;//是否检出目标化合物
|
private int isDetected;//是否检出目标化合物
|
||||||
|
|
||||||
@@ -48,9 +48,9 @@ public class TestRecordSampleData extends BaseEntity {
|
|||||||
|
|
||||||
private String compoundCnName;//检测的化合物的中文名字
|
private String compoundCnName;//检测的化合物的中文名字
|
||||||
|
|
||||||
private double mainArea;//主要产物峰面积
|
private Double mainArea;//主要产物峰面积
|
||||||
|
|
||||||
private double minorArea;//次要产物峰面积
|
private Double minorArea;//次要产物峰面积
|
||||||
|
|
||||||
@ApiModelProperty("任务数据审核状态, 状态:\n" +
|
@ApiModelProperty("任务数据审核状态, 状态:\n" +
|
||||||
"0 待审核,\n" +
|
"0 待审核,\n" +
|
||||||
|
|||||||
+7
-6
@@ -1998,12 +1998,13 @@ public class TestRecordSampleDataServiceImpl extends ServiceImpl<TestRecordSampl
|
|||||||
.eq(TestRecordSampleData::getTestId, data.getTestId())
|
.eq(TestRecordSampleData::getTestId, data.getTestId())
|
||||||
.eq(TestRecordSampleData::getSampleType, "STD"));
|
.eq(TestRecordSampleData::getSampleType, "STD"));
|
||||||
|
|
||||||
if (data.getMainArea() != 0.0 &&
|
if (data.getMainArea() != null &&
|
||||||
data.getMinorArea() != 0.0 &&
|
data.getMinorArea() != null &&
|
||||||
data.getTargetRtTime() != 0.0 &&
|
data.getTargetRtTime() != null &&
|
||||||
std.getMainArea() != 0.0 &&
|
std.getMainArea() != null &&
|
||||||
std.getMinorArea() != 0.0 &&
|
std.getMinorArea() != null &&
|
||||||
std.getTargetRtTime() != 0.0) {
|
std.getTargetRtTime() != null) {
|
||||||
|
System.out.println("所有属性都不为 null");
|
||||||
}
|
}
|
||||||
return this.updateById(data) ? data : null;
|
return this.updateById(data) ? data : null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user