齐套接口返回成功后再操作数据库,生产工单列表优化,提报完工数不能大于任务单数 完成后修改状态
This commit is contained in:
@@ -11,6 +11,7 @@ using JNPF.DynamicApiController;
|
||||
using JNPF.Extensitions.EventBus;
|
||||
using JNPF.FriendlyException;
|
||||
using JNPF.Logging;
|
||||
using JNPF.Systems.Entitys.System;
|
||||
using JNPF.Systems.Interfaces.System;
|
||||
using JNPF.VisualDev;
|
||||
using JNPF.VisualDev.Entitys;
|
||||
@@ -42,7 +43,8 @@ namespace Tnb.ProductionMgr
|
||||
[OverideVisualDev(ModuleId)]
|
||||
public class PrdMoService : IOverideVisualDevService, IPrdMoService, IDynamicApiController, ITransient
|
||||
{
|
||||
private const string ModuleId = "25018860321301";
|
||||
// private const string ModuleId = "25018860321301";
|
||||
private const string ModuleId = "26900026924053";
|
||||
private readonly ISqlSugarRepository<PrdMo> _repository;
|
||||
private readonly IDataBaseManager _dataBaseManager;
|
||||
private readonly IUserManager _userManager;
|
||||
@@ -91,7 +93,17 @@ namespace Tnb.ProductionMgr
|
||||
{
|
||||
row.Add("material_name", material.name);
|
||||
row.Add($"material_attribute", material.attribute);
|
||||
if (dic.ContainsKey("material_id"))
|
||||
{
|
||||
row["material_id"] = material.code + "/" + material.name;
|
||||
}
|
||||
}
|
||||
|
||||
if (dic.ContainsKey("unit_id"))
|
||||
{
|
||||
string unitId = dic["unit_id"]?.ToString() ?? "";
|
||||
var unit = await db.Queryable<DictionaryDataEntity>().SingleAsync(x => x.Id == unitId);
|
||||
row["unit_id"] = unit?.FullName ?? "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user