13 changed files with 287 additions and 79 deletions
-
87src/main/java/com/dreamworks/boditech/controller/DeviceController.java
-
34src/main/java/com/dreamworks/boditech/controller/TestController.java
-
14src/main/java/com/dreamworks/boditech/driver/consumable/CsmTestCardManager.java
-
56src/main/java/com/dreamworks/boditech/driver/task/Executor.java
-
6src/main/java/com/dreamworks/boditech/driver/task/Task.java
-
12src/main/java/com/dreamworks/boditech/driver/task/TaskBase.java
-
2src/main/java/com/dreamworks/boditech/driver/task/TaskLoad.java
-
39src/main/java/com/dreamworks/boditech/entity/MdbEmergencyTestTask.java
-
22src/main/java/com/dreamworks/boditech/entity/parameter/ParamEmergencyTaskSave.java
-
26src/main/java/com/dreamworks/boditech/mapper/EmergencyTestTaskMapper.java
-
8src/main/java/com/dreamworks/boditech/service/DeviceService.java
-
49src/main/java/com/dreamworks/boditech/service/TestService.java
-
11src/main/java/com/dreamworks/boditech/utils/MyCommon.java
@ -0,0 +1,39 @@ |
|||
package com.dreamworks.boditech.entity; |
|||
public class MdbEmergencyTestTask { |
|||
// id |
|||
public Integer id; |
|||
// index of slot |
|||
public Integer index; |
|||
// enable |
|||
public Boolean enable; |
|||
// is slot locked |
|||
public Boolean isSlotLocked; |
|||
// status |
|||
public String status; |
|||
// project detect type |
|||
public String projectDetectType; |
|||
// project ids |
|||
public String projectIds; |
|||
// sample type detect type |
|||
public String sampleTypeDetectType; |
|||
// sample type |
|||
public String sampleType; |
|||
// sample uid |
|||
public String sampleUid; |
|||
// bar code |
|||
public String barCode; |
|||
// preprocess |
|||
public Boolean attenuation; |
|||
// created at |
|||
public Long createdAt; |
|||
// created by |
|||
public Integer createdBy; |
|||
// updated at |
|||
public Long updatedAt; |
|||
// updated by |
|||
public Integer updatedBy; |
|||
// exec started at |
|||
public Long execStartedAt; |
|||
// exec finished at |
|||
public Long execFinishedAt; |
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.dreamworks.boditech.entity.parameter; |
|||
import java.util.List; |
|||
public class ParamEmergencyTaskSave { |
|||
// index of slot |
|||
public Integer index; |
|||
// enable |
|||
public Boolean enable; |
|||
// project detect type |
|||
public String projectDetectType; |
|||
// project ids |
|||
public List<Integer> projectIds; |
|||
// sample type detect type |
|||
public String sampleTypeDetectType; |
|||
// sample type |
|||
public String sampleType; |
|||
// sample uid |
|||
public String sampleUid; |
|||
// bar code |
|||
public String barCode; |
|||
// preprocess |
|||
public Boolean attenuation; |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.dreamworks.boditech.mapper; |
|||
import com.dreamworks.boditech.entity.MdbEmergencyTestTask; |
|||
import org.apache.ibatis.annotations.*; |
|||
|
|||
@Mapper |
|||
public interface EmergencyTestTaskMapper { |
|||
@Select("SELECT * FROM bdt_emergency_test_tasks WHERE id = #{id}") |
|||
MdbEmergencyTestTask findById(Integer id); |
|||
|
|||
@Insert("INSERT INTO bdt_emergency_test_tasks " + |
|||
"(" + |
|||
"`index`, enable, projectDetectType, projectIds, sampleTypeDetectType, sampleType, " + |
|||
"sampleUid, barCode, attenuation, createdAt, createdBy, isSlotLocked, status" + |
|||
") " + |
|||
"VALUES " + |
|||
"(" + |
|||
"#{index}, #{enable}, #{projectDetectType}, #{projectIds}, #{sampleTypeDetectType}, #{sampleType}, " + |
|||
"#{sampleUid}, #{barCode}, #{attenuation}, #{createdAt}, #{createdBy}, #{isSlotLocked}, #{status}" + |
|||
")" |
|||
) |
|||
@Options(useGeneratedKeys = true, keyProperty = "id") |
|||
void insert(MdbEmergencyTestTask task); |
|||
|
|||
@Select("SELECT status FROM bdt_emergency_test_tasks WHERE `index` = #{slotIndex} AND isSlotLocked = 1 ORDER BY id DESC LIMIT 1") |
|||
String emergencyTaskStatusGet(Integer slotIndex); |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue