|
|
|
|
@ -66,6 +66,14 @@ namespace FactorySystemApi.Controllers
|
|
|
|
|
|
|
|
|
|
string materialName = inParam["FMaterialName"].ToString();
|
|
|
|
|
|
|
|
|
|
TFS_Material existMaterial = BaseBll.GetTempModel<TFS_Material>("FName='" + materialName + "'");
|
|
|
|
|
|
|
|
|
|
if (existMaterial != null)
|
|
|
|
|
{
|
|
|
|
|
result.Add("TaskId", -8);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
inParam.TryGetValue("FState", out object state);
|
|
|
|
|
if (null == state)
|
|
|
|
|
{
|
|
|
|
|
@ -170,6 +178,7 @@ namespace FactorySystemApi.Controllers
|
|
|
|
|
{
|
|
|
|
|
result.Add("TaskId", -9);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apiResult.Data = result;
|
|
|
|
|
}, apiResult, Request, inParam);
|
|
|
|
|
|