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
a964fe06
Commit
a964fe06
authored
Jul 22, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询修改
parent
b1766434
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
RB_Assess_CategoryRepository.cs
Mall.Repository/Assess/RB_Assess_CategoryRepository.cs
+8
-1
No files found.
Mall.Repository/Assess/RB_Assess_CategoryRepository.cs
View file @
a964fe06
...
...
@@ -4,6 +4,7 @@ using System.Text;
using
Mall.Model.Entity.Assess
;
using
Mall.Model.Extend.Assess
;
using
System.Linq
;
using
VT.FW.DB.Dapper
;
namespace
Mall.Repository.Assess
{
...
...
@@ -23,6 +24,7 @@ namespace Mall.Repository.Assess
/// <returns></returns>
public
List
<
RB_Assess_Category_Extend
>
GetPageList
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Assess_Category_Extend
dmodel
)
{
var
parameters
=
new
DynamicParameters
();
string
where
=
$" 1=1 and e.
{
nameof
(
RB_Assess_Category_Extend
.
Status
)}
=0 "
;
if
(
dmodel
.
TenantId
>
0
)
{
where
+=
$@" and e.
{
nameof
(
RB_Assess_Category_Extend
.
TenantId
)}
=
{
dmodel
.
TenantId
}
"
;
...
...
@@ -39,8 +41,13 @@ namespace Mall.Repository.Assess
{
where
+=
$@" and e.
{
nameof
(
RB_Assess_Category_Extend
.
Id
)}
=
{
dmodel
.
Id
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
Name
))
{
where
+=
$@" and e.
{
nameof
(
RB_Assess_Category_Extend
.
Name
)}
like @Name"
;
parameters
.
Add
(
"Name"
,
"%"
+
dmodel
.
Name
+
"%"
);
}
string
sql
=
$@"select * from RB_Assess_Category e where
{
where
}
order by e.Id desc"
;
return
GetPage
<
RB_Assess_Category_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
sql
).
ToList
();
return
GetPage
<
RB_Assess_Category_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
sql
,
parameters
).
ToList
();
}
/// <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