|
|
@ -1,9 +1,9 @@ |
|
|
|
package com.dreamworks.boditech.entity; |
|
|
|
package com.dreamworks.boditech.model; |
|
|
|
import com.dreamworks.boditech.utils.MyCommon; |
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
public class MdbEmergencyTestTask { |
|
|
|
public class MdbEmergencyTestTask extends MyActiveRecord { |
|
|
|
// project detect type : auto |
|
|
|
@JsonIgnore |
|
|
|
public static final String PROJECT_DETECT_TYPE_AUTO = "AUTO"; |
|
|
@ -17,43 +17,68 @@ public class MdbEmergencyTestTask { |
|
|
|
@JsonIgnore |
|
|
|
public static final String STATUS_CANCELED = "CANCELED"; |
|
|
|
|
|
|
|
// id |
|
|
|
public Integer id; |
|
|
|
// index of slot |
|
|
|
@MyActiveRecordField |
|
|
|
public Long id; |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public Integer index; |
|
|
|
// enable |
|
|
|
public Boolean enable; |
|
|
|
// is slot locked |
|
|
|
public Boolean isSlotLocked; |
|
|
|
// status |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public Integer enable; |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public Integer isSlotLocked; |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public String status; |
|
|
|
// project detect type |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public String projectDetectType; |
|
|
|
// project ids |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public String projectIds; |
|
|
|
// sample type detect type |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public String sampleTypeDetectType; |
|
|
|
// sample type |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public String sampleType; |
|
|
|
// sample uid |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public String sampleUid; |
|
|
|
// bar code |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public String barCode; |
|
|
|
// preprocess |
|
|
|
public Boolean attenuation; |
|
|
|
// created at |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public Integer attenuation; |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public Long createdAt; |
|
|
|
// created by |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public Integer createdBy; |
|
|
|
// updated at |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public Long updatedAt; |
|
|
|
// updated by |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public Integer updatedBy; |
|
|
|
// exec started at |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public Long execStartedAt; |
|
|
|
// exec finished at |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public Long execFinishedAt; |
|
|
|
|
|
|
|
@MyActiveRecordField |
|
|
|
public String testBatchId; |
|
|
|
|
|
|
|
// get table name |
|
|
|
public static String getTableName() { |
|
|
|
return "bdt_emergency_test_tasks"; |
|
|
|
} |
|
|
|
|
|
|
|
// get project id list |
|
|
|
public List<Integer> getProjectIdList() { |
|
|
|
return MyCommon.jsonToObject(this.projectIds, List.class); |