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
a97122ca
Commit
a97122ca
authored
Apr 15, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
0bf269eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
15 deletions
+73
-15
UserCenterController.cs
Edu.WebApi/Controllers/User/UserCenterController.cs
+73
-15
No files found.
Edu.WebApi/Controllers/User/UserCenterController.cs
View file @
a97122ca
...
@@ -44,6 +44,11 @@ namespace Edu.WebApi.Controllers.User
...
@@ -44,6 +44,11 @@ namespace Edu.WebApi.Controllers.User
/// </summary>
/// </summary>
public
readonly
AttendanceRecodModule
attendRecodeModule
=
new
AttendanceRecodModule
();
public
readonly
AttendanceRecodModule
attendRecodeModule
=
new
AttendanceRecodModule
();
/// <summary>
/// 部门处理类对象
/// </summary>
private
readonly
DepartmentModule
departmentModule
=
new
DepartmentModule
();
#
region
字典管理
#
region
字典管理
/// <summary>
/// <summary>
...
@@ -314,22 +319,75 @@ namespace Edu.WebApi.Controllers.User
...
@@ -314,22 +319,75 @@ namespace Edu.WebApi.Controllers.User
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
query
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
query
.
DeptId
=
base
.
UserInfo
.
DeptId
;
query
.
DeptId
=
base
.
UserInfo
.
DeptId
;
var
list
=
noticeModule
.
GetMyNoticePageList
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
var
list
=
noticeModule
.
GetMyNoticePageList
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
pageModel
.
Count
=
rowsCount
;
List
<
object
>
result
=
new
List
<
object
>()
;
pageModel
.
PageData
=
list
.
Select
(
x
=>
new
foreach
(
var
item
in
list
)
{
{
x
.
Id
,
var
fileList
=
new
List
<
FileModel
>();
x
.
From
,
if
(!
string
.
IsNullOrEmpty
(
item
.
File
))
x
.
Number
,
{
x
.
Title
,
try
x
.
NoticeState
,
{
NoticeStateName
=
x
.
NoticeState
.
ToName
(),
fileList
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
List
<
FileModel
>>(
item
.
File
);
x
.
Is_Top
,
}
x
.
ReadNum
,
catch
(
Exception
ex
)
x
.
UpdateBy
,
{
UpdateByName
=
UserReidsCache
.
GetUserLoginInfo
(
x
.
UpdateBy
)?.
AccountName
??
""
,
Common
.
Plugin
.
LogHelper
.
Write
(
ex
,
"GetMyNoticePageList_Item"
);
UpdateTime
=
x
.
UpdateTime
.
HasValue
?
x
.
UpdateTime
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
,
}
UpdateTimeStr
=
Common
.
ConvertHelper
.
FormatDate
(
x
.
UpdateTime
)
}
});
List
<
string
>
ccList
=
new
List
<
string
>();
if
(!
string
.
IsNullOrEmpty
(
item
.
CopyPeople
))
{
var
peopleList
=
Common
.
ConvertHelper
.
StringToList
(
item
.
CopyPeople
);
foreach
(
var
sItem
in
peopleList
)
{
string
aName
=
UserReidsCache
.
GetUserLoginInfo
(
sItem
)?.
AccountName
??
""
;
if
(!
string
.
IsNullOrEmpty
(
aName
))
{
ccList
.
Add
(
aName
);
}
}
}
List
<
string
>
toList
=
new
List
<
string
>();
if
(!
string
.
IsNullOrEmpty
(
item
.
To
))
{
var
deptList
=
Common
.
ConvertHelper
.
StringToList
(
item
.
To
);
if
(
deptList
!=
null
&&
deptList
.
Count
>
0
)
{
var
departMentList
=
departmentModule
.
GetDepartmentListModule
(
new
RB_Department_ViewModel
()
{
QDeptIds
=
string
.
Join
(
","
,
deptList
)
});
foreach
(
var
dItem
in
departMentList
)
{
toList
.
Add
(
dItem
.
DeptName
);
}
}
}
if
(
toList
!=
null
&&
toList
.
Count
==
0
)
{
toList
.
Add
(
"全公司"
);
}
var
obj
=
new
{
item
.
Id
,
item
.
From
,
item
.
Number
,
item
.
Title
,
item
.
NoticeState
,
NoticeStateName
=
item
.
NoticeState
.
ToName
(),
item
.
Is_Top
,
item
.
ReadNum
,
item
.
UpdateBy
,
UpdateByName
=
UserReidsCache
.
GetUserLoginInfo
(
item
.
UpdateBy
)?.
AccountName
??
""
,
UpdateTime
=
Common
.
ConvertHelper
.
FormatDate2
(
item
.
UpdateTime
),
UpdateTimeStr
=
Common
.
ConvertHelper
.
FormatDate
(
item
.
UpdateTime
),
item
.
Content
,
fileList
,
ccList
,
toList
};
result
.
Add
(
obj
);
}
pageModel
.
Count
=
rowsCount
;
pageModel
.
PageData
=
result
;
return
ApiResult
.
Success
(
""
,
pageModel
);
return
ApiResult
.
Success
(
""
,
pageModel
);
}
}
...
...
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