|
|
|
@ -53,7 +53,7 @@ namespace ButcherTraceBack.Controllers |
|
|
|
|
|
|
|
public string InsertProductTrace([System.Web.Http.FromBody]string json) |
|
|
|
{ |
|
|
|
return InsertProductTrace(json, "Code", "GoodsImage", "UseMedicineImage", "ImmunityImage", "QuarantinePassImage", "GoodsPassImage", "ExpirationTime"); |
|
|
|
return InsertProductTrace(json, "Code", "GoodsImage", "UseMedicineImage", "ImmunityImage", "QuarantinePassImage", "GoodsPassImage", "ExpirationTime", "CutUpDate", "Goods_Name", "ProductDate", "ButcherDate"); |
|
|
|
} |
|
|
|
|
|
|
|
string InsertProductTrace(string json, params string[] fields) |
|
|
|
@ -78,6 +78,10 @@ namespace ButcherTraceBack.Controllers |
|
|
|
info.QuarantinePassImage = dto.QuarantinePassImage; |
|
|
|
info.GoodsPassImage = dto.GoodsPassImage; |
|
|
|
info.ExpirationTime = dto.ExpirationTime; |
|
|
|
info.CutUpDate = dto.CutUpDate; |
|
|
|
info.Goods_Name = dto.Goods_Name; |
|
|
|
info.ProductDate = dto.ProductDate; |
|
|
|
info.ButcherDate = dto.ButcherDate; |
|
|
|
infos.Add(info); |
|
|
|
} |
|
|
|
return SqlHelper<BeiHaiTraceBack>.BatchInsert(infos, fields); |
|
|
|
|