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
56329030
Commit
56329030
authored
Sep 03, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
2641c431
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
10 deletions
+19
-10
RB_GuideCar_Guide_Extend.cs
Mall.Model/Extend/GuideCar/RB_GuideCar_Guide_Extend.cs
+4
-4
RB_GuideCar_GuideRepository.cs
Mall.Repository/GuideCar/RB_GuideCar_GuideRepository.cs
+15
-6
No files found.
Mall.Model/Extend/GuideCar/RB_GuideCar_Guide_Extend.cs
View file @
56329030
...
...
@@ -52,20 +52,20 @@ namespace Mall.Model.Extend.GuideCar
/// <summary>
/// 开始年限
/// </summary>
public
int
StartWorkYears
{
get
;
set
;
}
public
decimal
?
StartWorkYears
{
get
;
set
;
}
/// <summary>
/// 结束年限
/// </summary>
public
int
EndWorkYears
{
get
;
set
;
}
public
decimal
?
EndWorkYears
{
get
;
set
;
}
/// <summary>
/// 开始评分
/// </summary>
public
decimal
StartScore
{
get
;
set
;
}
public
decimal
?
StartScore
{
get
;
set
;
}
/// <summary>
/// 结束评分
/// </summary>
public
decimal
EndScore
{
get
;
set
;
}
public
decimal
?
EndScore
{
get
;
set
;
}
}
}
Mall.Repository/GuideCar/RB_GuideCar_GuideRepository.cs
View file @
56329030
...
...
@@ -54,20 +54,20 @@ namespace Mall.Repository.GuideCar
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_Guide_Extend
.
IsEnable
)}
=
{
query
.
IsEnable
}
"
);
}
if
(
query
.
StartWorkYears
>
0
)
if
(
query
.
StartWorkYears
.
HasValue
&&
query
.
StartWorkYears
>
0
)
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_Guide_Extend
.
WorkYears
)}
>=
{
query
.
StartWorkYears
}
"
);
}
if
(
query
.
EndWorkYears
>
0
)
if
(
query
.
EndWorkYears
.
HasValue
&&
query
.
EndWorkYears
>
0
)
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_Guide_Extend
.
WorkYears
)}
<=
{
query
.
EndWorkYears
}
"
);
}
if
(
query
.
StartScore
>
0
)
if
(
query
.
StartScore
.
HasValue
&&
query
.
StartScore
>
0
)
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_Guide_Extend
.
Score
)}
>=
{
query
.
StartScore
}
"
);
}
if
(
query
.
EndScore
>
0
)
if
(
query
.
EndScore
.
HasValue
&&
query
.
EndScore
>
0
)
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_Guide_Extend
.
Score
)}
<=
{
query
.
EndScore
}
"
);
}
...
...
@@ -127,14 +127,23 @@ namespace Mall.Repository.GuideCar
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_Guide_Extend
.
IsEnable
)}
=
{
query
.
IsEnable
}
"
);
}
if
(
query
.
StartWorkYears
>
0
)
if
(
query
.
StartWorkYears
.
HasValue
&&
query
.
StartWorkYears
>
0
)
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_Guide_Extend
.
WorkYears
)}
>=
{
query
.
StartWorkYears
}
"
);
}
if
(
query
.
EndWorkYears
>
0
)
if
(
query
.
EndWorkYears
.
HasValue
&&
query
.
EndWorkYears
>
0
)
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_Guide_Extend
.
WorkYears
)}
<=
{
query
.
EndWorkYears
}
"
);
}
if
(
query
.
StartScore
.
HasValue
&&
query
.
StartScore
>
0
)
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_Guide_Extend
.
Score
)}
>=
{
query
.
StartScore
}
"
);
}
if
(
query
.
EndScore
.
HasValue
&&
query
.
EndScore
>
0
)
{
builder
.
Append
(
$" AND a.
{
nameof
(
RB_GuideCar_Guide_Extend
.
Score
)}
<=
{
query
.
EndScore
}
"
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
StartTime
))
{
builder
.
Append
(
$" and a.
{
nameof
(
RB_GuideCar_Guide_Extend
.
CreateDate
)}
>='
{
query
.
StartTime
}
'"
);
...
...
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