|
@@ -205,7 +205,11 @@ func (this *ConverseService) GenerateRequestEntity(taskType int, task_id, user s
|
|
|
if requestName != "stock_rack" && requestName != "stock_rack_tube" {
|
|
if requestName != "stock_rack" && requestName != "stock_rack_tube" {
|
|
|
data.Task_id = task_id
|
|
data.Task_id = task_id
|
|
|
data.Type = "begin"
|
|
data.Type = "begin"
|
|
|
|
|
+
|
|
|
|
|
+ // 自动化设备 必须要穿 Operation_user 用户信息
|
|
|
data.Operation_user = user
|
|
data.Operation_user = user
|
|
|
|
|
+ // 半自动化设备,不需要传 Operation_user 用户信息
|
|
|
|
|
+ //data.Operation_user = ""
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
entity := this.GetRequestEntity(requestName, utc, data)
|
|
entity := this.GetRequestEntity(requestName, utc, data)
|
|
@@ -740,7 +744,7 @@ func (this *ConverseService) UpdateBoxInfo(entity ResponseEntity,parentId int) (
|
|
|
lengSql := " select * from bank_equipment where cu = '" + utils.ToStr(Cu) + "' and Ltu = '" + utils.ToStr(Ltu) + "' "
|
|
lengSql := " select * from bank_equipment where cu = '" + utils.ToStr(Cu) + "' and Ltu = '" + utils.ToStr(Ltu) + "' "
|
|
|
this.DBE.SQL(lengSql).Get(&equipment)
|
|
this.DBE.SQL(lengSql).Get(&equipment)
|
|
|
|
|
|
|
|
- sql := "select b.id EquipmentId,a.id,a.XStation,a.YStation from bank_shelf a left join bank_equipment b on a.EquipmentId = b.id where b.cu = '" + utils.ToStr(Cu) + "' " +
|
|
|
|
|
|
|
+ sql := "select b.id EquipmentId,b.code,b.name,a.id,a.XStation,a.YStation from bank_shelf a left join bank_equipment b on a.EquipmentId = b.id where b.cu = '" + utils.ToStr(Cu) + "' " +
|
|
|
"and a.Ltu = '" + utils.ToStr(Ltu) + "' and a.Group ='" + utils.ToStr(Group) + "'"
|
|
"and a.Ltu = '" + utils.ToStr(Ltu) + "' and a.Group ='" + utils.ToStr(Group) + "'"
|
|
|
// 冷库设备
|
|
// 冷库设备
|
|
|
YStation:=" "
|
|
YStation:=" "
|
|
@@ -754,11 +758,11 @@ func (this *ConverseService) UpdateBoxInfo(entity ResponseEntity,parentId int) (
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.DBE.SQL(sql).Get(&shelf)
|
|
this.DBE.SQL(sql).Get(&shelf)
|
|
|
- fmt.Println("冻存架信息:", shelf.Id, shelf.XStation, shelf.YStation)
|
|
|
|
|
|
|
+ fmt.Println("冻存架信息:",shelf.Code,shelf.Name, shelf.Id, shelf.XStation, shelf.YStation)
|
|
|
|
|
|
|
|
// 更新盒所在的冻存架的信息 计算位置信息,并更新
|
|
// 更新盒所在的冻存架的信息 计算位置信息,并更新
|
|
|
// 临时处理逻辑,默认 pos 为 盒子的 XStation
|
|
// 临时处理逻辑,默认 pos 为 盒子的 XStation
|
|
|
- pos := equipment.Code + "-" + common.Boxlinename(shelf.YStation) + utils.ToStr(shelf.XStation) + "-" +
|
|
|
|
|
|
|
+ pos := shelf.Code + "-" + common.Boxlinename(shelf.YStation) + utils.ToStr(shelf.XStation) + "-" +
|
|
|
"" + common.Boxlinename( Unit ) + utils.ToStr(utils.ToStr(Pos))
|
|
"" + common.Boxlinename( Unit ) + utils.ToStr(utils.ToStr(Pos))
|
|
|
|
|
|
|
|
possql := "update bank_box set XStation ='" + utils.ToStr(Pos) + "' "+YStation+"," +
|
|
possql := "update bank_box set XStation ='" + utils.ToStr(Pos) + "' "+YStation+"," +
|