Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
07d69012
Commit
07d69012
authored
Jul 09, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEV] delete some not useful plugin for maven
parent
5f50c864
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
127 deletions
+14
-127
pom.xml
atms-api/pom.xml
+11
-125
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+3
-2
No files found.
atms-api/pom.xml
View file @
07d69012
...
...
@@ -321,17 +321,17 @@
<artifactId>
lombok
</artifactId>
<version>
1.18.0
</version>
</dependency>
<
dependency
>
<
groupId>
org.eclipse.jetty.aggregate
</groupId
>
<
artifactId>
jetty-all
</artifactId
>
<
version>
9.4.10.v20180503
</version
>
<
type>
pom
</type
>
<
/dependency
>
<
dependency
>
<
groupId>
org.eclipse.jetty
</groupId
>
<
artifactId>
apache-jsp
</artifactId
>
<
version>
9.4.10.v20180503
</version
>
<
/dependency
>
<
!--<dependency>--
>
<
!--<groupId>org.eclipse.jetty.aggregate</groupId>--
>
<
!--<artifactId>jetty-all</artifactId>--
>
<
!--<version>9.4.10.v20180503</version>--
>
<
!--<type>pom</type>--
>
<
!--</dependency>--
>
<
!--<dependency>--
>
<
!--<groupId>org.eclipse.jetty</groupId>--
>
<
!--<artifactId>apache-jsp</artifactId>--
>
<
!--<version>9.4.10.v20180503</version>--
>
<
!--</dependency>--
>
</dependencies>
<profiles>
...
...
@@ -379,128 +379,14 @@
<resources>
<resource>
<directory>
src/main/resources
</directory>
<includes>
<include>
**/*.properties
</include>
<include>
**/*.xml
</include>
<include>
**/*.sql
</include>
</includes>
<filtering>
true
</filtering>
<!-- replace variable attribute or not -->
</resource>
<resource>
<directory>
src/main/resources/Document
</directory>
<includes>
<include>
**/*.xls
</include>
<include>
**/*.xlsx
</include>
</includes>
<targetPath>
${basedir}/target/classes/document
</targetPath>
</resource>
<resource>
<directory>
test/resources
</directory>
<includes>
<include>
**/*.properties
</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-war-plugin
</artifactId>
<version>
3.2.0
</version>
<configuration>
<archive>
<addMavenDescriptor>
false
</addMavenDescriptor>
</archive>
<webResources>
<resource>
<directory>
test
</directory>
<includes>
<include>
**
</include>
</includes>
<filtering>
true
</filtering>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
2.20.1
</version>
<configuration>
<includes>
<include>
**/*IT.java
</include>
<include>
**/*Test.java
</include>
</includes>
</configuration>
</plugin>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
cobertura-maven-plugin
</artifactId>
<version>
2.7
</version>
</plugin>
<!-- See: http://www.jacoco.org/jacoco/trunk/doc/maven.html -->
<!-- See: http://www.jacoco.org/jacoco/trunk/doc/examples/build/pom.xml -->
<plugin>
<groupId>
org.jacoco
</groupId>
<artifactId>
jacoco-maven-plugin
</artifactId>
<version>
0.8.0
</version>
<executions>
<execution>
<id>
default-prepare-agent
</id>
<goals>
<goal>
prepare-agent
</goal>
</goals>
</execution>
<execution>
<id>
default-report
</id>
<goals>
<goal>
report
</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- See: https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Maven -->
<plugin>
<groupId>
org.sonarsource.scanner.maven
</groupId>
<artifactId>
sonar-maven-plugin
</artifactId>
<version>
3.4.0.905
</version>
</plugin>
<plugin>
<groupId>
org.mybatis.generator
</groupId>
<artifactId>
mybatis-generator-maven-plugin
</artifactId>
<version>
1.3.2
</version>
<configuration>
<verbose>
true
</verbose>
<overwrite>
true
</overwrite>
</configuration>
</plugin>
<!-- 资源文件拷贝插件 -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
2.7
</version>
<dependencies>
<dependency>
<groupId>
org.apache.maven.shared
</groupId>
<artifactId>
maven-filtering
</artifactId>
<version>
1.3
</version>
</dependency>
</dependencies>
</plugin>
<!-- java编译插件 -->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.2
</version>
<dependencies>
<dependency>
<groupId>
org.apache.maven.shared
</groupId>
<artifactId>
maven-filtering
</artifactId>
<version>
3.1.1
</version>
</dependency>
</dependencies>
<configuration>
<source>
1.8
</source>
<target>
1.8
</target>
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
07d69012
...
...
@@ -258,12 +258,13 @@ public class ReportGeneratorImpl implements ReportGenerator {
* @param workbook 工作簿
*/
private
void
addFunctionsToWorkbook
(
Workbook
workbook
,
Long
templateGroupID
)
{
String
[]
functionNames
=
{
"SGSR"
,
"FSJZ"
,
"ND"
};
String
[]
functionNames
=
{
"SGSR"
,
"FSJZ"
,
"ND"
,
"BB"
};
FormulaContext
formulaContext
=
new
FormulaContext
();
formulaContext
.
setFormulaAgent
(
formulaAgent
);
formulaContext
.
setPeriod
(
6
);
//todo: assign value later
formulaContext
.
setReportTemplateGroupID
(
templateGroupID
);
FreeRefFunction
[]
functionImpls
=
{
new
SGSR
(
formulaContext
),
new
FSJZ
(
formulaContext
),
new
ND
(
formulaContext
)};
FreeRefFunction
[]
functionImpls
=
{
new
SGSR
(
formulaContext
),
new
FSJZ
(
formulaContext
),
new
ND
(
formulaContext
),
new
ReportFormulaFactory
.
BB
(
formulaContext
)};
UDFFinder
udfs
=
new
DefaultUDFFinder
(
functionNames
,
functionImpls
);
UDFFinder
udfToolpack
=
new
AggregatingUDFFinder
(
udfs
);
workbook
.
addToolPack
(
udfToolpack
);
...
...
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