注塑空箱配送控制
This commit is contained in:
@@ -225,6 +225,8 @@ public partial class EquipListOuput
|
|||||||
public string? as_location_id { get; set; }
|
public string? as_location_id { get; set; }
|
||||||
|
|
||||||
public string? as_location_id_id { get; set; }
|
public string? as_location_id_id { get; set; }
|
||||||
|
|
||||||
|
public string is_send { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -233,4 +233,10 @@ public partial class EqpEquipment : BaseEntity<string>
|
|||||||
/// 截料阀
|
/// 截料阀
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string stop_valve { get; set; }
|
public string stop_valve { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 注塑空载具是否配送
|
||||||
|
/// </summary>
|
||||||
|
public int is_send { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ namespace Tnb.EquipMgr
|
|||||||
qrcode = a.qrcode,
|
qrcode = a.qrcode,
|
||||||
as_location_id = h.location_name,
|
as_location_id = h.location_name,
|
||||||
as_location_id_id = a.as_location_id,
|
as_location_id_id = a.as_location_id,
|
||||||
|
is_send = a.is_send==1 ? "是" : "否",
|
||||||
}).ToPagedListAsync(input.currentPage,input.pageSize);
|
}).ToPagedListAsync(input.currentPage,input.pageSize);
|
||||||
return PageResult<EquipListOuput>.SqlSugarPageResult(result);
|
return PageResult<EquipListOuput>.SqlSugarPageResult(result);
|
||||||
|
|
||||||
@@ -324,5 +325,15 @@ namespace Tnb.EquipMgr
|
|||||||
string qrcode = dic["qrcode"];
|
string qrcode = dic["qrcode"];
|
||||||
return await _repository.GetSingleAsync(x => x.qrcode == qrcode);
|
return await _repository.GetSingleAsync(x => x.qrcode == qrcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
public async Task<dynamic> SaveSend(string id)
|
||||||
|
{
|
||||||
|
await _repository.AsSugarClient().Updateable<EqpEquipment>()
|
||||||
|
.SetColumns(x => x.is_send == 1 - x.is_send)
|
||||||
|
.Where(x => x.id == id)
|
||||||
|
.ExecuteCommandAsync();
|
||||||
|
return "成功";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -512,7 +512,7 @@ namespace Tnb.ProductionMgr
|
|||||||
string msg = "";
|
string msg = "";
|
||||||
List<EqpEquipment> equipments = await _db.Queryable<EqpEquipType>()
|
List<EqpEquipment> equipments = await _db.Queryable<EqpEquipType>()
|
||||||
.InnerJoin<EqpEquipment>((x, y) => x.id == y.equip_type_id)
|
.InnerJoin<EqpEquipment>((x, y) => x.id == y.equip_type_id)
|
||||||
.Where((x, y) => x.code == "ZSJ")
|
.Where((x, y) => x.code == "ZSJ" && y.is_send==1)
|
||||||
.Select((x, y) => y).ToListAsync();
|
.Select((x, y) => y).ToListAsync();
|
||||||
|
|
||||||
int cs01Count = await _redisData.TryGetValueByKeyField<int>("YTCS", "EmptyNo_CS01");
|
int cs01Count = await _redisData.TryGetValueByKeyField<int>("YTCS", "EmptyNo_CS01");
|
||||||
|
|||||||
Reference in New Issue
Block a user