|
|
@@ -132,6 +132,13 @@ func (this *ConverseService) ScanNewTaskDetail() []Sample_Storage_Task {
|
|
|
return tasks
|
|
|
}
|
|
|
|
|
|
+// 更新任务表的完整TaskId
|
|
|
+func (this *ConverseService) UpdateFullTaskId(id int, fullTaskId string) (err error) {
|
|
|
+ updApplySql := fmt.Sprintf("UPDATE %s SET Full_task_id = %s WHERE id = %d", TABLE_TAST, fullTaskId, id)
|
|
|
+ _, err = this.DBE.Exec(updApplySql)
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
// 获取申请单创建人
|
|
|
func (this *ConverseService) GetOperUser(EntryNo string) (user string) {
|
|
|
|
|
|
@@ -401,7 +408,7 @@ func handleTaskChange(entity *RequestEntity, detail *Sample_Storage_Task) {
|
|
|
if detail.Status == 705 {
|
|
|
entity.Data.Status = 5 // 暂停任务
|
|
|
}
|
|
|
- entity.Data.Task_id = detail.Task_id
|
|
|
+ entity.Data.Task_id = detail.Full_task_id
|
|
|
entity.Data.OrderTime = time.Now().UTC().Format(time.RFC3339)
|
|
|
}
|
|
|
|