首检添加数据看板
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
using Microsoft.AspNetCore.Http.HttpResults;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using NPOI.SS.UserModel;
|
||||
using NPOI.XSSF.UserModel;
|
||||
using SqlSugar;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq.Expressions;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Admin.WebApi.Filters;
|
||||
using ZR.Model.MES.wms;
|
||||
@@ -178,7 +174,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
{
|
||||
if (row.GetCell(0) != null && row.GetCell(0).ToString() != "")
|
||||
{
|
||||
|
||||
|
||||
WmMaterial material = new WmMaterial();
|
||||
// SnowFlakeSingle.Instance.NextId().ToString();
|
||||
material.Id = SnowFlakeSingle.Instance.NextId().ToString();
|
||||
@@ -194,6 +190,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
material.Remarks = row.GetCell(9)?.ToString();
|
||||
material.Search1 = row.GetCell(10)?.ToString();
|
||||
material.Search2 = row.GetCell(11)?.ToString();
|
||||
material.Type = int.Parse(row.GetCell(12).ToString());
|
||||
material.Status = 1;
|
||||
material.Sort = i;
|
||||
material.CreatedBy = "Excel导入";
|
||||
@@ -213,7 +210,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return ToResponse(new ApiResult(210, "文件异常"+ex.Message));
|
||||
return ToResponse(new ApiResult(210, "文件异常" + ex.Message));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user