调整
This commit is contained in:
@@ -98,12 +98,14 @@ namespace Tnb.ProductionMgr
|
|||||||
{
|
{
|
||||||
BasFactoryConfig config = await _repository.AsSugarClient().Queryable<BasFactoryConfig>().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.DOMAIN);
|
BasFactoryConfig config = await _repository.AsSugarClient().Queryable<BasFactoryConfig>().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.DOMAIN);
|
||||||
HttpUtils.RequestGet($"{config.value}/api/production/time-work/empty-carry-out-stk-left");
|
HttpUtils.RequestGet($"{config.value}/api/production/time-work/empty-carry-out-stk-left");
|
||||||
|
// HttpUtils.RequestGet($"http://localhost:9232/api/production/time-work/empty-carry-out-stk-left");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cs03==true && !cs03Flag)
|
if (cs03==true && !cs03Flag)
|
||||||
{
|
{
|
||||||
BasFactoryConfig config = await _repository.AsSugarClient().Queryable<BasFactoryConfig>().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.DOMAIN);
|
BasFactoryConfig config = await _repository.AsSugarClient().Queryable<BasFactoryConfig>().FirstAsync(x => x.enabled == 1 && x.key == FactoryConfigConst.DOMAIN);
|
||||||
HttpUtils.RequestGet($"{config.value}/api/production/time-work/empty-carry-out-stk-right");
|
HttpUtils.RequestGet($"{config.value}/api/production/time-work/empty-carry-out-stk-right");
|
||||||
|
// HttpUtils.RequestGet($"http://localhost:9232/api/production/time-work/empty-carry-out-stk-right");
|
||||||
}
|
}
|
||||||
|
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
@@ -155,8 +157,8 @@ namespace Tnb.ProductionMgr
|
|||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
public async Task<dynamic> FixedPointDelivery()
|
public async Task<dynamic> FixedPointDelivery()
|
||||||
{
|
{
|
||||||
bool? value = await _redisData.TryGetValueByKeyField<bool?>("hxjA", "DB100.132.0");
|
bool? value = await _redisData.TryGetValueByKeyField<bool?>("hxjC", "DB100.132.3");
|
||||||
bool valueFlag = _redisData.Get<bool>("hxjA_DB100.132.0_flag");
|
bool valueFlag = _redisData.Get<bool>("hxjC_DB100.132.3_flag");
|
||||||
if (value==true && !valueFlag)
|
if (value==true && !valueFlag)
|
||||||
{
|
{
|
||||||
bool? cs01 = await _redisData.TryGetValueByKeyField<bool?>("YTCS", "CallCtuEmptyIn_CS01");
|
bool? cs01 = await _redisData.TryGetValueByKeyField<bool?>("YTCS", "CallCtuEmptyIn_CS01");
|
||||||
@@ -189,7 +191,7 @@ namespace Tnb.ProductionMgr
|
|||||||
if(authResponse.code == 200 && authResponse.data.ObjToBool())
|
if(authResponse.code == 200 && authResponse.data.ObjToBool())
|
||||||
{
|
{
|
||||||
Log.Information("【FixedPointDelivery】注塑定点配送成功");
|
Log.Information("【FixedPointDelivery】注塑定点配送成功");
|
||||||
//_redisData.Set("hxjA_DB100.132.0_flag", true, TimeSpan.FromMinutes(20));
|
//_redisData.Set("hxjC_DB100.132.3_flag", true, TimeSpan.FromMinutes(20));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
// await _runService.Create(templateEntity, input);
|
// await _runService.Create(templateEntity, input);
|
||||||
|
|
||||||
input.data["create_time"] = DateTime.Now;
|
input.data["create_time"] = DateTime.Now;
|
||||||
input.data["create_id"] = _userManager!=null ? _userManager.UserId : WmsWareHouseConst.AdministratorUserId;
|
input.data["create_id"] = _userManager?.UserId!=null ? _userManager.UserId : WmsWareHouseConst.AdministratorUserId;
|
||||||
if (input.data.TryGetValue("bill_code", out Object value))
|
if (input.data.TryGetValue("bill_code", out Object value))
|
||||||
{
|
{
|
||||||
if (value == null || value.ToString().IsEmpty())
|
if (value == null || value.ToString().IsEmpty())
|
||||||
|
|||||||
Reference in New Issue
Block a user