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
7d3a110e
Commit
7d3a110e
authored
Dec 10, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_oracle_sherlock' into 'dev_oracle'
import template & datasource See merge request root/atms!228
parents
9eed967f
57f6d081
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
13 deletions
+24
-13
PeriodCellDataExtendsMapper.xml
...tech/atms/vat/dao/extends/PeriodCellDataExtendsMapper.xml
+4
-3
PeriodDataSourceExtendsMapper.xml
...ch/atms/vat/dao/extends/PeriodDataSourceExtendsMapper.xml
+10
-6
vat-report-sheet.js
.../app/common/controls/vat-report-sheet/vat-report-sheet.js
+10
-4
No files found.
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/PeriodCellDataExtendsMapper.xml
View file @
7d3a110e
...
@@ -61,9 +61,7 @@
...
@@ -61,9 +61,7 @@
<when
test=
"item.data != null"
>
#{item.data,jdbcType=VARCHAR},
</when>
<when
test=
"item.data != null"
>
#{item.data,jdbcType=VARCHAR},
</when>
<otherwise>
' ',
</otherwise>
<otherwise>
' ',
</otherwise>
</choose>
</choose>
<choose>
<when
test=
"item.keyinData != null"
>
#{item.keyinData,jdbcType=VARCHAR},
</when>
</choose>
<choose>
<choose>
<when
test=
"item.formulaExp != null"
>
#{item.formulaExp,jdbcType=VARCHAR},
</when>
<when
test=
"item.formulaExp != null"
>
#{item.formulaExp,jdbcType=VARCHAR},
</when>
<otherwise>
' ',
</otherwise>
<otherwise>
' ',
</otherwise>
...
@@ -88,6 +86,9 @@
...
@@ -88,6 +86,9 @@
<when
test=
"item.projectId != null"
>
#{item.projectId,jdbcType=VARCHAR},
</when>
<when
test=
"item.projectId != null"
>
#{item.projectId,jdbcType=VARCHAR},
</when>
<otherwise>
' ',
</otherwise>
<otherwise>
' ',
</otherwise>
</choose>
</choose>
<choose>
<when
test=
"item.keyinData != null"
>
#{item.keyinData,jdbcType=VARCHAR},
</when>
</choose>
</trim>
</trim>
</foreach>
</foreach>
SELECT 1 FROM DUAL
SELECT 1 FROM DUAL
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/PeriodDataSourceExtendsMapper.xml
View file @
7d3a110e
...
@@ -378,11 +378,7 @@
...
@@ -378,11 +378,7 @@
0,
0,
</otherwise>
</otherwise>
</choose>
</choose>
<choose>
<when
test=
"item.keyinData != null"
>
#{item.keyinData,jdbcType=VARCHAR},
</when>
</choose>
<choose>
<choose>
<when
test=
"item.description != null"
>
<when
test=
"item.description != null"
>
#{item.description,jdbcType=VARCHAR},
#{item.description,jdbcType=VARCHAR},
...
@@ -396,7 +392,7 @@
...
@@ -396,7 +392,7 @@
#{item.keyValueDataId,jdbcType=VARCHAR},
#{item.keyValueDataId,jdbcType=VARCHAR},
</when>
</when>
<otherwise>
<otherwise>
0
,
'0'
,
</otherwise>
</otherwise>
</choose>
</choose>
<choose>
<choose>
...
@@ -496,6 +492,14 @@
...
@@ -496,6 +492,14 @@
'',
'',
</otherwise>
</otherwise>
</choose>
</choose>
<choose>
<when
test=
"item.keyinData != null"
>
#{item.keyinData,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
</choose>
</trim>
</trim>
</foreach>
</foreach>
SELECT 1 FROM DUAL
SELECT 1 FROM DUAL
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-sheet/vat-report-sheet.js
View file @
7d3a110e
...
@@ -512,12 +512,18 @@
...
@@ -512,12 +512,18 @@
// 设置顺序: 非数值字符串 -> 单元格值覆盖修改 -> 公式或手工数据源 -> 数值
// 设置顺序: 非数值字符串 -> 单元格值覆盖修改 -> 公式或手工数据源 -> 数值
var
ifShowParseFloat
=
true
;
// 用于标识单元格是否设置成数值
var
ifShowParseFloat
=
true
;
// 用于标识单元格是否设置成数值
if
(
_
.
isString
(
data
.
keyinData
)
&&
data
.
keyinData
.
length
>
0
&&
isNaN
(
Number
(
data
.
keyinData
))){
sheet
.
setValue
(
data
.
rowIndex
,
data
.
columnIndex
,
data
.
keyinData
);
if
(
data
.
dataSourceList
&&
data
.
dataSourceList
.
length
>
0
&&
data
.
dataSourceList
[
0
].
keyinData
){
sheet
.
setValue
(
data
.
rowIndex
,
data
.
columnIndex
,
data
.
dataSourceList
[
0
].
keyinData
);
ifShowParseFloat
=
false
;
// 非数值字符串,单元格设置为字符串
ifShowParseFloat
=
false
;
// 非数值字符串,单元格设置为字符串
data
.
value
=
data
.
keyinData
;
// data.value = data.dataSourceList[0]
.keyinData;
}
}
if
(
_
.
isString
(
data
.
value
)
&&
data
.
value
.
length
>
0
&&
isNaN
(
Number
(
data
.
value
)))
{
// else if(_.isString(data.keyinData) && data.keyinData.length > 0 && isNaN(Number(data.keyinData))){
// sheet.setValue(data.rowIndex, data.columnIndex, data.keyinData);
// ifShowParseFloat = false; // 非数值字符串,单元格设置为字符串
// data.value = data.keyinData;
// }
else
if
(
_
.
isString
(
data
.
value
)
&&
data
.
value
.
length
>
0
&&
isNaN
(
Number
(
data
.
value
)))
{
sheet
.
setValue
(
data
.
rowIndex
,
data
.
columnIndex
,
data
.
value
);
sheet
.
setValue
(
data
.
rowIndex
,
data
.
columnIndex
,
data
.
value
);
ifShowParseFloat
=
false
;
// 非数值字符串,单元格设置为字符串
ifShowParseFloat
=
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