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
55cb247d
Commit
55cb247d
authored
Oct 10, 2017
by
Java-李昕颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
各种改啊
parent
dcfe1d57
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
5 deletions
+50
-5
ReportService.java
src/main/java/com/ejweb/modules/report/service/ReportService.java
+3
-1
ReportController.java
src/main/java/com/ejweb/modules/report/web/ReportController.java
+19
-0
reportDetail.jsp
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
+1
-1
reportTrack.jsp
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
+27
-3
No files found.
src/main/java/com/ejweb/modules/report/service/ReportService.java
View file @
55cb247d
...
...
@@ -138,6 +138,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
if
(
StringUtils
.
isNotBlank
(
fileName
))
{
reportAttachmentEntity
.
setAttachmentName
(
fileName
);
}
int
index
=
path
.
lastIndexOf
(
"/"
)+
1
;
path
=
path
.
substring
(
0
,
index
)
+
fileName
;
reportAttachmentEntity
.
setAttachmentPath
(
path
);
File
file
=
new
File
(
reportAttachmentEntity
.
getAttachmentPath
());
long
length
=
file
.
length
();
...
...
@@ -180,7 +182,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
}
public
String
getFilename
(
String
path
){
int
beginIndex
=
path
.
indexOf
(
"%"
)
;
int
beginIndex
=
path
.
lastIndexOf
(
"/"
)+
1
;
int
endIndex
=
path
.
lastIndexOf
(
"."
);
String
fileNameUrlCode
=
path
.
substring
(
beginIndex
,
endIndex
);
String
prefixName
=
path
.
substring
(
endIndex
,
path
.
length
());
...
...
src/main/java/com/ejweb/modules/report/web/ReportController.java
View file @
55cb247d
...
...
@@ -164,6 +164,22 @@ public class ReportController extends BaseController {
List
<
Position
>
positionList
=
reportService
.
getPositionList
();
User
userEntity
=
new
User
();
Page
<
User
>
page
=
reportService
.
findUserPage
(
new
Page
<
User
>(
request
,
response
),
userEntity
);
//获取举报提交文件列表
ReportAttachmentEntity
reportAttachment
=
new
ReportAttachmentEntity
();
reportAttachment
.
setReportId
(
reportEntity
.
getId
());
reportAttachment
.
setAttachmentType
(
"0"
);
List
<
ReportAttachmentEntity
>
reportAttachmentList
=
reportService
.
getAttachmentInfo
(
reportAttachment
);
//获取补充提交文件列表
ReportAttachmentEntity
supplementAttachment
=
new
ReportAttachmentEntity
();
supplementAttachment
.
setReportId
(
reportEntity
.
getId
());
supplementAttachment
.
setAttachmentType
(
"1"
);
List
<
ReportAttachmentEntity
>
supplementAttachmentList
=
reportService
.
getAttachmentInfo
(
supplementAttachment
);
//获取处理成果文件列表
ReportAttachmentEntity
dealAttachment
=
new
ReportAttachmentEntity
();
dealAttachment
.
setReportId
(
reportEntity
.
getId
());
dealAttachment
.
setAttachmentType
(
"2"
);
List
<
ReportAttachmentEntity
>
dealAttachmentList
=
reportService
.
getAttachmentInfo
(
dealAttachment
);
model
.
addAttribute
(
"page"
,
page
);
model
.
addAttribute
(
"user"
,
userEntity
);
model
.
addAttribute
(
"userName"
,
user
.
getName
());
...
...
@@ -173,6 +189,9 @@ public class ReportController extends BaseController {
model
.
addAttribute
(
"officeList"
,
officeList
);
model
.
addAttribute
(
"positionList"
,
positionList
);
model
.
addAttribute
(
"isAdmin"
,
isAdmin
);
model
.
addAttribute
(
"reportAttachmentList"
,
reportAttachmentList
);
model
.
addAttribute
(
"supplementAttachmentList"
,
supplementAttachmentList
);
model
.
addAttribute
(
"dealAttachmentList"
,
dealAttachmentList
);
return
"modules/report/reportTrack"
;
}
...
...
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
View file @
55cb247d
...
...
@@ -110,7 +110,7 @@
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报项目
:
</label>
<label
class=
"control-label"
>
举报时间
:
</label>
<div
class=
"controls"
>
<form:input
path=
"reportTime"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/>
</div>
...
...
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
View file @
55cb247d
...
...
@@ -9,13 +9,19 @@
$
(
document
).
ready
(
function
()
{
$
(
"#inputForm"
).
validate
({
submitHandler
:
function
(
form
)
{
if
(
$
(
"#supplementType"
).
val
()
==
" "
){
top
.
$
.
jBox
.
tip
(
'请选择业务类型'
,
'warning'
);
}
else
if
(
$
(
"#supplementArea"
).
val
()
==
" "
){
top
.
$
.
jBox
.
tip
(
'请选择被举报区域'
,
'warning'
);
}
else
{
submitCount
+=
1
;
if
(
submitCount
==
1
)
{
if
(
submitCount
==
1
)
{
loading
(
'正在提交,请稍等...'
);
form
.
submit
();
}
else
{
}
else
{
return
false
;
}
}
},
errorContainer
:
"#messageBox"
,
errorPlacement
:
function
(
error
,
element
)
{
...
...
@@ -54,6 +60,24 @@
var
path
=
"mailto:?subject=举报核查-"
+
supplementType
+
"-"
+
supplementInformant
+
"违规操作"
;
path
+=
"&body=Dear,<br/>附件是举报核查-"
+
supplementType
+
"-"
+
supplementInformant
+
"违规操作,请核实是否属实。<br/>谢谢!"
;
//path += "
<
br
/><
br
/><
br
/>%
0
D
%
0
A$
{
userName
}
";
path += "
<
/p>举报内容</
<
br
>
";
path += "
被举报项目
:
$
{
report
.
reportProject
}
<
/br>"
;
path
+=
"举报时间:${report.reportTime}</br>"
;
path
+=
"所在城市:${report.reportCity}</br>"
;
path
+=
"内容:${report.reportContent}</br>"
;
path
+=
"附件:"
;
<%--
var
reportAttachmentList
=
"${reportAttachmentList}"
;
--%>
<%--
for
(
var
i
=
0
;
i
<
reportAttachmentList
.
length
;
i
++
){
--%>
<%--
path
+=
" "
+
reportAttachmentList
[
i
].
attachmentPath
+
"</br>"
;
--%>
<%--
}
--%>
<%--
path
+=
" <c:forEach items="
$
{
reportAttachmentList
}
" var="
reportAttachment
" varStatus="
vs
">--%>
<%--path += "
$
{
vs
.
count
}.
<
a
href
=
"${reportAttachment.attachmentPath}"
target
=
"_blank"
>
$
{
reportAttachment
.
attachmentName
}
<
/a><br>--%
>
path
+=
"举报人信息</br>"
;
path
+=
"姓名:${report.reportPersonName}</br>"
;
path
+=
"Email:${report.reportPersonTel}</br>"
;
path
+=
"举报途径:${report.reportSource}</br>"
;
window
.
location
.
href
=
path
;
});
});
...
...
@@ -144,7 +168,7 @@
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报区域:
</label>
<div
class=
"controls"
>
<form:select
id=
"supplement
Type
"
path=
"supplementArea"
class=
"input-small required"
>
<form:select
id=
"supplement
Area
"
path=
"supplementArea"
class=
"input-small required"
>
<form:option
value=
" "
>
请选择
</form:option>
<form:options
items=
"${fns:getDictList('supplement_area')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/></form:select>
...
...
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