Commit 9fe4335f authored by liudong1993's avatar liudong1993

1

parent 43386d78
...@@ -22,6 +22,10 @@ namespace Mall.Model.Extend.Product ...@@ -22,6 +22,10 @@ namespace Mall.Model.Extend.Product
/// </summary> /// </summary>
public object AttrList { get; set; } public object AttrList { get; set; }
/// <summary> /// <summary>
/// 规格值
/// </summary>
public string AttrStr { get; set; }
/// <summary>
/// 查询排序 /// 查询排序
/// </summary> /// </summary>
public int? SortNum { get; set; } public int? SortNum { get; set; }
......
...@@ -12,5 +12,9 @@ namespace Mall.Model.Extend.User ...@@ -12,5 +12,9 @@ namespace Mall.Model.Extend.User
/// 账户信息 /// 账户信息
/// </summary> /// </summary>
public RB_ClientBankAccount ClientBankAccount { get; set; } public RB_ClientBankAccount ClientBankAccount { get; set; }
/// <summary>
/// ids
/// </summary>
public string SupplierIds { get; set; }
} }
} }
This diff is collapsed.
...@@ -78,7 +78,10 @@ left join rb_property_category pc on sm.CategoryId=pc.Id ...@@ -78,7 +78,10 @@ left join rb_property_category pc on sm.CategoryId=pc.Id
{ {
where += " and sm." + nameof(RB_Supplies_Material_Extend.SupplierName) + " like '%" + dmodel.SupplierName + "%'"; where += " and sm." + nameof(RB_Supplies_Material_Extend.SupplierName) + " like '%" + dmodel.SupplierName + "%'";
} }
if (dmodel.WareHouseId > 0)
{
where += " and sm." + nameof(RB_Supplies_Material_Extend.WareHouseId) + "=" + dmodel.WareHouseId;
}
if (dmodel.CategoryId > 0) if (dmodel.CategoryId > 0)
{ {
where += " and sm." + nameof(RB_Supplies_Material_Extend.CategoryId) + "=" + dmodel.CategoryId; where += " and sm." + nameof(RB_Supplies_Material_Extend.CategoryId) + "=" + dmodel.CategoryId;
......
...@@ -61,6 +61,10 @@ namespace Mall.Repository.User ...@@ -61,6 +61,10 @@ namespace Mall.Repository.User
{ {
where += $@" and a.{nameof(RB_Supplier.ID)}={dmodel.ID}"; where += $@" and a.{nameof(RB_Supplier.ID)}={dmodel.ID}";
} }
if (!string.IsNullOrEmpty(dmodel.SupplierIds))
{
where += $@" and a.{nameof(RB_Supplier.ID)} in({dmodel.SupplierIds})";
}
string sql = $@"select * from {TableName} as A where {where} order by Id desc"; string sql = $@"select * from {TableName} as A where {where} order by Id desc";
return Get<RB_Supplier_Extend>(sql).ToList(); return Get<RB_Supplier_Extend>(sql).ToList();
} }
......
...@@ -93,8 +93,11 @@ namespace Mall.WebApi.Controllers.MallBase ...@@ -93,8 +93,11 @@ namespace Mall.WebApi.Controllers.MallBase
{ {
return ApiResult.ParamIsNull("分类格式有误"); return ApiResult.ParamIsNull("分类格式有误");
} }
if (requestParm.ERPEmpId <= 0) {
return ApiResult.ParamIsNull("请传递关联ERP用户id");
}
bool flag = propertyModule.SetSyncGoodsToMaterial(WareHouseId, categoryIdList, requestParm.ERPEmpId, requestParm.ERPGroupId); bool flag = propertyModule.SetSyncGoodsToMaterial(WareHouseId, categoryIdList, requestParm.ERPEmpId, requestParm.ERPBranchId, requestParm.ERPGroupId, requestParm.TenantId, requestParm.MallBaseId, requestParm.EmpId);
if (flag) if (flag)
{ {
return ApiResult.Success(); return ApiResult.Success();
......
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