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
1aa07917
Commit
1aa07917
authored
Dec 03, 2019
by
佰邦同创-郝泉明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20191203
parent
e4108d33
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
51 additions
and
25 deletions
+51
-25
report_sunac.iml
report_sunac.iml
+29
-5
ReportService.java
src/main/java/com/ejweb/modules/report/service/ReportService.java
+2
-2
ReportController.java
src/main/java/com/ejweb/modules/report/web/ReportController.java
+1
-1
ReportToWordController.java
src/main/java/com/ejweb/modules/report/web/ReportToWordController.java
+6
-3
LtpaToken.properties
src/main/resources/LtpaToken.properties
+0
-1
ejweb.properties
src/main/resources/ejweb.properties
+1
-1
jdbc.properties
src/main/resources/jdbc.properties
+11
-11
CtBbtcTypeAreaDao.xml
src/main/resources/mappings/modules/report/CtBbtcTypeAreaDao.xml
+1
-1
No files found.
report_sunac.iml
View file @
1aa07917
...
@@ -26,8 +26,24 @@
...
@@ -26,8 +26,24 @@
</content>
</content>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"library"
name=
"Maven: bbdtek:bbdtek-geo-split:1.0.1"
level=
"project"
/>
<orderEntry
type=
"module-library"
>
<orderEntry
type=
"library"
name=
"Maven: bbdtek:npl-tire-split:1.0.0"
level=
"project"
/>
<library
name=
"Maven: bbdtek:bbdtek-geo-split:1.0.1"
>
<CLASSES>
<root
url=
"jar://$MODULE_DIR$/src/main/webapp/WEB-INF/lib/bbdtek-geo-split-1.0.1.jar!/"
/>
</CLASSES>
<JAVADOC
/>
<SOURCES
/>
</library>
</orderEntry>
<orderEntry
type=
"module-library"
>
<library
name=
"Maven: bbdtek:npl-tire-split:1.0.0"
>
<CLASSES>
<root
url=
"jar://$MODULE_DIR$/src/main/webapp/WEB-INF/lib/npl-tire-split-1.0.0.jar!/"
/>
</CLASSES>
<JAVADOC
/>
<SOURCES
/>
</library>
</orderEntry>
<orderEntry
type=
"library"
name=
"Maven: com.maxmind.geoip2:geoip2:2.1.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.maxmind.geoip2:geoip2:2.1.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.http-client:google-http-client:1.19.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.http-client:google-http-client:1.19.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.code.findbugs:jsr305:1.3.9"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.code.findbugs:jsr305:1.3.9"
level=
"project"
/>
...
@@ -60,7 +76,7 @@
...
@@ -60,7 +76,7 @@
<orderEntry
type=
"module-library"
>
<orderEntry
type=
"module-library"
>
<library
name=
"Maven: com.alibaba:jconsole:1.8.0"
>
<library
name=
"Maven: com.alibaba:jconsole:1.8.0"
>
<CLASSES>
<CLASSES>
<root
url=
"jar://
C:/Program Files/Java/jdk1.8.0_161
/lib/jconsole.jar!/"
/>
<root
url=
"jar://
D:/java jdk
/lib/jconsole.jar!/"
/>
</CLASSES>
</CLASSES>
<JAVADOC
/>
<JAVADOC
/>
<SOURCES
/>
<SOURCES
/>
...
@@ -69,7 +85,7 @@
...
@@ -69,7 +85,7 @@
<orderEntry
type=
"module-library"
>
<orderEntry
type=
"module-library"
>
<library
name=
"Maven: com.alibaba:tools:1.8.0"
>
<library
name=
"Maven: com.alibaba:tools:1.8.0"
>
<CLASSES>
<CLASSES>
<root
url=
"jar://
C:/Program Files/Java/jdk1.8.0_161
/lib/tools.jar!/"
/>
<root
url=
"jar://
D:/java jdk
/lib/tools.jar!/"
/>
</CLASSES>
</CLASSES>
<JAVADOC
/>
<JAVADOC
/>
<SOURCES
/>
<SOURCES
/>
...
@@ -250,7 +266,15 @@
...
@@ -250,7 +266,15 @@
<SOURCES
/>
<SOURCES
/>
</library>
</library>
</orderEntry>
</orderEntry>
<orderEntry
type=
"library"
name=
"Maven: com.kingdee.eas.cp.eip.sso.ltpa:LTPATokenManager:1.0.0"
level=
"project"
/>
<orderEntry
type=
"module-library"
>
<library
name=
"Maven: com.kingdee.eas.cp.eip.sso.ltpa:LTPATokenManager:1.0.0"
>
<CLASSES>
<root
url=
"jar://$MODULE_DIR$/src/main/webapp/WEB-INF/lib/LTPATokenManager-1.0.0.jar!/"
/>
</CLASSES>
<JAVADOC
/>
<SOURCES
/>
</library>
</orderEntry>
<orderEntry
type=
"library"
name=
"Maven: jfree:jfreechart:1.0.13"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jfree:jfreechart:1.0.13"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jfree:jcommon:1.0.16"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: jfree:jcommon:1.0.16"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.itextpdf:itextpdf:5.5.10"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.itextpdf:itextpdf:5.5.10"
level=
"project"
/>
...
...
src/main/java/com/ejweb/modules/report/service/ReportService.java
View file @
1aa07917
...
@@ -945,10 +945,10 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
...
@@ -945,10 +945,10 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
List
<
Role
>
roleList
=
roleDao
.
findList
(
roleEntity
);
List
<
Role
>
roleList
=
roleDao
.
findList
(
roleEntity
);
if
(
roleList
!=
null
&&
roleList
.
size
()
!=
0
)
{
if
(
roleList
!=
null
&&
roleList
.
size
()
!=
0
)
{
for
(
Role
role
:
roleList
)
{
for
(
Role
role
:
roleList
)
{
if
(
role
.
get
Name
().
equals
(
"系统管理员
"
))
{
if
(
role
.
get
Enname
().
equals
(
"admin
"
))
{
roleNum
=
"1"
;
roleNum
=
"1"
;
break
;
break
;
}
else
if
(
role
.
get
Name
().
equals
(
"辅助管理员
"
))
{
}
else
if
(
role
.
get
Enname
().
equals
(
"fuzhuadmin
"
))
{
roleNum
=
"2"
;
roleNum
=
"2"
;
break
;
break
;
}
}
...
...
src/main/java/com/ejweb/modules/report/web/ReportController.java
View file @
1aa07917
...
@@ -843,7 +843,7 @@ public class ReportController extends BaseController {
...
@@ -843,7 +843,7 @@ public class ReportController extends BaseController {
}
}
html
.
append
(
" </tbody>"
);
html
.
append
(
" </tbody>"
);
html
.
append
(
"</table>"
);
html
.
append
(
"</table>"
);
html
.
append
(
"<span id='chooseItem'></span>"
);
//
html.append("<span id='chooseItem'></span>");
if
(
page
.
getList
().
size
()
==
0
)
{
if
(
page
.
getList
().
size
()
==
0
)
{
html
.
append
(
" <span style='color: #999999;margin: 20px 0 70px 20px;display: block;'>未查询到相关内容</span>"
);
html
.
append
(
" <span style='color: #999999;margin: 20px 0 70px 20px;display: block;'>未查询到相关内容</span>"
);
}
}
...
...
src/main/java/com/ejweb/modules/report/web/ReportToWordController.java
View file @
1aa07917
...
@@ -7,8 +7,8 @@ import com.ejweb.modules.report.entity.ReportAttachmentEntity;
...
@@ -7,8 +7,8 @@ import com.ejweb.modules.report.entity.ReportAttachmentEntity;
import
com.ejweb.modules.report.entity.ReportEntity
;
import
com.ejweb.modules.report.entity.ReportEntity
;
import
com.ejweb.modules.report.service.CtBbtcBusTypeService
;
import
com.ejweb.modules.report.service.CtBbtcBusTypeService
;
import
com.ejweb.modules.report.service.ReportService
;
import
com.ejweb.modules.report.service.ReportService
;
import
org.apache.poi.xwpf.usermodel.*
;
import
org.apache.poi.xwpf.model.XWPFHeaderFooterPolicy
;
import
org.apache.poi.xwpf.model.XWPFHeaderFooterPolicy
;
import
org.apache.poi.xwpf.usermodel.*
;
import
org.apache.xmlbeans.XmlException
;
import
org.apache.xmlbeans.XmlException
;
import
org.openxmlformats.schemas.wordprocessingml.x2006.main.*
;
import
org.openxmlformats.schemas.wordprocessingml.x2006.main.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -20,7 +20,6 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
...
@@ -20,7 +20,6 @@ import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.File
;
import
java.io.FileOutputStream
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.PrintWriter
;
import
java.io.PrintWriter
;
...
@@ -52,7 +51,7 @@ public class ReportToWordController {
...
@@ -52,7 +51,7 @@ public class ReportToWordController {
}
}
@RequestMapping
(
value
=
"toWord"
)
@RequestMapping
(
value
=
"toWord"
)
public
void
toWord
(
ReportEntity
reportEntity
,
String
flag
,
HttpServletRequest
request
,
HttpServletResponse
response
,
RedirectAttributes
redirectAttributes
)
throws
IOException
,
XmlException
{
public
void
toWord
(
ReportEntity
reportEntity
,
String
flag
,
HttpServletRequest
request
,
HttpServletResponse
response
,
RedirectAttributes
redirectAttributes
)
{
//Blank Document
//Blank Document
XWPFDocument
document
=
new
XWPFDocument
();
XWPFDocument
document
=
new
XWPFDocument
();
//Write the Document in file system
//Write the Document in file system
...
@@ -63,6 +62,7 @@ public class ReportToWordController {
...
@@ -63,6 +62,7 @@ public class ReportToWordController {
// if (reportProjectTitle.contains("\\")){
// if (reportProjectTitle.contains("\\")){
// reportProjectTitle = reportProjectTitle.replace("\\","|");
// reportProjectTitle = reportProjectTitle.replace("\\","|");
// }
// }
try
{
FileOutputStream
out
=
new
FileOutputStream
(
GConstants
.
FILE_UPLOAD_DIR
+
"pdf/"
+
reportEntity
.
getId
()
+
".docx"
);
FileOutputStream
out
=
new
FileOutputStream
(
GConstants
.
FILE_UPLOAD_DIR
+
"pdf/"
+
reportEntity
.
getId
()
+
".docx"
);
// FileOutputStream out = new FileOutputStream("D:/1.docx");
// FileOutputStream out = new FileOutputStream("D:/1.docx");
// FileOutputStream out = new FileOutputStream("C:/1.docx");
// FileOutputStream out = new FileOutputStream("C:/1.docx");
...
@@ -461,6 +461,9 @@ public class ReportToWordController {
...
@@ -461,6 +461,9 @@ public class ReportToWordController {
response
.
setContentType
(
"application/json;charset=utf-8"
);
response
.
setContentType
(
"application/json;charset=utf-8"
);
printWriter
.
write
(
GConstants
.
FILE_PREFIX_URL
+
"pdf/"
+
reportEntity
.
getId
()
+
".docx"
);
printWriter
.
write
(
GConstants
.
FILE_PREFIX_URL
+
"pdf/"
+
reportEntity
.
getId
()
+
".docx"
);
printWriter
.
close
();
printWriter
.
close
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
...
...
src/main/resources/LtpaToken.properties
View file @
1aa07917
...
@@ -10,4 +10,3 @@ cookie.domain=.kingdee.com
...
@@ -10,4 +10,3 @@ cookie.domain=.kingdee.com
token.expiration
=
30
token.expiration
=
30
domino.secret
=
BTfa8F+HwNejYEGtuZSJTWOZ/t8
\=
domino.secret
=
BTfa8F+HwNejYEGtuZSJTWOZ/t8
\=
src/main/resources/ejweb.properties
View file @
1aa07917
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
#============================#
#============================#
#\u4ea7\u54c1\u4fe1\u606f\u8bbe\u7f6e
#\u4ea7\u54c1\u4fe1\u606f\u8bbe\u7f6e
productName
=
\u
76d1
\u
5bdf
\u
5ba1
\u
8ba1
\u
7ba1
\u7406\u
7cfb
\u
7edf
productName
=
\u
4e3e
\u
62a5
\u
7ba1
\u7406\u
7cfb
\u
7edf
copyrightYear
=
2017
copyrightYear
=
2017
version
=
V1.2.6
version
=
V1.2.6
...
...
src/main/resources/jdbc.properties
View file @
1aa07917
...
@@ -17,12 +17,12 @@ db.table.prefix=sunac_
...
@@ -17,12 +17,12 @@ db.table.prefix=sunac_
#jdbc.password= sunac
#jdbc.password= sunac
#正式数据库
#正式数据库
#
jdbc.type=oracle
jdbc.type
=
oracle
#
jdbc.driver.class=oracle.jdbc.driver.OracleDriver
jdbc.driver.class
=
oracle.jdbc.driver.OracleDriver
#
jdbc.url=jdbc:oracle:thin:@192.168.2.24:1521:eas1
jdbc.url
=
jdbc:oracle:thin:@192.168.2.24:1521:eas1
#
jdbc.username= easdba
jdbc.username
=
easdba
#
jdbc.password= Sunac_1918
jdbc.password
=
Sunac_1918
#
#本地测试库
#本地测试库
#jdbc.type=mysql
#jdbc.type=mysql
...
@@ -32,11 +32,11 @@ db.table.prefix=sunac_
...
@@ -32,11 +32,11 @@ db.table.prefix=sunac_
#jdbc.password=123456
#jdbc.password=123456
#测试环境
#测试环境
jdbc.type
=
oracle
#
jdbc.type=oracle
jdbc.driver.class
=
oracle.jdbc.driver.OracleDriver
#
jdbc.driver.class=oracle.jdbc.driver.OracleDriver
jdbc.url
=
jdbc:oracle:thin:@192.168.7.16:1521:eas
#
jdbc.url=jdbc:oracle:thin:@192.168.7.16:1521:eas
jdbc.username
=
easdba
#
jdbc.username= easdba
jdbc.password
=
easdba
#
jdbc.password= easdba
...
...
src/main/resources/mappings/modules/report/CtBbtcTypeAreaDao.xml
View file @
1aa07917
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
AND a.AREA_ID = #{area}
AND a.AREA_ID = #{area}
</if>
</if>
</where>
</where>
GROUP BY a.
parent_id
GROUP BY a.
id,a.parent_id,b.label,c.name,d.name
</select>
</select>
<select
id=
"findList"
resultType=
"com.ejweb.modules.report.entity.CtBbtcTypeArea"
>
<select
id=
"findList"
resultType=
"com.ejweb.modules.report.entity.CtBbtcTypeArea"
>
...
...
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