Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac_report
Overview
Overview
Details
Activity
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
java-sunac-report
sunac_report
Commits
b32f885f
Commit
b32f885f
authored
Jan 18, 2018
by
java-lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查漏补缺
parent
0df43bf8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
2 deletions
+26
-2
ReportService.java
src/main/java/com/ejweb/modules/report/service/ReportService.java
+7
-0
ReportController.java
src/main/java/com/ejweb/modules/report/web/ReportController.java
+17
-0
reportDetail.jsp
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
+1
-1
reportList.jsp
src/main/webapp/WEB-INF/views/modules/report/reportList.jsp
+1
-1
No files found.
src/main/java/com/ejweb/modules/report/service/ReportService.java
View file @
b32f885f
...
...
@@ -408,6 +408,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
reportStatus
=
"跟踪中"
;
}
else
if
(
reportStatus
.
equals
(
"2"
))
{
reportStatus
=
"已处理"
;
}
else
if
(
reportStatus
.
equals
(
"3"
))
{
reportStatus
=
"已关闭"
;
}
}
else
{
reportStatus
=
""
;
...
...
@@ -551,6 +553,11 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
return
reportDao
.
updateIsSendEmail
(
reportId
);
}
/**
* 管理员修改处理结论
*
* @return
*/
@Transactional
(
readOnly
=
false
)
public
int
updateConclusion
(
ReportEntity
reportEntity
)
{
return
reportDao
.
updateConclusion
(
reportEntity
);
...
...
src/main/java/com/ejweb/modules/report/web/ReportController.java
View file @
b32f885f
...
...
@@ -167,6 +167,9 @@ public class ReportController extends BaseController {
*/
@RequestMapping
(
value
=
"view"
)
public
String
view
(
ReportEntity
reportEntity
,
Model
model
,
RedirectAttributes
redirectAttributes
)
{
//判断登录人的角色
User
useradmin
=
UserUtils
.
getUser
();
boolean
isAdmin
=
reportService
.
checkRole
(
useradmin
);
//获取举报提交文件列表
ReportAttachmentEntity
reportAttachment
=
new
ReportAttachmentEntity
();
reportAttachment
.
setReportId
(
reportEntity
.
getId
());
...
...
@@ -208,6 +211,7 @@ public class ReportController extends BaseController {
if
(
count
!=
0
){
result
=
count
.
toString
();
}
model
.
addAttribute
(
"isAdmin"
,
isAdmin
);
model
.
addAttribute
(
"report"
,
reportEntity
);
model
.
addAttribute
(
"reportAttachmentList"
,
reportAttachmentList
);
model
.
addAttribute
(
"supplementAttachmentList"
,
supplementAttachmentList
);
...
...
@@ -544,4 +548,17 @@ public class ReportController extends BaseController {
out
.
close
();
}
/**
* 管理员修改处理结论
*
* @return
*/
@RequestMapping
(
value
=
"conclusion"
)
public
String
closeConclusion
(
ReportEntity
reportEntity
)
{
reportService
.
updateConclusion
(
reportEntity
);
//return "modules/report/reportDetail";
return
"redirect:"
+
adminPath
+
"/report/list/?repage&flag=0"
;
}
}
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
View file @
b32f885f
...
...
@@ -246,7 +246,7 @@
</c:if>
<li
class=
"btns"
>
<label
style=
"width:auto;"
>
<c:if
test=
"${report.reportStatus != '2'}"
><input
id=
"btnTrack"
class=
"btn btn-primary"
type=
"button"
<c:if
test=
"${report.reportStatus != '2'
&& report.reportStatus ne '3'
}"
><input
id=
"btnTrack"
class=
"btn btn-primary"
type=
"button"
value=
"跟踪"
/>
</c:if>
<input
id=
"btnDocument"
class=
"btn btn-primary"
type=
"button"
value=
"转为文档"
onclick=
"openDownloadDialog('${report.id}')"
/>
...
...
src/main/webapp/WEB-INF/views/modules/report/reportList.jsp
View file @
b32f885f
...
...
@@ -234,7 +234,7 @@
</td>
<td>
<a
href=
"${ctx}/report/view?id=${report.id}"
>
查看
</a>
<c:if
test=
"${report.reportStatus ne '2'}"
><a
<c:if
test=
"${report.reportStatus ne '2'
&& report.reportStatus ne '3'
}"
><a
href=
"${ctx}/report/track?id=${report.id}"
>
跟踪
</a></c:if>
<a
href=
"#"
onclick=
"openDownloadDialog('${report.id}')"
>
转为文档
</a>
</td>
...
...
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