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
c95042c3
Commit
c95042c3
authored
Aug 05, 2021
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
ac3f9ef0
cd93417c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
17 deletions
+43
-17
RB_BackClass_Protocol_ViewModel.cs
...del/ViewModel/Contract/RB_BackClass_Protocol_ViewModel.cs
+5
-0
RB_Education_Contract_ViewModel.cs
...del/ViewModel/Contract/RB_Education_Contract_ViewModel.cs
+10
-5
EducationContractModule.cs
Edu.Module.Course/EducationContractModule.cs
+0
-1
RB_BackClass_ProtocolRepository.cs
Edu.Repository/Contract/RB_BackClass_ProtocolRepository.cs
+4
-0
RB_Education_ContractRepository.cs
Edu.Repository/Contract/RB_Education_ContractRepository.cs
+16
-9
EducationContractController.cs
Edu.WebApi/Controllers/Course/EducationContractController.cs
+8
-2
No files found.
Edu.Model/ViewModel/Contract/RB_BackClass_Protocol_ViewModel.cs
View file @
c95042c3
...
...
@@ -15,6 +15,11 @@ namespace Edu.Model.ViewModel.Contract
/// </summary>
public
int
IsQueryAll
{
get
;
set
;
}
/// <summary>
/// 查询业务员
/// </summary>
public
int
QCreateBy
{
get
;
set
;
}
/// <summary>
/// 订单编号
/// </summary>
...
...
Edu.Model/ViewModel/Contract/RB_Education_Contract_ViewModel.cs
View file @
c95042c3
...
...
@@ -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.Module.Course/EducationContractModule.cs
View file @
c95042c3
...
...
@@ -262,7 +262,6 @@ namespace Edu.Module.Course
var
amodel
=
alist
.
Where
(
x
=>
x
.
Id
==
item
.
CreateBy
).
FirstOrDefault
();
item
.
CreateByName
=
amodel
?.
AccountName
??
""
;
item
.
CreateByPhoto
=
amodel
?.
UserIcon
??
""
;
if
(
item
.
Status
==
0
)
{
item
.
SchoolStatusStr
=
"草稿"
;
...
...
Edu.Repository/Contract/RB_BackClass_ProtocolRepository.cs
View file @
c95042c3
...
...
@@ -62,6 +62,10 @@ WHERE 1=1
{
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_BackClass_Protocol_ViewModel
.
CreateBy
),
query
.
CreateBy
);
}
if
(
query
.
QCreateBy
>
0
)
{
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_BackClass_Protocol_ViewModel
.
CreateBy
),
query
.
QCreateBy
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
PartyAName
))
{
builder
.
AppendFormat
(
" AND A.{0} LIKE @PartyAName "
,
nameof
(
RB_BackClass_Protocol_ViewModel
.
PartyAName
));
...
...
Edu.Repository/Contract/RB_Education_ContractRepository.cs
View file @
c95042c3
...
...
@@ -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 @
c95042c3
...
...
@@ -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
...
...
@@ -451,6 +456,7 @@ namespace Edu.WebApi.Controllers.Course
QOrderId
=
base
.
ParmJObj
.
GetInt
(
"QOrderId"
),
ProtocolNum
=
base
.
ParmJObj
.
GetStringValue
(
"ProtocolNum"
),
IsQueryAll
=
base
.
ParmJObj
.
GetInt
(
"IsQueryAll"
),
QCreateBy
=
base
.
ParmJObj
.
GetInt
(
"QCreateBy"
),
};
query
.
Group_Id
=
userInfo
.
Group_Id
;
if
(
query
.
IsQueryAll
==
0
)
...
...
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