563565
This commit is contained in:
@@ -10,6 +10,7 @@ using ZR.Model.mes.md;
|
|||||||
using ZR.Model.mes.md.DTO;
|
using ZR.Model.mes.md.DTO;
|
||||||
using ZR.Service.mes.md;
|
using ZR.Service.mes.md;
|
||||||
using ZR.Service.mes.md.IService;
|
using ZR.Service.mes.md.IService;
|
||||||
|
using static System.Runtime.InteropServices.JavaScript.JSType;
|
||||||
|
|
||||||
namespace ZR.Admin.WebApi.Controllers.mes.md
|
namespace ZR.Admin.WebApi.Controllers.mes.md
|
||||||
{
|
{
|
||||||
@@ -79,6 +80,10 @@ namespace ZR.Admin.WebApi.Controllers.mes.md
|
|||||||
[HttpPost("addProductDefine")]
|
[HttpPost("addProductDefine")]
|
||||||
public IActionResult addProductDefine([FromBody] MdProductDefine products)
|
public IActionResult addProductDefine([FromBody] MdProductDefine products)
|
||||||
{
|
{
|
||||||
|
if (products == null)
|
||||||
|
{
|
||||||
|
return ToResponse(new ApiResult((int)ResultCode.NO_DATA, "null"));
|
||||||
|
}
|
||||||
if (products != null)
|
if (products != null)
|
||||||
{
|
{
|
||||||
products.ToCreate(HttpContext);
|
products.ToCreate(HttpContext);
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Folder Include="Images\" />
|
||||||
<Folder Include="Properties\PublishProfiles\" />
|
<Folder Include="Properties\PublishProfiles\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -35,17 +35,11 @@ namespace ZR.Model.mes.md
|
|||||||
public string ProductUnitName { get; set; }
|
public string ProductUnitName { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 工艺路线code
|
/// 产线json
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarColumn(ColumnName="processRoute_code" )]
|
[SugarColumn(ColumnName= "worklineArray")]
|
||||||
public string ProcessrouteCode { get; set; }
|
public string WorklineArray { get; set; }
|
||||||
[SugarColumn(IsIgnore = true)]
|
|
||||||
public string ProcessrouteCodeName { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 工艺路线
|
|
||||||
///</summary>
|
|
||||||
[SugarColumn(ColumnName="processRoute_name" )]
|
|
||||||
public string ProcessrouteName { get; set; }
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 预留字段1
|
/// 预留字段1
|
||||||
///</summary>
|
///</summary>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using Infrastructure.Attribute;
|
using Infrastructure.Attribute;
|
||||||
using Infrastructure.Extensions;
|
using Infrastructure.Extensions;
|
||||||
using JinianNet.JNTemplate;
|
using JinianNet.JNTemplate;
|
||||||
|
using Microsoft.AspNetCore.Mvc.Formatters.Xml;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
using System;
|
using System;
|
||||||
@@ -84,6 +85,7 @@ namespace ZR.Service.mes.md
|
|||||||
return Context.Queryable<MdUnit>().ToList();
|
return Context.Queryable<MdUnit>().ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<MdWorkline> GetWorklineList()
|
public List<MdWorkline> GetWorklineList()
|
||||||
{
|
{
|
||||||
return Context.Queryable<MdWorkline>().ToList();
|
return Context.Queryable<MdWorkline>().ToList();
|
||||||
|
|||||||
Reference in New Issue
Block a user