Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
9fe4335f
Commit
9fe4335f
authored
Jul 06, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
43386d78
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
316 additions
and
4 deletions
+316
-4
RB_Goods_SpecificationPrice_Extend.cs
...odel/Extend/Product/RB_Goods_SpecificationPrice_Extend.cs
+4
-0
RB_Supplier_Extend.cs
Mall.Model/Extend/User/RB_Supplier_Extend.cs
+4
-0
PropertyModule.cs
Mall.Module.Property/PropertyModule.cs
+296
-2
RB_Supplies_MaterialRepository.cs
Mall.Repository/Property/RB_Supplies_MaterialRepository.cs
+4
-1
RB_SupplierRepository.cs
Mall.Repository/User/RB_SupplierRepository.cs
+4
-0
PropertyController.cs
Mall.WebApi/Controllers/Property/PropertyController.cs
+4
-1
No files found.
Mall.Model/Extend/Product/RB_Goods_SpecificationPrice_Extend.cs
View file @
9fe4335f
...
@@ -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
;
}
...
...
Mall.Model/Extend/User/RB_Supplier_Extend.cs
View file @
9fe4335f
...
@@ -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
;
}
}
}
}
}
Mall.Module.Property/PropertyModule.cs
View file @
9fe4335f
This diff is collapsed.
Click to expand it.
Mall.Repository/Property/RB_Supplies_MaterialRepository.cs
View file @
9fe4335f
...
@@ -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
;
...
...
Mall.Repository/User/RB_SupplierRepository.cs
View file @
9fe4335f
...
@@ -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
();
}
}
...
...
Mall.WebApi/Controllers/Property/PropertyController.cs
View file @
9fe4335f
...
@@ -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
.
ERP
Grou
pId
);
bool
flag
=
propertyModule
.
SetSyncGoodsToMaterial
(
WareHouseId
,
categoryIdList
,
requestParm
.
ERPEmpId
,
requestParm
.
ERP
BranchId
,
requestParm
.
ERPGroupId
,
requestParm
.
TenantId
,
requestParm
.
MallBaseId
,
requestParm
.
Em
pId
);
if
(
flag
)
if
(
flag
)
{
{
return
ApiResult
.
Success
();
return
ApiResult
.
Success
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment