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
de72a624
Commit
de72a624
authored
Oct 24, 2017
by
java-lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息中心修改+添加功能:转为word文档
parent
72997486
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
14 deletions
+31
-14
ReportService.java
src/main/java/com/ejweb/modules/report/service/ReportService.java
+15
-10
ReportController.java
src/main/java/com/ejweb/modules/report/web/ReportController.java
+7
-3
ReportToWordController.java
src/main/java/com/ejweb/modules/report/web/ReportToWordController.java
+0
-0
ReportNoticeMapper.xml
src/main/resources/mappings/modules/workbench/ReportNoticeMapper.xml
+1
-1
reportForm.jsp
src/main/webapp/WEB-INF/views/modules/report/reportForm.jsp
+8
-0
No files found.
src/main/java/com/ejweb/modules/report/service/ReportService.java
View file @
de72a624
...
@@ -243,6 +243,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
...
@@ -243,6 +243,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
Date
date
=
new
Date
();
Date
date
=
new
Date
();
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
ReportNotice
reportNotice
=
reportDao
.
findReportNotice
(
reportEntity
);
ReportNotice
reportNotice
=
reportDao
.
findReportNotice
(
reportEntity
);
SimpleDateFormat
sdf1
=
new
SimpleDateFormat
(
"yyyy年MM月dd日"
);
String
dateStr
=
sdf1
.
format
(
date
);
if
(
reportNotice
!=
null
){
if
(
reportNotice
!=
null
){
//消息表中已存在该条举报的移交信息,更新该记录
//消息表中已存在该条举报的移交信息,更新该记录
if
(
StringUtils
.
isNotBlank
(
user
.
getId
())){
if
(
StringUtils
.
isNotBlank
(
user
.
getId
())){
...
@@ -256,8 +258,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
...
@@ -256,8 +258,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
reportNotice
.
setStatus
(
"0"
);
reportNotice
.
setStatus
(
"0"
);
if
(
flag
.
equals
(
"answer"
)){
if
(
flag
.
equals
(
"answer"
)){
reportNotice
.
setSendToId
(
reportDao
.
findAdmin
(
new
Office
()));
reportNotice
.
setSendToId
(
reportDao
.
findAdmin
(
new
Office
()));
SimpleDateFormat
sdf1
=
new
SimpleDateFormat
(
"yyyy年MM月dd日
"
);
reportNotice
.
setTitle
(
"“"
+
reportEntity
.
getSupplementTitle
()+
"”已由"
+
user
.
getName
()+
"于"
+
dateStr
+
"处理完成
"
);
String
dateStr
=
sdf1
.
format
(
date
);
}
if
(
flag
.
equals
(
"meanWhile"
)){
reportNotice
.
setTitle
(
"“"
+
reportEntity
.
getSupplementTitle
()+
"”已由"
+
user
.
getName
()+
"于"
+
dateStr
+
"处理完成"
);
reportNotice
.
setTitle
(
"“"
+
reportEntity
.
getSupplementTitle
()+
"”已由"
+
user
.
getName
()+
"于"
+
dateStr
+
"处理完成"
);
}
}
reportDao
.
updateReportNotice
(
reportNotice
);
reportDao
.
updateReportNotice
(
reportNotice
);
...
@@ -267,8 +269,19 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
...
@@ -267,8 +269,19 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
reportNotice
=
new
ReportNotice
();
reportNotice
=
new
ReportNotice
();
reportNotice
.
setId
(
IdGen
.
uuid
());
reportNotice
.
setId
(
IdGen
.
uuid
());
reportNotice
.
setReportId
(
reportEntity
.
getId
());
reportNotice
.
setReportId
(
reportEntity
.
getId
());
reportNotice
.
setCreateDate
(
date
);
reportNotice
.
setUpdateDate
(
date
);
String
sendTime
=
sdf
.
format
(
date
);
reportNotice
.
setSendTime
(
sendTime
);
reportNotice
.
setSendFromId
(
user
.
getId
());
reportNotice
.
setStatus
(
"0"
);
reportNotice
.
setCreateBy
(
user
.
getId
());
reportNotice
.
setUpdateBy
(
user
.
getId
());
if
(
flag
.
equals
(
"answer"
)){
if
(
flag
.
equals
(
"answer"
)){
return
0
;
return
0
;
}
else
if
(
flag
.
equals
(
"meanWhile"
)){
reportNotice
.
setSendToId
(
reportEntity
.
getExchangeAfterUser
());
reportNotice
.
setTitle
(
"“"
+
reportEntity
.
getSupplementTitle
()+
"”已由"
+
user
.
getName
()+
"于"
+
dateStr
+
"处理完成"
);
}
else
{
}
else
{
//管理员转交或移交,消息标题为“请处理xxx”
//管理员转交或移交,消息标题为“请处理xxx”
String
title
=
reportEntity
.
getSupplementTitle
();
String
title
=
reportEntity
.
getSupplementTitle
();
...
@@ -278,14 +291,6 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
...
@@ -278,14 +291,6 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
reportNotice
.
setTitle
(
"请处理-“"
+
title
+
"”"
);
reportNotice
.
setTitle
(
"请处理-“"
+
title
+
"”"
);
reportNotice
.
setSendToId
(
reportEntity
.
getExchangeAfterUser
());
reportNotice
.
setSendToId
(
reportEntity
.
getExchangeAfterUser
());
}
}
reportNotice
.
setCreateDate
(
date
);
reportNotice
.
setUpdateDate
(
date
);
String
sendTime
=
sdf
.
format
(
date
);
reportNotice
.
setSendTime
(
sendTime
);
reportNotice
.
setSendFromId
(
user
.
getId
());
reportNotice
.
setStatus
(
"0"
);
reportNotice
.
setCreateBy
(
user
.
getId
());
reportNotice
.
setUpdateBy
(
user
.
getId
());
reportDao
.
addReportNotice
(
reportNotice
);
reportDao
.
addReportNotice
(
reportNotice
);
return
1
;
return
1
;
}
}
...
...
src/main/java/com/ejweb/modules/report/web/ReportController.java
View file @
de72a624
...
@@ -209,12 +209,16 @@ public class ReportController extends BaseController {
...
@@ -209,12 +209,16 @@ public class ReportController extends BaseController {
}
}
reportService
.
saveTrack
(
reportEntity
);
reportService
.
saveTrack
(
reportEntity
);
String
exchangeAfterUser
=
request
.
getParameter
(
"exchangeAfterUser"
);
String
exchangeAfterUser
=
request
.
getParameter
(
"exchangeAfterUser"
);
if
(
StringUtils
.
isNotBlank
(
exchangeAfterUser
)){
if
(
StringUtils
.
isNotBlank
(
exchangeAfterUser
)
&&
StringUtils
.
isBlank
(
reportEntity
.
getDealResult
())){
//管理员移交给他人处理
reportService
.
addNotice
(
reportEntity
,
"transfer"
);
reportService
.
addNotice
(
reportEntity
,
"transfer"
);
reportService
.
addRecord
(
reportEntity
,
"1"
);
reportService
.
addRecord
(
reportEntity
,
"1"
);
}
}
else
if
(
StringUtils
.
isNotBlank
(
reportEntity
.
getDealResult
())
&&
StringUtils
.
isBlank
(
exchangeAfterUser
)){
if
(
StringUtils
.
isNotBlank
(
reportEntity
.
getDealResult
())){
//自行处理
reportService
.
addNotice
(
reportEntity
,
"answer"
);
reportService
.
addNotice
(
reportEntity
,
"answer"
);
}
else
if
(
StringUtils
.
isNotBlank
(
exchangeAfterUser
)
&&
StringUtils
.
isNotBlank
(
reportEntity
.
getDealResult
())){
//管理员进行处理,同时移交给他人
reportService
.
addNotice
(
reportEntity
,
"meanWhile"
);
}
}
addMessage
(
redirectAttributes
,
"补充举报"
+
reportEntity
.
getSupplementTitle
()
+
"'成功"
);
addMessage
(
redirectAttributes
,
"补充举报"
+
reportEntity
.
getSupplementTitle
()
+
"'成功"
);
return
"redirect:"
+
adminPath
+
"/report/list/?repage&flag=0"
;
return
"redirect:"
+
adminPath
+
"/report/list/?repage&flag=0"
;
...
...
src/main/java/com/ejweb/modules/report/web/ReportToWordController.java
0 → 100644
View file @
de72a624
This diff is collapsed.
Click to expand it.
src/main/resources/mappings/modules/workbench/ReportNoticeMapper.xml
View file @
de72a624
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
FROM ct_bbtc_report_notice
FROM ct_bbtc_report_notice
WHERE send_to_id = #{sendToId,jdbcType=VARCHAR}
WHERE send_to_id = #{sendToId,jdbcType=VARCHAR}
order by
create_dat
e desc
order by
send_tim
e desc
</select>
</select>
<select
id=
"getMessageCount"
resultType=
"Integer"
>
<select
id=
"getMessageCount"
resultType=
"Integer"
>
...
...
src/main/webapp/WEB-INF/views/modules/report/reportForm.jsp
View file @
de72a624
...
@@ -155,6 +155,14 @@
...
@@ -155,6 +155,14 @@
</div>
</div>
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报人:
</label>
<div
class=
"controls"
>
<form:input
path=
"supplementInformant"
htmlEscape=
"false"
maxlength=
"50"
class=
"input-xlarge required"
placeholder=
"最多输入50个字符"
/>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
内容:
</label>
<label
class=
"control-label"
>
内容:
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<form:textarea
id=
"reportContent"
htmlEscape=
"true"
path=
"reportContent"
rows=
"4"
maxlength=
"500"
<form:textarea
id=
"reportContent"
htmlEscape=
"true"
path=
"reportContent"
rows=
"4"
maxlength=
"500"
...
...
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