Browse Source

样本测试更新

tags/v0
sige 1 year ago
parent
commit
b6c35c87e2
  1. 23
      src/main/java/com/iflytop/a800/task/TubeTestTask.java

23
src/main/java/com/iflytop/a800/task/TubeTestTask.java

@ -36,11 +36,24 @@ public class TubeTestTask extends TaskBase {
// 任务准备
public void prepare() {
var device = Device.getInstance();
this.bufferTube = device.bufferTube.alloc();
// 申请测试卡
this.testCard = device.testCard.alloc(this.project);
// 缓冲液/探测物质
this.bufferTube = device.bufferTube.alloc(this.testCard);
// 大缓冲液
if ("yes".equals(this.project.isLargeBufferRequired)) {
this.largeBufferTube = device.largeBufferTube.getTube();
this.largeBufferTube = device.largeBufferTube.getTube(this.testCard);
}
this.testCard = device.testCard.alloc();
// 测试记录
this.test = new MdbTest();
this.test.projectCode = this.project.code;
this.test.materialLotCode = this.testCard.lotCode;
this.test.save();
this.idChip = new MdbIdChip();
this.idChip.peakCount = 3;
this.idChip.itemCount = 1;
@ -54,10 +67,6 @@ public class TubeTestTask extends TaskBase {
"wb", Map.of("a", 1.0, "b", 2.0, "c", 3.0, "d", 4.0)
)
)));
// 测试记录
this.test = new MdbTest();
this.test.save();
}
@Override

Loading…
Cancel
Save