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
572034e9
Commit
572034e9
authored
4 years ago
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
24bfa636
97d10775
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
110 additions
and
8 deletions
+110
-8
Config.cs
Edu.Common/Config.cs
+24
-0
RB_Student_BackRecord.cs
Edu.Model/Entity/Course/RB_Student_BackRecord.cs
+1
-1
RB_Flow_AduitInfo.cs
Edu.Model/Entity/Flow/RB_Flow_AduitInfo.cs
+1
-1
OrderModule2.cs
Edu.Module.Course/OrderModule2.cs
+71
-5
RB_AccountRepository.cs
Edu.Repository/User/RB_AccountRepository.cs
+8
-0
appsettings.json
Edu.WebApi/appsettings.json
+5
-1
No files found.
Edu.Common/Config.cs
View file @
572034e9
...
...
@@ -347,5 +347,29 @@ namespace Edu.Common
return
BackClassFlowId
;
}
}
/// <summary>
/// 分区校长岗位编号
/// </summary>
public
static
int
SchoolPostId
{
get
{
int
.
TryParse
(
ReadConfigKey
(
"SchoolPostId"
),
out
int
SchoolPostId
);
return
SchoolPostId
;
}
}
/// <summary>
/// 教务长岗位编号
/// </summary>
public
static
int
JiaoWuZhang
{
get
{
int
.
TryParse
(
ReadConfigKey
(
"JiaoWuZhang"
),
out
int
JiaoWuZhang
);
return
JiaoWuZhang
;
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Edu.Model/Entity/Course/RB_Student_BackRecord.cs
View file @
572034e9
...
...
@@ -20,7 +20,7 @@ namespace Edu.Model.Entity.Course
/// <summary>
/// 工作流id
/// </summary>
public
int
Flow
Id
{
get
;
set
;
}
public
int
Backrelevance
Id
{
get
;
set
;
}
/// <summary>
/// 审核id
...
...
This diff is collapsed.
Click to expand it.
Edu.Model/Entity/Flow/RB_Flow_AduitInfo.cs
View file @
572034e9
...
...
@@ -48,7 +48,7 @@ namespace Edu.Model.Entity.Flow
public
int
IsSpecNode
{
get
;
set
;
}
/// <summary>
/// 1-班级教师,2-关联销售,3-分区校长 AuditType为2时使用
/// 1-班级教师,2-关联销售,3-分区校长
,4-教务长
AuditType为2时使用
/// </summary>
public
int
PostType
{
get
;
set
;
}
...
...
This diff is collapsed.
Click to expand it.
Edu.Module.Course/OrderModule2.cs
View file @
572034e9
...
...
@@ -7,6 +7,7 @@ using System;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Linq
;
using
Edu.Model.Entity.Course
;
namespace
Edu.Module.Course
{
...
...
@@ -36,7 +37,6 @@ namespace Edu.Module.Course
private
readonly
RB_FlowRepository
flowRepository
=
new
RB_FlowRepository
();
/// <summary>
/// 创建退课流程
/// </summary>
...
...
@@ -117,23 +117,89 @@ namespace Edu.Module.Course
{
if
(
item
.
FlowAduitList
!=
null
&&
item
.
FlowAduitList
.
Count
>
0
)
{
string
AuditDescription
=
""
;
//审核人名称
string
AuditedId
=
""
;
//审核人
foreach
(
var
subItem
in
item
.
FlowAduitList
)
{
//指定人员
if
(
subItem
.
AuditType
==
1
)
{
AuditedId
+=
subItem
.
UserId
+
","
;
}
//指定角色
else
if
(
subItem
.
AuditType
==
2
)
{
//本班教师审核
if
(
subItem
.
PostType
==
1
)
{
AuditedId
+=
teacherId
+
","
;
subItem
.
UserId
=
teacherId
;
}
//关联销售审核
else
if
(
subItem
.
PostType
==
2
)
{
AuditedId
+=
orderModel
.
EnterID
+
","
;
subItem
.
UserId
=
orderModel
.
EnterID
;
}
//分区校长审核
else
if
(
subItem
.
PostType
==
3
)
{
var
headmaster
=
accountRepository
.
GetAccountListExtRepository
(
new
Model
.
ViewModel
.
User
.
RB_Account_ViewModel
()
{
Post_Id
=
Common
.
Config
.
SchoolPostId
,
School_Id
=
classModel
.
School_Id
,
})?.
FirstOrDefault
();
AuditedId
+=
(
headmaster
?.
Id
??
0
)
+
","
;
subItem
.
UserId
=
(
headmaster
?.
Id
??
0
);
}
else
if
(
subItem
.
PostType
==
4
)
{
var
headmaster
=
accountRepository
.
GetAccountListExtRepository
(
new
Model
.
ViewModel
.
User
.
RB_Account_ViewModel
()
{
Post_Id
=
Common
.
Config
.
JiaoWuZhang
,
School_Id
=
classModel
.
School_Id
,
})?.
FirstOrDefault
();
AuditedId
+=
(
headmaster
?.
Id
??
0
)
+
","
;
subItem
.
UserId
=
(
headmaster
?.
Id
??
0
);
}
}
}
var
backLevance
=
new
RB_Student_BackRelevance
()
{
ConditionId
=
backClassModel
.
BackId
,
AuditDescription
=
AuditDescription
,
AuditedId
=
""
,
AuditWay
=
item
.
FlowAduitList
[
0
].
AuditWay
,
AuditType
=
0
,
OriginalAuditId
=
0
,
RoleOrInitiator
=
0
,
ToAuditId
=
AuditedId
.
TrimEnd
(
','
),
Sort
=
item
.
SortNum
,
SpecialNode
=
item
.
FlowAduitList
[
0
].
IsSpecNode
,
Stauts
=
1
,
WorkFlowId
=
Common
.
Config
.
BackClassFlowId
,
};
var
backLevanceId
=
student_BackRelevanceRepository
.
Insert
(
backLevance
);
backLevance
.
Id
=
backLevanceId
;
foreach
(
var
subItem
in
item
.
FlowAduitList
)
{
var
recordModel
=
new
RB_Student_BackRecord_ViewModel
()
{
AuditStatus
=
1
,
AuditId
=
subItem
.
UserId
,
AuditEmId
=
subItem
.
UserId
,
CreateBy
=
userinfo
.
Id
,
CreateTime
=
DateTime
.
Now
,
UpdateBy
=
userinfo
.
Id
,
UpdateTime
=
DateTime
.
Now
,
Description
=
""
,
BackrelevanceId
=
backLevance
.
Id
,
};
student_BackRecordRepository
.
Insert
(
recordModel
);
}
}
}
return
flag
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Edu.Repository/User/RB_AccountRepository.cs
View file @
572034e9
...
...
@@ -125,6 +125,14 @@ WHERE 1=1
{
where
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Account_ViewModel
.
AccountId
),
query
.
AccountId
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
PostName
))
{
where
.
AppendFormat
(
" AND p.{0}='{1}' "
,
nameof
(
RB_Account_ViewModel
.
PostName
),
query
.
PostName
);
}
if
(
query
.
Post_Id
>
0
)
{
where
.
AppendFormat
(
" AND p.{0}={1} "
,
nameof
(
RB_Account_ViewModel
.
Post_Id
),
query
.
Post_Id
);
}
}
StringBuilder
builder
=
new
StringBuilder
();
...
...
This diff is collapsed.
Click to expand it.
Edu.WebApi/appsettings.json
View file @
572034e9
...
...
@@ -44,5 +44,9 @@
//是否是线上环境
"IsOnline"
:
false
,
//退课流程编号
"BackClassFlowId"
:
1
"BackClassFlowId"
:
1
,
//分区校长岗位编号
"SchoolPostId"
:
2
,
//教务长
"JiaoWuZhang"
:
8
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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