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
9a5e87a2
Commit
9a5e87a2
authored
Sep 29, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] add projectid from tax payer report rule
parent
29735f86
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
ReportServiceImpl.java
.../pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
+1
-1
DataSourceMapper.java
.../main/java/pwc/taxtech/atms/vat/dao/DataSourceMapper.java
+3
-2
PeriodTaxPayerReportRuleMapper.xml
...c/taxtech/atms/vat/dao/PeriodTaxPayerReportRuleMapper.xml
+1
-1
DataSourceExtendsMapper.xml
.../taxtech/atms/vat/dao/extends/DataSourceExtendsMapper.xml
+8
-4
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportServiceImpl.java
View file @
9a5e87a2
...
...
@@ -155,7 +155,7 @@ public class ReportServiceImpl extends VatAbstractService implements ReportServi
// dataSourceMapper.clearDataSourceWithPeriod(period);
// dataSourceMapper.clearCellDataWithPeriod(strExceptTemplateIds, period);
// dataSourceMapper.clearReportWithPeriod(period);
dataSourceMapper
.
clearDataWithPeriod
(
strExceptTemplateIds
,
period
);
dataSourceMapper
.
clearDataWithPeriod
(
strExceptTemplateIds
,
period
,
projectId
);
// 根据templategroupid 把 template 插入到 periodTemplate
TemplateExample
example
=
new
TemplateExample
();
example
.
createCriteria
().
andTemplateGroupIdEqualTo
(
templateGroupId
);
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/dao/DataSourceMapper.java
View file @
9a5e87a2
...
...
@@ -119,7 +119,7 @@ public interface DataSourceMapper extends MyVatMapper {
void
clearTemplateWithPeriod
(
@Param
(
"period"
)
Integer
period
,
@Param
(
"exceptReportTemplateIDs"
)
String
exceptReportTemplateIDs
);
void
clearTaxPayerReportWithPeriod
(
@Param
(
"period"
)
Integer
period
);
void
clearTaxPayerReportWithPeriod
(
@Param
(
"period"
)
Integer
period
,
@Param
(
"projectId"
)
String
projectId
);
void
clearDataSourceWithPeriod
(
@Param
(
"period"
)
Integer
period
);
...
...
@@ -131,7 +131,8 @@ public interface DataSourceMapper extends MyVatMapper {
void
clearReportWithPeriod
(
Integer
period
);
void
clearDataWithPeriod
(
@Param
(
"exceptReportTemplateIDs"
)
String
exceptReportTemplateIDs
,
@Param
(
"period"
)
Integer
period
);
void
clearDataWithPeriod
(
@Param
(
"exceptReportTemplateIDs"
)
String
exceptReportTemplateIDs
,
@Param
(
"period"
)
Integer
period
,
@Param
(
"projectId"
)
String
projectId
);
List
<
DataSourceExtendDto
>
getFormulaDataSource
(
Long
reportID
);
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/PeriodTaxPayerReportRuleMapper.xml
View file @
9a5e87a2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"pwc.taxtech.atms.vat.dao.
PeriodTaxPayerReportRuleM
apper"
>
<mapper
namespace=
"pwc.taxtech.atms.vat.dao.apper"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.vat.entity.PeriodTaxPayerReportRule"
>
<!--
WARNING - @mbg.generated
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/extends/DataSourceExtendsMapper.xml
View file @
9a5e87a2
...
...
@@ -59,7 +59,8 @@
DELETE FROM
PERIOD_TAX_PAYER_REPORT_RULE
WHERE
PERIOD= #{period,jdbcType=INTEGER} ;
PERIOD= #{period,jdbcType=INTEGER}
AND PROJECT_ID= #{projectId,jdbcType=VARCHAR} ;
</delete>
<delete
id=
"clearDataSourceWithPeriod"
>
...
...
@@ -155,7 +156,8 @@
DELETE FROM
PERIOD_TAX_PAYER_REPORT_RULE
WHERE
PERIOD= #{period,jdbcType=INTEGER} ;
PERIOD= #{period,jdbcType=INTEGER}
AND PROJECT_ID= #{projectId,jdbcType=VARCHAR};
DELETE
D FROM
DATA_SOURCE_DETAIL D
...
...
@@ -279,12 +281,14 @@
<association
property=
"cellData"
javaType=
"pwc.taxtech.atms.vat.entity.CellData"
>
<id
column=
"CELL_DATA_ID"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"CELL_DATA_DATA"
property=
"data"
javaType=
"java.lang.String"
jdbcType=
"VARCHAR"
/>
<result
column=
"CELL_DATA_TEMPLATE_ID"
property=
"cellTemplateId"
javaType=
"java.lang.Long"
jdbcType=
"BIGINT"
/>
<result
column=
"CELL_DATA_TEMPLATE_ID"
property=
"cellTemplateId"
javaType=
"java.lang.Long"
jdbcType=
"BIGINT"
/>
<result
column=
"CELL_DATA_REPORT_ID"
property=
"reportId"
javaType=
"java.lang.Long"
jdbcType=
"BIGINT"
/>
</association>
<association
property=
"cellDataSource"
javaType=
"pwc.taxtech.atms.vat.entity.CellDataSource"
>
<id
column=
"CELL_DATA_SOURCE_ID"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"CELL_DATA_SOURCE_OPERATION_TYPE"
property=
"operationType"
javaType=
"java.lang.Integer"
jdbcType=
"INTEGER"
/>
<result
column=
"CELL_DATA_SOURCE_OPERATION_TYPE"
property=
"operationType"
javaType=
"java.lang.Integer"
jdbcType=
"INTEGER"
/>
</association>
</resultMap>
...
...
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