|
|
|
@ -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); |
|
|
|
|