This commit is contained in:
2024-06-11 10:42:07 +08:00
parent 51bfc0d99c
commit 598d40af6d

View File

@@ -95,6 +95,8 @@ namespace Tnb.ProductionMgr
[AllowAnonymous] [AllowAnonymous]
public async Task<string> EmptyCarryOutStk() public async Task<string> EmptyCarryOutStk()
{ {
string state = await _redisData.TryGetValueByKeyField<string>("YTCS", "State");
if ("OK" != state) return "YTCS没开机";
string result = ""; string result = "";
bool? cs01 = await _redisData.TryGetValueByKeyField<bool?>("YTCS", "CallCtuEmptyIn_CS01"); bool? cs01 = await _redisData.TryGetValueByKeyField<bool?>("YTCS", "CallCtuEmptyIn_CS01");
bool? cs03 = await _redisData.TryGetValueByKeyField<bool?>("YTCS", "CallCtuEmptyIn_CS03"); bool? cs03 = await _redisData.TryGetValueByKeyField<bool?>("YTCS", "CallCtuEmptyIn_CS03");
@@ -220,6 +222,8 @@ namespace Tnb.ProductionMgr
[AllowAnonymous] [AllowAnonymous]
public async Task<string> FixedPointDelivery() public async Task<string> FixedPointDelivery()
{ {
string state = await _redisData.TryGetValueByKeyField<string>("YTCS", "State");
if ("OK" != state) return "YTCS没开机";
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)