|
|
@@ -584,20 +584,23 @@ func (this *ConverseService) ModifySampleStatusByApplyMainInfo(entryNo string, r
|
|
|
var operaIds, abnormalIds, taskType string
|
|
|
if applyMain.ApplyType == TASK_TUBE_STORING && strings.Contains(resp, "_storing") {
|
|
|
|
|
|
- fmt.Println("开始入库1")
|
|
|
+ fmt.Println("开始入库1",entity)
|
|
|
|
|
|
taskType = "tube_storing" // 冻存管入库
|
|
|
// 获取返回报文中成功的样本 和失败的样本
|
|
|
operaIds, abnormalIds = this.getOperaSampleIdsStr(applyMain.ApplyType, applyMain.Id, resp, entity)
|
|
|
|
|
|
- //获取报文中的 盒子信息
|
|
|
- var Rack_id string = entity.Data.Actual_data[0].Rack_id
|
|
|
- fmt.Println("冻存盒盒子编号:", Rack_id)
|
|
|
- // 获取报文中的 位置信息和 样本编码
|
|
|
- var tubes = entity.Data.Actual_data[0].Tubes
|
|
|
- fmt.Println("样本位置信息:", tubes)
|
|
|
- //新增方法 更新位置信息
|
|
|
- defer this.UpdatePosition(Rack_id, tubes, entity, applyMain.Id)
|
|
|
+ for _,value :=range entity.Data.Actual_data{
|
|
|
+ //获取报文中的 盒子信息
|
|
|
+ var Rack_id string = value.Rack_id
|
|
|
+ fmt.Println("冻存盒盒子编号:", Rack_id)
|
|
|
+ // 获取报文中的 位置信息和 样本编码
|
|
|
+ var tubes = value.Tubes
|
|
|
+ fmt.Println("样本位置信息:", tubes)
|
|
|
+ //新增方法 更新位置信息
|
|
|
+ defer this.UpdatePosition(Rack_id, tubes, entity, applyMain.Id)
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
} else if applyMain.ApplyType == TASK_TUBE_RETREIVING && strings.Contains(resp, "_storing") {
|
|
|
fmt.Println("开始入库2")
|
|
|
@@ -635,9 +638,16 @@ func (this *ConverseService) UpdateBoxInfo(entity ResponseEntity) (err error) {
|
|
|
//1. 获取当前返回的 冻存架信息,
|
|
|
var shelf Shelf
|
|
|
|
|
|
+ glog.Info("entity.Data.Actual_data::",entity.Data.Actual_data)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
// 循环处理返回的数据,如果出现多盒存入的分批处理
|
|
|
|
|
|
for i := range entity.Data.Actual_data {
|
|
|
+
|
|
|
+ glog.Info("操作地 ",i," 条数据")
|
|
|
+
|
|
|
boxBarcode := entity.Data.Actual_data[i].Rack_id // 冻存盒编号
|
|
|
Cu := entity.Data.Actual_data[i].Target.Cu // 设备编号
|
|
|
Ltu := entity.Data.Actual_data[i].Target.Ltu //
|
|
|
@@ -698,8 +708,13 @@ func (this *ConverseService) UpdateBoxInfoCK(entity ResponseEntity) (err error)
|
|
|
return err
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+/**
|
|
|
+ 修改detail 信息
|
|
|
+ */
|
|
|
func (this *ConverseService) UpdateDetail(BarCode string, entity ResponseEntity, parentId int) {
|
|
|
+
|
|
|
+ glog.Info("修改detail:",entity)
|
|
|
+
|
|
|
var shelf Shelf
|
|
|
var equipmentid string
|
|
|
var ShelfId string
|