Browse Source

修改

master
wushukun 4 months ago
parent
commit
59a4c28726
2 changed files with 27 additions and 1 deletions
  1. +13
    -1
      ButcherTraceBack/Controllers/TraceBackInfoController.cs
  2. +14
    -0
      ButcherTraceBack/Models/BeiHaiTraceBack.cs

+ 13
- 1
ButcherTraceBack/Controllers/TraceBackInfoController.cs View File

@ -53,7 +53,7 @@ namespace ButcherTraceBack.Controllers
public string InsertProductTrace([System.Web.Http.FromBody]string json)
{
var fields = new string[] { "Code", "ExpirationTime", "CutUpDate", "Goods_Name", "ProductDate", "ButcherDate" };
var fields = new string[] { "Code", "ExpirationTime", "CutUpDate", "Goods_Name", "ProductDate", "ButcherDate","SKUID", "Origin", "Spec", "StockCondition", "Standard", "NetContent", "Ingredients", "WanFuBreedFactory_Name", "BarCode", "ZaiShaCheJian" };
BeiHaiTraceBackInfo dto = null;
try
@ -83,6 +83,18 @@ namespace ButcherTraceBack.Controllers
info.Goods_Name = dto.Goods_Name;
info.ProductDate = dto.ProductDate;
info.ButcherDate = dto.ButcherDate;
info.SKUID = dto.SKUID;
info.Origin = dto.Origin;
info.Spec = dto.Spec;
info.StockCondition = dto.StockCondition;
info.Standard = dto.Standard;
info.NetContent = dto.NetContent;
info.Ingredients = dto.Ingredients;
info.WanFuBreedFactory_Name = dto.WanFuBreedFactory_Name;
info.BarCode = dto.BarCode;
info.ZaiShaCheJian = dto.ZaiShaCheJian;
infos.Add(info);
}
return SqlHelper<BeiHaiTraceBack>.BatchInsert(infos, fields);


+ 14
- 0
ButcherTraceBack/Models/BeiHaiTraceBack.cs View File

@ -44,6 +44,20 @@ namespace ButcherTraceBack.Models
public string ProductDate { get; set; }
public string SKUID { get; set; }
public string Origin { get; set; }
public string Spec { get; set; }
public string StockCondition { get; set; }
public string Standard { get; set; }
public string NetContent { get; set; }
public string Ingredients { get; set; }
public string ZaiShaCheJian { get; set; }
public string WanFuBreedFactory_Name { get; set; }
public string BarCode { get; set; }
}


Loading…
Cancel
Save