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
397ba268
Commit
397ba268
authored
Oct 02, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] add xml for batch insert
parent
82b94634
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
3 deletions
+32
-3
PeriodCellTemplateConfigExtendsMapper.xml
...vat/dao/extends/PeriodCellTemplateConfigExtendsMapper.xml
+27
-1
PeriodTemplateExtendsMapper.xml
...tech/atms/vat/dao/extends/PeriodTemplateExtendsMapper.xml
+5
-2
No files found.
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/PeriodCellTemplateConfigExtendsMapper.xml
View file @
397ba268
...
...
@@ -5,7 +5,33 @@
<insert
id=
"batchInsert"
parameterType=
"pwc.taxtech.atms.vat.entity.PeriodCellTemplateConfig"
>
INSERT ALL
<foreach
collection=
"list"
item=
"item"
>
INTO PERIOD_CELL_TEMPLATE_CONFIG VALUES
INTO PERIOD_CELL_TEMPLATE_CONFIG (
ID,
PERIOD,
CELL_TEMPLATE_ID,
REPORT_TEMPLATE_ID,
DATA_SOURCE_TYPE,
FORMULA,
PARSED_FORMULA,
FORMULA_DESCRIPTION,
ACCOUNT_CODES,
INVOICE_TYPE,
TAX_RATE,
INVOICE_AMOUNT_TYPE,
MODEL_IDS,
CREATE_BY,
CREATE_TIME,
UPDATE_BY,
UPDATE_TIME,
INVOICE_CATEGORY,
FORMULA_DATA_SOURCE,
VALIDATION,
PARSED_VALIDATION,
VALIDATION_DESCRIPTION,
VOUCHER_KEYWORD,
CELL_TEMPLATE_CONFIG_ID,
KEY_VALUE_PARSED_FORMULA
) VALUES
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<choose>
<when
test=
"item.id != null"
>
#{item.id,jdbcType=INTEGER},
</when>
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/PeriodTemplateExtendsMapper.xml
View file @
397ba268
...
...
@@ -83,6 +83,10 @@
<when
test=
"item.createBy != null"
>
#{item.createBy,jdbcType=VARCHAR},
</when>
<otherwise>
' ',
</otherwise>
</choose>
<choose>
<when
test=
"item.updateBy != null"
>
#{item.updateBy,jdbcType=VARCHAR},
</when>
<otherwise>
' ',
</otherwise>
</choose>
</trim>
</foreach>
SELECT 1 FROM DUAL
...
...
@@ -126,4 +130,4 @@
AND TEMPLATE.IS_ACTIVE_ASSOCIATION=1
</select>
</mapper>
\ No newline at end of file
</mapper>
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