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
774625fe
Commit
774625fe
authored
Oct 11, 2017
by
Java-李昕颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ssoDao加限制
parent
ca6b6000
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
18 deletions
+33
-18
WorkbenchController.java
src/main/java/com/ejweb/modules/workbench/web/WorkbenchController.java
+8
-2
SsoDao.xml
src/main/resources/mappings/modules/front.sso/SsoDao.xml
+2
-0
reportTrack.jsp
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
+23
-16
No files found.
src/main/java/com/ejweb/modules/workbench/web/WorkbenchController.java
View file @
774625fe
...
@@ -17,6 +17,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -17,6 +17,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.PrintWriter
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -54,7 +56,7 @@ public class WorkbenchController extends BaseController {
...
@@ -54,7 +56,7 @@ public class WorkbenchController extends BaseController {
@RequestMapping
(
"/getHighcharts"
)
@RequestMapping
(
"/getHighcharts"
)
@ResponseBody
@ResponseBody
public
JSONObject
getHighcharts
(
WorkbenchBean
bean
){
public
void
getHighcharts
(
WorkbenchBean
bean
,
HttpServletResponse
response
){
JSONObject
res
=
new
JSONObject
();
JSONObject
res
=
new
JSONObject
();
try
{
try
{
User
user
=
UserUtils
.
getUser
();
User
user
=
UserUtils
.
getUser
();
...
@@ -81,10 +83,14 @@ public class WorkbenchController extends BaseController {
...
@@ -81,10 +83,14 @@ public class WorkbenchController extends BaseController {
res
.
put
(
"startDate"
,
bean
.
getStartDate
());
res
.
put
(
"startDate"
,
bean
.
getStartDate
());
res
.
put
(
"endDate"
,
bean
.
getEndDate
());
res
.
put
(
"endDate"
,
bean
.
getEndDate
());
String
jsonStr
=
res
.
toJSONString
();
PrintWriter
out
=
response
.
getWriter
();
response
.
setContentType
(
"application/json;charset=utf-8"
);
out
.
write
(
jsonStr
.
toString
());
out
.
close
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
return
res
;
}
}
public
WorkbenchBean
getWorkbenchByUser
(
User
user
,
WorkbenchBean
bean
){
public
WorkbenchBean
getWorkbenchByUser
(
User
user
,
WorkbenchBean
bean
){
...
...
src/main/resources/mappings/modules/front.sso/SsoDao.xml
View file @
774625fe
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
ct_bbtc_sys_user su
ct_bbtc_sys_user su
WHERE
WHERE
su.login_name = #{username}
su.login_name = #{username}
AND del_flag = '0'
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
View file @
774625fe
...
@@ -65,17 +65,15 @@
...
@@ -65,17 +65,15 @@
path
+=
"举报时间:${report.reportTime}</br>"
;
path
+=
"举报时间:${report.reportTime}</br>"
;
path
+=
"所在城市:${report.reportCity}</br>"
;
path
+=
"所在城市:${report.reportCity}</br>"
;
path
+=
"内容:${report.reportContent}</br>"
;
path
+=
"内容:${report.reportContent}</br>"
;
path
+=
"附件:"
;
path
+=
"附件:</br>"
;
<%--
var
reportAttachmentList
=
$
{
supplementAttachmentList
};
--%>
$
(
"#attachment1"
).
find
(
"[class='attachmentClass']"
).
each
(
function
(){
<%--
console
.
log
(
reportAttachmentList
);
--%>
var
url
=
$
(
this
).
attr
(
"href"
);
<%--
for
(
var
i
=
0
;
i
<
reportAttachmentList
.
length
;
i
++
){
--%>
path
+=
url
;
<%--
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
+=
"举报人信息</br>"
;
path
+=
"姓名:${report.reportPersonName}</br>"
;
path
+=
"姓名:${report.reportPersonName}</br>"
;
path
+=
"Email:${report.reportPersonTel}</br>"
;
path
+=
"手机号:${report.reportPersonTel}</br>"
;
path
+=
"Email:${report.reportPersonEmail}</br>"
;
var
reportSource
=
"${report.reportSource}"
;
var
reportSource
=
"${report.reportSource}"
;
if
(
reportSource
==
"web"
){
if
(
reportSource
==
"web"
){
reportSource
=
"官网"
;
reportSource
=
"官网"
;
...
@@ -144,11 +142,20 @@
...
@@ -144,11 +142,20 @@
path
+=
"被举报区域:"
+
supplementArea
+
"</br>"
;
path
+=
"被举报区域:"
+
supplementArea
+
"</br>"
;
path
+=
"被举报项目:${report.supplementProject}</br>"
;
path
+=
"被举报项目:${report.supplementProject}</br>"
;
path
+=
"内容:${report.reportContent}</br>"
;
path
+=
"内容:${report.reportContent}</br>"
;
path
+=
"附件:</br>"
;
$
(
"#attachment2"
).
find
(
"[class='attachmentClass']"
).
each
(
function
(){
var
url
=
$
(
this
).
attr
(
"href"
);
path
+=
url
;
});
}
}
if
(
reportStatus
==
"2"
){
if
(
reportStatus
==
"2"
){
path
+=
"处理结果</br>"
;
path
+=
"处理结果</br>"
;
path
+=
"处理人:${report.dealPersonName}</br>"
;
path
+=
"处理人:${report.dealPersonName}</br>"
;
path
+=
"处理成果文件:${report.supplementCompany}</br>"
;
path
+=
"处理成果文件:</br>"
;
$
(
"#attachment3"
).
find
(
"[class='attachmentClass']"
).
each
(
function
(){
var
url
=
$
(
this
).
attr
(
"href"
);
path
+=
url
;
});
var
dealResult
=
"${report.dealResult}"
;
var
dealResult
=
"${report.dealResult}"
;
if
(
dealResult
==
"North China"
){
if
(
dealResult
==
"North China"
){
dealResult
=
"华北区域公司"
;
dealResult
=
"华北区域公司"
;
...
@@ -207,10 +214,10 @@
...
@@ -207,10 +214,10 @@
<form:hidden
path=
"id"
/>
<form:hidden
path=
"id"
/>
<sys:message
content=
"${message}"
/>
<sys:message
content=
"${message}"
/>
<div
id=
"
reportAttachment
"
style=
"display: none"
>
<div
id=
"
attachment1
"
style=
"display: none"
>
<c:if
test=
"${supplementAttachmentList ne null}"
>
<c:if
test=
"${supplementAttachmentList ne null}"
>
<c:forEach
items=
"${reportAttachmentList}"
var=
"reportAttachment"
varStatus=
"vs"
>
<c:forEach
items=
"${reportAttachmentList}"
var=
"reportAttachment"
varStatus=
"vs"
>
<a
href=
"${reportAttachment.attachmentPath}"
target=
"_blank"
>
${reportAttachment.attachmentName}
</a><br>
<a
href=
"${reportAttachment.attachmentPath}"
class=
"attachmentClass"
target=
"_blank"
>
${reportAttachment.attachmentName}
</a><br>
</c:forEach>
</c:forEach>
</c:if>
</c:if>
</div>
</div>
...
@@ -278,10 +285,10 @@
...
@@ -278,10 +285,10 @@
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
附件:
</label>
<label
class=
"control-label"
>
附件:
</label>
<div
id=
"
fujian
2"
class=
"controls"
>
<div
id=
"
attachment
2"
class=
"controls"
>
<c:if
test=
"${supplementAttachmentList ne null}"
>
<c:if
test=
"${supplementAttachmentList ne null}"
>
<c:forEach
items=
"${supplementAttachmentList}"
var=
"supplementAttachment"
varStatus=
"vs"
>
<c:forEach
items=
"${supplementAttachmentList}"
var=
"supplementAttachment"
varStatus=
"vs"
>
<a
href=
"${supplementAttachment.attachmentPath}"
target=
"_blank"
>
${supplementAttachment.attachmentName}
</a><br>
<a
href=
"${supplementAttachment.attachmentPath}"
class=
"attachmentClass"
target=
"_blank"
>
${supplementAttachment.attachmentName}
</a><br>
</c:forEach>
</c:forEach>
</c:if>
</c:if>
<form:hidden
id=
"nameFile"
path=
"supplementAttachment"
htmlEscape=
"false"
<form:hidden
id=
"nameFile"
path=
"supplementAttachment"
htmlEscape=
"false"
...
@@ -300,10 +307,10 @@
...
@@ -300,10 +307,10 @@
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
处理成果文件:
</label>
<label
class=
"control-label"
>
处理成果文件:
</label>
<div
id=
"
dealAttachment
"
class=
"controls"
>
<div
id=
"
attachment3
"
class=
"controls"
>
<c:if
test=
"${dealAttachmentList ne null}"
>
<c:if
test=
"${dealAttachmentList ne null}"
>
<c:forEach
items=
"${dealAttachmentList}"
var=
"dealAttachment"
varStatus=
"vs"
>
<c:forEach
items=
"${dealAttachmentList}"
var=
"dealAttachment"
varStatus=
"vs"
>
<a
href=
"${dealAttachment.attachmentPath}"
target=
"_blank"
>
${dealAttachment.attachmentName}
</a><br>
<a
href=
"${dealAttachment.attachmentPath}"
class=
"attachmentClass"
target=
"_blank"
>
${dealAttachment.attachmentName}
</a><br>
</c:forEach>
</c:forEach>
</c:if>
</c:if>
<form:hidden
id=
"dealFile"
path=
"dealAttachment"
htmlEscape=
"false"
<form:hidden
id=
"dealFile"
path=
"dealAttachment"
htmlEscape=
"false"
...
...
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