Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Property
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
liudong1993
Property
Commits
bdb034f2
Commit
bdb034f2
authored
Jul 07, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增电商商户id与小程序id
parent
94e9b6e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
RB_Supplies_WareHouseRepository.cs
...ty.Repository/Supplies/RB_Supplies_WareHouseRepository.cs
+19
-3
No files found.
Property.Repository/Supplies/RB_Supplies_WareHouseRepository.cs
View file @
bdb034f2
...
...
@@ -23,12 +23,19 @@ namespace Property.Repository
{
string
where
=
" where 1=1 "
;
where
+=
string
.
Format
(
" AND {0}={1}"
,
nameof
(
RB_Supplies_WareHouse_Extend
.
Status
),
0
);
where
+=
$@" and RB_Group_Id=
{
dmodel
.
RB_Group_Id
}
"
;
where
+=
$@" and RB_Group_Id=
{
dmodel
.
RB_Group_Id
}
"
;
if
(!
string
.
IsNullOrWhiteSpace
(
dmodel
.
Name
.
Trim
()))
{
where
+=
" and "
+
nameof
(
RB_Supplies_WareHouse_Extend
.
Name
)
+
" like '%"
+
dmodel
.
Name
.
Trim
()
+
"%'"
;
}
if
(
dmodel
.
TenantId
>
0
)
{
where
+=
" and "
+
nameof
(
RB_Supplies_WareHouse_Extend
.
TenantId
)
+
"="
+
dmodel
.
TenantId
;
}
if
(
dmodel
.
MallBaseId
>
0
)
{
where
+=
" and "
+
nameof
(
RB_Supplies_WareHouse_Extend
.
MallBaseId
)
+
"="
+
dmodel
.
MallBaseId
;
}
string
sql
=
$@" select * from RB_Supplies_WareHouse
{
where
}
order by Id desc"
;
return
GetPage
<
RB_Supplies_WareHouse_Extend
>(
pageIndex
,
pageSize
,
out
count
,
sql
).
ToList
();
}
...
...
@@ -48,7 +55,16 @@ namespace Property.Repository
{
where
+=
" and "
+
nameof
(
RB_Supplies_WareHouse_Extend
.
Name
)
+
" like '%"
+
dmodel
.
Name
+
"%'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
WareHouseIdStr
))
{
if
(
dmodel
.
TenantId
>
0
)
{
where
+=
" and "
+
nameof
(
RB_Supplies_WareHouse_Extend
.
TenantId
)
+
"="
+
dmodel
.
TenantId
;
}
if
(
dmodel
.
MallBaseId
>
0
)
{
where
+=
" and "
+
nameof
(
RB_Supplies_WareHouse_Extend
.
MallBaseId
)
+
"="
+
dmodel
.
MallBaseId
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
WareHouseIdStr
))
{
where
+=
$@" and
{
nameof
(
RB_Supplies_WareHouse
.
Id
)}
in (
{
dmodel
.
WareHouseIdStr
}
)"
;
}
...
...
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