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
7330852f
Commit
7330852f
authored
Oct 02, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bugfix] fix bb null is not insert when insert datasource
parent
189b3fc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
22 deletions
+4
-22
FunctionBase.java
.../atms/vat/service/impl/report/functions/FunctionBase.java
+3
-3
PeriodCellTemplateExtendsMapper.xml
.../atms/vat/dao/extends/PeriodCellTemplateExtendsMapper.xml
+1
-19
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/FunctionBase.java
View file @
7330852f
...
...
@@ -117,15 +117,15 @@ public class FunctionBase {
dataSource
.
setType
(
FormulaDataSourceType
.
Report
.
getCode
());
dataSource
.
setName
(
"ReportDataSource"
);
dataSource
.
setAmount
(
val
);
dataSource
.
setDescription
(
""
);
dataSource
.
setDescription
(
"
描述
"
);
dataSource
.
setCreateBy
(
"Admin"
);
dataSource
.
setUpdateBy
(
"Admin"
);
dataSource
.
setCreateTime
(
creatime
);
dataSource
.
setUpdateTime
(
creatime
);
dataSource
.
setRowIndex
(
rowNumP
==
null
?
ec
.
getRowIndex
()
:
rowNumP
);
dataSource
.
setColumnIndex
(
colNumP
==
null
?
ec
.
getColumnIndex
()
:
colNumP
);
dataSource
.
setRowName
(
""
);
dataSource
.
setColumnName
(
""
);
dataSource
.
setRowName
(
"
行名
"
);
dataSource
.
setColumnName
(
"
列名
"
);
dataSource
.
setCellTemplateId
(
periodCellTemplateId
);
dataSource
.
setPeriod
(
period
);
SpringContextUtil
.
periodDataSourceMapper
.
insertSelective
(
dataSource
);
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/PeriodCellTemplateExtendsMapper.xml
View file @
7330852f
...
...
@@ -5,25 +5,7 @@
<insert
id=
"batchInsert"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplate"
>
INSERT ALL
<foreach
collection=
"list"
item=
"item"
>
INTO PERIOD_CELL_TEMPLATE (
ID,
PERIOD,
REPORT_TEMPLATE_ID,
ROW_INDEX,
ROW_NAME,
COLUMN_INDEX,
"COLUMN_NAME",
"COMMENT",
CREATE_TIME,
UPDATE_TIME,
CELL_TEMPLATE_ID,
DATA_TYPE,
IS_READ_ONLY,
COPY_FROM_ID,
CREATE_BY,
UPDATE_BY,
PROJECT_ID
) VALUES
INTO PERIOD_CELL_TEMPLATE VALUES
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<choose>
<when
test=
"item.id != null"
>
#{item.id,jdbcType=INTEGER},
</when>
...
...
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