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
b5aceb86
Commit
b5aceb86
authored
Apr 16, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
23849647
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
NoticeModule.cs
Edu.Module.User/NoticeModule.cs
+10
-4
No files found.
Edu.Module.User/NoticeModule.cs
View file @
b5aceb86
...
...
@@ -83,7 +83,11 @@ namespace Edu.Module.User
{
nameof
(
RB_Notice_Base
.
UpdateBy
),
dmodel
.
UpdateBy
},
{
nameof
(
RB_Notice_Base
.
UpdateTime
),
DateTime
.
Now
},
};
flag
=
notice_BaseRepository
.
Update
(
keyValues
,
new
WhereHelper
(
nameof
(
RB_Notice_Base
.
Id
),
dmodel
.
Id
));
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(
nameof
(
RB_Notice_Base
.
Id
),
dmodel
.
Id
)
};
flag
=
notice_BaseRepository
.
Update
(
keyValues
,
wheres
);
}
else
{
...
...
@@ -165,6 +169,7 @@ namespace Edu.Module.User
{
var
model
=
noticeRepository
.
GetEntity
<
RB_Notice_ViewModel
>(
noticeId
);
if
(
model
==
null
)
{
return
ApiResult
.
ParamIsNull
();
}
var
noticeBaseModel
=
notice_BaseRepository
.
GetList
(
new
RB_Notice_Base_ViewModel
()
{
Group_Id
=
model
.
Group_Id
}).
FirstOrDefault
();
var
dList
=
notice_DeptRepository
.
GetList
(
new
RB_Notice_Dept
()
{
NoticeId
=
noticeId
},
""
);
model
.
To
=
"-1"
;
if
(
dList
.
Any
())
...
...
@@ -233,7 +238,7 @@ namespace Edu.Module.User
model
.
CopyPeople
,
ccList
=
CopyPeopleList
,
model
.
Content
,
fileList
=
model
.
FileList
.
Select
(
x
=>
new
fileList
=
model
.
FileList
.
Select
(
x
=>
new
{
x
.
FileName
,
x
.
FileUrl
...
...
@@ -242,7 +247,8 @@ namespace Edu.Module.User
UpdateByName
=
empModel
?.
AccountName
??
""
,
UpdateByIcon
=
empModel
?.
UserIcon
??
""
,
UpdateTime
=
model
.
UpdateTime
.
HasValue
?
model
.
UpdateTime
.
Value
.
ToString
(
"yyyy年MM月dd日"
)
:
""
,
DayStr
DayStr
,
BgImage
=
noticeBaseModel
?.
Image
??
""
});
}
...
...
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