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
00699f14
Commit
00699f14
authored
Aug 19, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
f41ee42c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
12 deletions
+28
-12
RB_GoodsRepository.cs
Mall.Repository/Product/RB_GoodsRepository.cs
+7
-10
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+2
-2
SupplierController.cs
Mall.WebApi/Controllers/User/SupplierController.cs
+19
-0
No files found.
Mall.Repository/Product/RB_GoodsRepository.cs
View file @
00699f14
...
@@ -50,10 +50,10 @@ namespace Mall.Repository.Product
...
@@ -50,10 +50,10 @@ namespace Mall.Repository.Product
{
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
MallBaseId
)}
=
{
dmodel
.
MallBaseId
}
"
;
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
MallBaseId
)}
=
{
dmodel
.
MallBaseId
}
"
;
}
}
if
(
dmodel
.
RetailStore
>
-
1
)
//
if (dmodel.RetailStore > -1)
{
//
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
RetailStore
)}
=
{
dmodel
.
RetailStore
}
"
;
//
where += $@" and g.{nameof(RB_Goods_Extend.RetailStore)}={dmodel.RetailStore}";
}
//
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
StoresIds
))
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
StoresIds
))
{
{
where
+=
$@" and FIND_IN_SET('
{
dmodel
.
StoresIds
}
',g.
{
nameof
(
RB_Goods_Extend
.
StoresIds
)}
)"
;
where
+=
$@" and FIND_IN_SET('
{
dmodel
.
StoresIds
}
',g.
{
nameof
(
RB_Goods_Extend
.
StoresIds
)}
)"
;
...
@@ -1612,7 +1612,7 @@ where {where} group by g.Id order by col.Id desc";
...
@@ -1612,7 +1612,7 @@ where {where} group by g.Id order by col.Id desc";
public
List
<
RB_Goods_Extend
>
GetSynchroPageList
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Goods_Extend
dmodel
,
bool
IsAllClassify
=
false
)
public
List
<
RB_Goods_Extend
>
GetSynchroPageList
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Goods_Extend
dmodel
,
bool
IsAllClassify
=
false
)
{
{
DynamicParameters
parameters
=
new
DynamicParameters
();
DynamicParameters
parameters
=
new
DynamicParameters
();
string
where
=
$" 1=1 and g.
{
nameof
(
RB_Goods_Extend
.
Status
)}
=0 "
;
string
where
=
$" 1=1 and g.
{
nameof
(
RB_Goods_Extend
.
Status
)}
=0
and g.RetailStore=1
"
;
string
sourceWhere
=
""
;
string
sourceWhere
=
""
;
if
(
dmodel
.
GoodsClassify
==
3
)
if
(
dmodel
.
GoodsClassify
==
3
)
{
//查询非司导商品
{
//查询非司导商品
...
@@ -1638,10 +1638,7 @@ where {where} group by g.Id order by col.Id desc";
...
@@ -1638,10 +1638,7 @@ where {where} group by g.Id order by col.Id desc";
{
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
MallBaseId
)}
=
{
dmodel
.
MallBaseId
}
"
;
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
MallBaseId
)}
=
{
dmodel
.
MallBaseId
}
"
;
}
}
if
(
dmodel
.
RetailStore
>
-
1
)
{
where
+=
$@" and g.
{
nameof
(
RB_Goods_Extend
.
RetailStore
)}
=
{
dmodel
.
RetailStore
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
StoresIds
))
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
StoresIds
))
{
{
where
+=
$@" and FIND_IN_SET('
{
dmodel
.
StoresIds
}
',g.
{
nameof
(
RB_Goods_Extend
.
StoresIds
)}
)"
;
where
+=
$@" and FIND_IN_SET('
{
dmodel
.
StoresIds
}
',g.
{
nameof
(
RB_Goods_Extend
.
StoresIds
)}
)"
;
...
@@ -1658,7 +1655,7 @@ where {where} group by g.Id order by col.Id desc";
...
@@ -1658,7 +1655,7 @@ where {where} group by g.Id order by col.Id desc";
}
}
else
if
(
dmodel
.
Isynchro
==
2
)
else
if
(
dmodel
.
Isynchro
==
2
)
{
{
where
+=
$@" and
synchro.
{
nameof
(
RB_Goods_Extend
.
Isynchro
)}
=0"
;
where
+=
$@" and
IFNULL(synchro.
{
nameof
(
RB_Goods_Extend
.
Isynchro
)}
,0)
=0"
;
}
}
}
}
sourceWhere
=
$@"and TenantId=
{
dmodel
.
SourceTenantId
}
and MallBaseId=
{
dmodel
.
SourceMallBaseId
}
"
;
sourceWhere
=
$@"and TenantId=
{
dmodel
.
SourceTenantId
}
and MallBaseId=
{
dmodel
.
SourceMallBaseId
}
"
;
...
...
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
00699f14
...
@@ -3082,8 +3082,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -3082,8 +3082,8 @@ namespace Mall.WebApi.Controllers.MallBase
};
};
demodel
.
SourceMallBaseId
=
parms
.
Tenant
Id
;
demodel
.
SourceMallBaseId
=
parms
.
MallBase
Id
;
demodel
.
SourceTenantId
=
parms
.
MallBase
Id
;
demodel
.
SourceTenantId
=
parms
.
Tenant
Id
;
decimal
MinProfitRate
=
0
;
decimal
MinProfitRate
=
0
;
if
(
demodel
.
TenantId
==
1
)
if
(
demodel
.
TenantId
==
1
)
{
{
...
...
Mall.WebApi/Controllers/User/SupplierController.cs
View file @
00699f14
...
@@ -193,6 +193,25 @@ namespace Mall.WebApi.Controllers.User
...
@@ -193,6 +193,25 @@ namespace Mall.WebApi.Controllers.User
return
ApiResult
.
Success
(
""
,
oldLogisticsList
);
return
ApiResult
.
Success
(
""
,
oldLogisticsList
);
}
}
/// <summary>
/// 获取供应商下拉列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
public
ApiResult
GetAllSupplierList
()
{
var
parms
=
RequestParm
;
var
query
=
JsonConvert
.
DeserializeObject
<
RB_Supplier_Extend
>(
RequestParm
.
msg
.
ToString
());
// query.TenantId = UserInfo.TenantId;
// query.MallBaseId = parms.MallBaseId;
var
oldLogisticsList
=
supplierModule
.
GetList
(
query
);
return
ApiResult
.
Success
(
""
,
oldLogisticsList
);
}
/// <summary>
/// <summary>
/// 获取分销商下拉列表
/// 获取分销商下拉列表
/// </summary>
/// </summary>
...
...
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