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
517f7832
Commit
517f7832
authored
Aug 30, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed hard code url to config file
parent
2dad154a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
39 deletions
+53
-39
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+14
-0
applicationContext-mvc.xml
atms-api/src/main/resources/applicationContext-mvc.xml
+38
-37
applicationContext-mvc.xml
atms-web/src/main/resources/applicationContext-mvc.xml
+1
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
517f7832
...
@@ -348,7 +348,21 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen
...
@@ -348,7 +348,21 @@ public class ReportGeneratorImpl extends VatAbstractService implements ReportGen
}
else
{
}
else
{
data
=
EMPTY
;
data
=
EMPTY
;
}
}
if
(
StringUtils
.
isNotBlank
(
data
))
{
Pattern
pattern
=
Pattern
.
compile
(
"[0-9.]*"
);
Matcher
isNum
=
pattern
.
matcher
(
data
);
if
(
isNum
.
matches
())
{
cellData
.
setData
(
new
BigDecimal
(
data
).
toString
());
cellData
.
setData
(
new
BigDecimal
(
data
).
toString
());
}
else
{
cellData
.
setData
(
data
);
}
}
else
{
cellData
.
setData
(
data
);
}
//cellData.setData(new BigDecimal(data).toString());
PeriodFormulaBlockExample
periodFormulaBlockExample
=
new
PeriodFormulaBlockExample
();
PeriodFormulaBlockExample
periodFormulaBlockExample
=
new
PeriodFormulaBlockExample
();
periodFormulaBlockExample
.
createCriteria
().
andPeriodEqualTo
(
period
)
periodFormulaBlockExample
.
createCriteria
().
andPeriodEqualTo
(
period
)
.
andCellTemplateIdEqualTo
(
tempPeriodCellTemplate
.
get
().
getCellTemplateId
());
.
andCellTemplateIdEqualTo
(
tempPeriodCellTemplate
.
get
().
getCellTemplateId
());
...
...
atms-api/src/main/resources/applicationContext-mvc.xml
View file @
517f7832
...
@@ -32,45 +32,45 @@
...
@@ -32,45 +32,45 @@
<!-- 整合Thymeleaf3 -->
<!-- 整合Thymeleaf3 -->
<!-- See: http://www.thymeleaf.org/doc/tutorials/3.0/thymeleafspring.html -->
<!-- See: http://www.thymeleaf.org/doc/tutorials/3.0/thymeleafspring.html -->
<!-- **************************************************************** -->
<!-- **************************************************************** -->
<
bean
id=
"templateResolver"
<
!--<bean id="templateResolver"-->
class=
"org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver"
>
<!--class="org.thymeleaf.spring4.templateresolver.SpringResourceTemplateResolver">--
>
<
property
name=
"prefix"
value=
"/WEB-INF/templates/"
/
>
<
!--<property name="prefix" value="/WEB-INF/templates/" />--
>
<
property
name=
"suffix"
value=
".html"
/
>
<
!--<property name="suffix" value=".html" />--
>
<
property
name=
"templateMode"
value=
"HTML"
/
>
<
!--<property name="templateMode" value="HTML" />--
>
<
property
name=
"cacheable"
value=
"false"
/
>
<
!--<property name="cacheable" value="false" />--
>
<
property
name=
"characterEncoding"
value=
"UTF-8"
/
>
<
!--<property name="characterEncoding" value="UTF-8" />--
>
<
/bean
>
<
!--</bean>--
>
<
bean
id=
"templateEngine"
class=
"org.thymeleaf.spring4.SpringTemplateEngine"
>
<
!--<bean id="templateEngine" class="org.thymeleaf.spring4.SpringTemplateEngine">--
>
<
property
name=
"templateResolver"
ref=
"templateResolver"
/
>
<
!--<property name="templateResolver" ref="templateResolver" />--
>
<
property
name=
"enableSpringELCompiler"
value=
"true"
/
>
<
!--<property name="enableSpringELCompiler" value="true" />--
>
<
property
name=
"additionalDialects"
>
<
!--<property name="additionalDialects">--
>
<
set
>
<
!--<set>--
>
<!--
Note the package would change to 'springsecurity3' if you are using
<!--
<!– Note the package would change to 'springsecurity3' if you are using -->
that version
-->
<!--that version –>
-->
<
bean
<
!--<bean-->
class=
"org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect"
/
>
<!--class="org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect" />--
>
<
/set
>
<
!--</set>--
>
<
/property
>
<
!--</property>--
>
<
/bean
>
<
!--</bean>--
>
<!--
html文件不能放在这个目录:WEB-INF/templates/jsp
-->
<!--
<!– html文件不能放在这个目录:WEB-INF/templates/jsp –>
-->
<
bean
class=
"org.thymeleaf.spring4.view.ThymeleafViewResolver"
>
<
!--<bean class="org.thymeleaf.spring4.view.ThymeleafViewResolver">--
>
<
property
name=
"templateEngine"
ref=
"templateEngine"
/
>
<
!--<property name="templateEngine" ref="templateEngine" />--
>
<
property
name=
"characterEncoding"
value=
"UTF-8"
/
>
<
!--<property name="characterEncoding" value="UTF-8" />--
>
<
property
name=
"order"
value=
"100"
/
>
<
!--<property name="order" value="100" />--
>
<
/bean
>
<
!--</bean>--
>
<!--
共用jsp与thymeleaf,为了避免冲突,jsp viewname的前缀必须是jsp/
-->
<!--
<!– 共用jsp与thymeleaf,为了避免冲突,jsp viewname的前缀必须是jsp/ –>
-->
<!--
jsp文件必须放在这个目录:WEB-INF/templates/jsp
-->
<!--
<!– jsp文件必须放在这个目录:WEB-INF/templates/jsp –>
-->
<
bean
id=
"viewResolver"
<
!--<bean id="viewResolver"-->
class=
"org.springframework.web.servlet.view.InternalResourceViewResolver"
>
<!--class="org.springframework.web.servlet.view.InternalResourceViewResolver">--
>
<
property
name=
"viewClass"
<
!--<property name="viewClass"-->
value=
"org.springframework.web.servlet.view.JstlView"
/
>
<!--value="org.springframework.web.servlet.view.JstlView" />--
>
<
property
name=
"prefix"
value=
"/WEB-INF/templates/"
/
>
<
!--<property name="prefix" value="/WEB-INF/templates/" />--
>
<
property
name=
"suffix"
value=
".jsp"
/
>
<
!--<property name="suffix" value=".jsp" />--
>
<
property
name=
"order"
value=
"50"
/
>
<
!--<property name="order" value="50" />--
>
<
property
name=
"viewNames"
value=
"jsp/*"
/
>
<
!--<property name="viewNames" value="jsp/*" />--
>
<
/bean
>
<
!--</bean>--
>
</beans>
</beans>
\ No newline at end of file
atms-web/src/main/resources/applicationContext-mvc.xml
View file @
517f7832
...
@@ -38,8 +38,7 @@
...
@@ -38,8 +38,7 @@
<set>
<set>
<!-- Note the package would change to 'springsecurity3' if you are using
<!-- Note the package would change to 'springsecurity3' if you are using
that version -->
that version -->
<bean
<bean
class=
"org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect"
/>
class=
"org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect"
/>
</set>
</set>
</property>
</property>
</bean>
</bean>
...
...
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