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
69c9343c
Commit
69c9343c
authored
Nov 19, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import keyIn
parent
7f84730a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
TemplateGroupServiceImpl.java
...c/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
+5
-4
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TemplateGroupServiceImpl.java
View file @
69c9343c
...
...
@@ -270,7 +270,8 @@ public class TemplateGroupServiceImpl extends AbstractService {
cell
.
setCellValue
(
StringUtils
.
EMPTY
);
addManualConfig
(
cellTemplate
,
template
,
cell
,
now
,
cellTemplateConfigList
);
}
if
(!
cell
.
getCellStyle
().
getLocked
()
&&
StringUtils
.
isNotBlank
(
POIUtil
.
getCellFormulaString
(
cell
)))
{
if
(!
cell
.
getCellStyle
().
getLocked
()
&&
StringUtils
.
isNotBlank
(
POIUtil
.
getCellFormulaString
(
cell
))
&&
"${KeyIn}"
.
equalsIgnoreCase
(
POIUtil
.
getCellFormulaString
(
cell
)))
{
CellTemplateConfig
config
=
new
CellTemplateConfig
();
config
.
setId
(
distributedIdService
.
nextId
());
config
.
setCellTemplateId
(
cellTemplate
.
getId
());
...
...
@@ -356,8 +357,7 @@ public class TemplateGroupServiceImpl extends AbstractService {
for
(
int
k
=
row
.
getFirstCellNum
();
k
<
row
.
getLastCellNum
();
k
++){
Cell
cell
=
row
.
getCell
(
k
);
cell
.
setCellType
(
CellType
.
STRING
);
if
(!
cell
.
getCellStyle
().
getLocked
()
&&
StringUtils
.
isNotBlank
(
cell
.
getStringCellValue
())
&&
cell
.
getStringCellValue
().
equalsIgnoreCase
(
"${KeyIn}"
)){
if
(!
cell
.
getCellStyle
().
getLocked
()
&&
"${KeyIn}"
.
equalsIgnoreCase
(
cell
.
getStringCellValue
())){
cell
.
setCellValue
(
""
);
}
}
...
...
@@ -406,7 +406,8 @@ public class TemplateGroupServiceImpl extends AbstractService {
cell
.
setCellValue
(
StringUtils
.
EMPTY
);
addManualConfig
(
cellTemplate
,
template
,
cell
,
now
,
cellTemplateConfigList
);
}
if
(!
cell
.
getCellStyle
().
getLocked
()
&&
StringUtils
.
isNotBlank
(
POIUtil
.
getCellFormulaString
(
cell
)))
{
if
(!
cell
.
getCellStyle
().
getLocked
()
&&
StringUtils
.
isNotBlank
(
POIUtil
.
getCellFormulaString
(
cell
))
&&
"${KeyIn}"
.
equalsIgnoreCase
(
POIUtil
.
getCellFormulaString
(
cell
)))
{
CellTemplateConfig
config
=
new
CellTemplateConfig
();
config
.
setId
(
distributedIdService
.
nextId
());
config
.
setCellTemplateId
(
cellTemplate
.
getId
());
...
...
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