Commit e47294ad authored by liudong1993's avatar liudong1993

bug修复

parent 94129344
...@@ -468,7 +468,8 @@ namespace Mall.Module.Property ...@@ -468,7 +468,8 @@ namespace Mall.Module.Property
if (apir.resultCode == 1) if (apir.resultCode == 1)
{ {
Dictionary<string, object> keyValues = new Dictionary<string, object>() { Dictionary<string, object> keyValues = new Dictionary<string, object>() {
{ nameof(RB_Procurement_Extend.Remark), pRemark +" 自动生成采购单据:"+ apir.data.ToString()} { nameof(RB_Procurement_Extend.Remark), pRemark +" 自动生成采购单据:"+ apir.data.ToString()},
{ nameof(RB_Procurement_Extend.FinanceId), Convert.ToInt32(apir.data.ToString())}
}; };
List<WhereHelper> wheres = new List<WhereHelper>() { List<WhereHelper> wheres = new List<WhereHelper>() {
new WhereHelper(){ new WhereHelper(){
...@@ -929,12 +930,8 @@ namespace Mall.Module.Property ...@@ -929,12 +930,8 @@ namespace Mall.Module.Property
{ {
item.Images = "[]"; item.Images = "[]";
} }
var imglist = JsonConvert.DeserializeObject<List<string>>(item.Images); item.ImageList = JsonConvert.DeserializeObject<List<string>>(item.Images);
item.ImageList = new List<string>();
//foreach (var img in imglist)
//{
// item.ImageList.Add(Config.GetFileUrl(img));
//}
item.InventoryNum = iList.Where(x => x.SuppliesId == item.Id).FirstOrDefault()?.Number ?? 0; item.InventoryNum = iList.Where(x => x.SuppliesId == item.Id).FirstOrDefault()?.Number ?? 0;
item.GoodsSpecificationList = new List<string>(); item.GoodsSpecificationList = new List<string>();
item.GoodsCategoryList = new List<string>(); item.GoodsCategoryList = new List<string>();
...@@ -1134,7 +1131,7 @@ namespace Mall.Module.Property ...@@ -1134,7 +1131,7 @@ namespace Mall.Module.Property
} }
} }
else { else {
string SpecificationName = "[规格:" + item.DefaultSpecificationName + "]"; string SpecificationName = "[\"规格:" + item.DefaultSpecificationName + "\"]";
var mModel = mList.Where(x => x.GoodsId == item.Id && x.SpecificationKey == "").FirstOrDefault(); var mModel = mList.Where(x => x.GoodsId == item.Id && x.SpecificationKey == "").FirstOrDefault();
if (mModel == null) if (mModel == null)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment