Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
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
黄奎
Education
Commits
2325478c
Commit
2325478c
authored
Aug 05, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
9749668e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
16 deletions
+33
-16
RB_Education_Contract_ViewModel.cs
...del/ViewModel/Contract/RB_Education_Contract_ViewModel.cs
+10
-5
RB_Education_ContractRepository.cs
Edu.Repository/Contract/RB_Education_ContractRepository.cs
+16
-9
EducationContractController.cs
Edu.WebApi/Controllers/Course/EducationContractController.cs
+7
-2
No files found.
Edu.Model/ViewModel/Contract/RB_Education_Contract_ViewModel.cs
View file @
2325478c
...
...
@@ -196,9 +196,6 @@ namespace Edu.Model.ViewModel.Contract
}
}
/// <summary>
/// 学员生日字符串
/// </summary>
...
...
@@ -234,7 +231,6 @@ namespace Edu.Model.ViewModel.Contract
}
}
/// <summary>
/// 第二期-支付日期
/// </summary>
...
...
@@ -518,10 +514,19 @@ namespace Edu.Model.ViewModel.Contract
/// </summary>
public
string
SchoolStatusStr
{
get
;
set
;
}
/// <summary>
/// 行政审核状态
/// </summary>
public
string
AdminStatusStr
{
get
;
set
;
}
/// <summary>
/// 是否查询所有
/// </summary>
public
int
IsQueryAll
{
get
;
set
;
}
/// <summary>
/// 查询合同人员
/// </summary>
public
int
QCreateBy
{
get
;
set
;
}
}
}
Edu.Repository/Contract/RB_Education_ContractRepository.cs
View file @
2325478c
...
...
@@ -91,22 +91,29 @@ namespace Edu.Repository.Contract
where
+=
$@" AND
{
nameof
(
RB_Education_Contract_ViewModel
.
Status
)}
NOT IN(0,4) "
;
}
}
if
(
demodel
.
IsQueryAll
==
1
)
{
if
(
demodel
.
QCreateBy
>
0
)
{
where
+=
$@" AND
{
nameof
(
RB_Education_Contract_ViewModel
.
CreateBy
)}
=
{
demodel
.
QCreateBy
}
"
;
}
}
else
{
if
(
demodel
.
CreateBy
>
0
)
{
where
+=
$@" AND
{
nameof
(
RB_Education_Contract_ViewModel
.
CreateBy
)}
=
{
demodel
.
CreateBy
}
"
;
}
if
(
demodel
.
Status
>=
0
)
}
if
(
demodel
.
Status
>=
0
)
{
if
(
demodel
.
Status
==
5
)
{
if
(
demodel
.
Status
==
5
)
{
where
+=
$@" AND
{
nameof
(
RB_Education_Contract_ViewModel
.
Status
)}
in(2,5)"
;
}
else
{
where
+=
$@" AND
{
nameof
(
RB_Education_Contract_ViewModel
.
Status
)}
=
{
demodel
.
Status
}
"
;
}
where
+=
$@" AND
{
nameof
(
RB_Education_Contract_ViewModel
.
Status
)}
in(2,5)"
;
}
else
{
where
+=
$@" AND
{
nameof
(
RB_Education_Contract_ViewModel
.
Status
)}
=
{
demodel
.
Status
}
"
;
}
}
string
sql
=
$@" SELECT * FROM RB_Education_Contract WHERE
{
where
}
ORDER BY Id DESC "
;
...
...
Edu.WebApi/Controllers/Course/EducationContractController.cs
View file @
2325478c
...
...
@@ -108,10 +108,15 @@ namespace Edu.WebApi.Controllers.Course
CType
=
(
ContractTypeEnum
)
base
.
ParmJObj
.
GetInt
(
"CType"
),
Status
=
base
.
ParmJObj
.
GetInt
(
"Status"
),
StudentName
=
base
.
ParmJObj
.
GetStringValue
(
"StudentName"
),
IsAduit
=
base
.
ParmJObj
.
GetInt
(
"IsAduit"
)
IsAduit
=
base
.
ParmJObj
.
GetInt
(
"IsAduit"
),
IsQueryAll
=
base
.
ParmJObj
.
GetInt
(
"IsQueryAll"
),
QCreateBy
=
base
.
ParmJObj
.
GetInt
(
"QCreateBy"
),
};
dmodel
.
Group_Id
=
userInfo
.
Group_Id
;
dmodel
.
CreateBy
=
userInfo
.
Id
;
if
(
dmodel
.
IsQueryAll
==
0
)
{
dmodel
.
CreateBy
=
userInfo
.
Id
;
}
var
list
=
educationContractModule
.
GetEducationContractPageListModule_V3
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
count
,
dmodel
);
pageModel
.
Count
=
Convert
.
ToInt32
(
count
);
pageModel
.
PageData
=
list
.
Select
(
x
=>
new
...
...
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