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
245c8818
Commit
245c8818
authored
Apr 18, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
55a40209
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
17 deletions
+51
-17
TeacherStaticModule.cs
Edu.Module.User/TeacherStaticModule.cs
+3
-1
StudentStatController.cs
Edu.WebApi/Controllers/User/StudentStatController.cs
+48
-16
No files found.
Edu.Module.User/TeacherStaticModule.cs
View file @
245c8818
...
@@ -5,6 +5,7 @@ using Edu.Repository.User;
...
@@ -5,6 +5,7 @@ using Edu.Repository.User;
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
using
System.Threading
;
namespace
Edu.Module.User
namespace
Edu.Module.User
{
{
...
@@ -2782,12 +2783,13 @@ namespace Edu.Module.User
...
@@ -2782,12 +2783,13 @@ namespace Edu.Module.User
int
Days
=
(
endTime
-
date
).
Days
;
int
Days
=
(
endTime
-
date
).
Days
;
for
(
int
i
=
0
;
i
<
Days
;
i
++)
for
(
int
i
=
0
;
i
<
Days
;
i
++)
{
{
var
newDate
=
date
.
AddDays
(
i
);
var
newDate
=
date
.
AddDays
(
i
);
//获取老师迟到早退信息
//获取老师迟到早退信息
checkList
=
Edu
.
ThirdCore
.
QYWinXin
.
QYWeiXinHelper
.
GetWeChatCheckList
(
workUserIds
,
newDate
);
checkList
=
Edu
.
ThirdCore
.
QYWinXin
.
QYWeiXinHelper
.
GetWeChatCheckList
(
workUserIds
,
newDate
);
//获取老师与学员沟通次数
//获取老师与学员沟通次数
messageList
=
Edu
.
ThirdCore
.
QYWinXin
.
QYWeiXinHelper
.
GetWechatStudentStatic
(
workUserIds
,
newDate
);
messageList
=
Edu
.
ThirdCore
.
QYWinXin
.
QYWeiXinHelper
.
GetWechatStudentStatic
(
workUserIds
,
newDate
);
Thread
.
Sleep
(
1
*
2000
);
int
times
=
1
;
int
times
=
1
;
int
newDay
=
newDate
.
Day
;
int
newDay
=
newDate
.
Day
;
//本月最后一天
//本月最后一天
...
...
Edu.WebApi/Controllers/User/StudentStatController.cs
View file @
245c8818
...
@@ -223,19 +223,30 @@ namespace Edu.WebApi.Controllers.User
...
@@ -223,19 +223,30 @@ namespace Edu.WebApi.Controllers.User
new
ExcelColumn
(
"学生"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"学生"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"电话"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"电话"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"课程顾问"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"课程顾问"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"
协助老师
"
){
CellWidth
=
10
,
Rowspan
=
2
},
new
ExcelColumn
(
"
班主任
"
){
CellWidth
=
10
,
Rowspan
=
2
},
new
ExcelColumn
(
"合同时间"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"合同时间"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"所报课程"
){
CellWidth
=
20
,
Rowspan
=
2
},
new
ExcelColumn
(
"所报课程"
){
CellWidth
=
20
,
Rowspan
=
2
},
new
ExcelColumn
(
"当前级别"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"生日"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"客户来源"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"学习目的"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"关联来源人"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"收客渠道"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"负责人"
){
CellWidth
=
15
,
Rowspan
=
2
},
new
ExcelColumn
(
"合同状态"
){
CellWidth
=
15
,
Rowspan
=
2
},
}
}
};
};
header
.
ExcelRows
.
Add
(
new
ExcelColumn
(
"开课时间"
)
{
CellWidth
=
15
,
Rowspan
=
2
});
header
.
ExcelRows
.
Add
(
new
ExcelColumn
(
"结课时间"
)
{
CellWidth
=
15
,
Rowspan
=
2
});
header
.
ExcelRows
.
Add
(
new
ExcelColumn
(
"当前级别"
)
{
CellWidth
=
15
,
Rowspan
=
2
});
header
.
ExcelRows
.
Add
(
new
ExcelColumn
(
"生日"
)
{
CellWidth
=
15
,
Rowspan
=
2
});
if
(
base
.
UserInfo
.
AccountType
!=
AccountTypeEnum
.
Teacher
)
{
header
.
ExcelRows
.
Add
(
new
ExcelColumn
(
"客户来源"
)
{
CellWidth
=
15
,
Rowspan
=
2
});
}
header
.
ExcelRows
.
Add
(
new
ExcelColumn
(
"学习目的"
)
{
CellWidth
=
15
,
Rowspan
=
2
});
if
(
base
.
UserInfo
.
AccountType
!=
AccountTypeEnum
.
Teacher
)
{
header
.
ExcelRows
.
Add
(
new
ExcelColumn
(
"关联来源人"
)
{
CellWidth
=
15
,
Rowspan
=
2
});
header
.
ExcelRows
.
Add
(
new
ExcelColumn
(
"收客渠道"
)
{
CellWidth
=
15
,
Rowspan
=
2
});
}
header
.
ExcelRows
.
Add
(
new
ExcelColumn
(
"负责人"
)
{
CellWidth
=
15
,
Rowspan
=
2
});
header
.
ExcelRows
.
Add
(
new
ExcelColumn
(
"合同状态"
)
{
CellWidth
=
15
,
Rowspan
=
2
});
ExcelDataSource
subHeader
=
new
ExcelDataSource
()
ExcelDataSource
subHeader
=
new
ExcelDataSource
()
{
{
ExcelRows
=
new
List
<
ExcelColumn
>()
ExcelRows
=
new
List
<
ExcelColumn
>()
...
@@ -250,12 +261,24 @@ namespace Edu.WebApi.Controllers.User
...
@@ -250,12 +261,24 @@ namespace Edu.WebApi.Controllers.User
new
ExcelColumn
(),
new
ExcelColumn
(),
new
ExcelColumn
(),
new
ExcelColumn
(),
new
ExcelColumn
(),
new
ExcelColumn
(),
new
ExcelColumn
(),
new
ExcelColumn
(),
new
ExcelColumn
(),
new
ExcelColumn
(),
}
}
};
};
if
(
base
.
UserInfo
.
AccountType
!=
AccountTypeEnum
.
Teacher
)
{
subHeader
.
ExcelRows
.
Add
(
new
ExcelColumn
());
}
subHeader
.
ExcelRows
.
Add
(
new
ExcelColumn
());
if
(
base
.
UserInfo
.
AccountType
!=
AccountTypeEnum
.
Teacher
)
{
subHeader
.
ExcelRows
.
Add
(
new
ExcelColumn
());
subHeader
.
ExcelRows
.
Add
(
new
ExcelColumn
());
}
subHeader
.
ExcelRows
.
Add
(
new
ExcelColumn
());
subHeader
.
ExcelRows
.
Add
(
new
ExcelColumn
());
var
rootObj
=
JObject
.
Parse
(
JsonHelper
.
Serialize
(
list
));
var
rootObj
=
JObject
.
Parse
(
JsonHelper
.
Serialize
(
list
));
int
MaxMonth
=
rootObj
.
GetInt
(
"MaxMonth"
);
int
MaxMonth
=
rootObj
.
GetInt
(
"MaxMonth"
);
...
@@ -302,12 +325,21 @@ namespace Edu.WebApi.Controllers.User
...
@@ -302,12 +325,21 @@ namespace Edu.WebApi.Controllers.User
columns
.
Add
(
new
ExcelColumn
(
teacherNamager
));
columns
.
Add
(
new
ExcelColumn
(
teacherNamager
));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"ContractSTime"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"ContractSTime"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"CourseName"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"CourseName"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"BeginClassDate"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"GraduationTime"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"JapanBaseInfo"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"JapanBaseInfo"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"StuBirthStr"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"StuBirthStr"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"CreateTypeName"
)));
if
(
base
.
UserInfo
.
AccountType
!=
AccountTypeEnum
.
Teacher
)
{
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"CreateTypeName"
)));
}
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"StuPurposeName"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"StuPurposeName"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"StuSourceIdName"
)));
if
(
base
.
UserInfo
.
AccountType
!=
AccountTypeEnum
.
Teacher
)
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"StuChannelName"
)));
{
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"StuSourceIdName"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"StuChannelName"
)));
}
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"CreateByName"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"CreateByName"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"StuGuestStateName"
)));
columns
.
Add
(
new
ExcelColumn
(
dObj
.
GetStringValue
(
"StuGuestStateName"
)));
...
...
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