diff --git a/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs b/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs index 611bd375..7c581e59 100644 --- a/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs @@ -95,6 +95,8 @@ namespace Tnb.ProductionMgr [AllowAnonymous] public async Task EmptyCarryOutStk() { + string state = await _redisData.TryGetValueByKeyField("YTCS", "State"); + if ("OK" != state) return "YTCS没开机"; string result = ""; bool? cs01 = await _redisData.TryGetValueByKeyField("YTCS", "CallCtuEmptyIn_CS01"); bool? cs03 = await _redisData.TryGetValueByKeyField("YTCS", "CallCtuEmptyIn_CS03"); @@ -220,6 +222,8 @@ namespace Tnb.ProductionMgr [AllowAnonymous] public async Task FixedPointDelivery() { + string state = await _redisData.TryGetValueByKeyField("YTCS", "State"); + if ("OK" != state) return "YTCS没开机"; string msg = ""; List equipments = await _db.Queryable() .InnerJoin((x, y) => x.id == y.equip_type_id)