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
506dce2c
Commit
506dce2c
authored
Mar 06, 2019
by
chase
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_mysql' of
http://code.tech.tax.asia.pwcinternal.com/root/atms
into dev_mysql
parents
de5fbc39
1c7bd322
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
626 additions
and
252 deletions
+626
-252
HttpUtil.java
.../src/main/java/pwc/taxtech/atms/common/util/HttpUtil.java
+0
-0
EbsApiController.java
...in/java/pwc/taxtech/atms/controller/EbsApiController.java
+16
-16
BalanceSheetPrcQueryDto.java
.../pwc/taxtech/atms/dto/ebsdto/BalanceSheetPrcQueryDto.java
+19
-15
BalanceSheetQueryDto.java
...ava/pwc/taxtech/atms/dto/ebsdto/BalanceSheetQueryDto.java
+19
-15
CashFlowQueryDto.java
...in/java/pwc/taxtech/atms/dto/ebsdto/CashFlowQueryDto.java
+13
-9
JournalEntryQueryDto.java
...ava/pwc/taxtech/atms/dto/ebsdto/JournalEntryQueryDto.java
+29
-21
OrganizationAccountingRateQueryDto.java
...h/atms/dto/ebsdto/OrganizationAccountingRateQueryDto.java
+10
-6
ProfitLossStatementPrcQueryDto.java
...xtech/atms/dto/ebsdto/ProfitLossStatementPrcQueryDto.java
+19
-15
ProfitLossStatementQueryDto.java
.../taxtech/atms/dto/ebsdto/ProfitLossStatementQueryDto.java
+19
-15
TrialBalanceQueryDto.java
...ava/pwc/taxtech/atms/dto/ebsdto/TrialBalanceQueryDto.java
+13
-9
TrialBalanceDto.java
.../java/pwc/taxtech/atms/dto/vatdto/dd/TrialBalanceDto.java
+10
-0
EbsApiService.java
...src/main/java/pwc/taxtech/atms/service/EbsApiService.java
+8
-8
EbsApiServiceImpl.java
...java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
+0
-0
DataInitTest.java
...test/java/pwc/taxtech/atms/service/impl/DataInitTest.java
+41
-8
EbsApiServiceImplTest.java
.../pwc/taxtech/atms/service/impl/EbsApiServiceImplTest.java
+43
-27
OrganizationAccountingRate.java
...a/pwc/taxtech/atms/entity/OrganizationAccountingRate.java
+8
-0
OrganizationApprovedLevyInfo.java
...pwc/taxtech/atms/entity/OrganizationApprovedLevyInfo.java
+9
-0
OrganizationInvoice.java
...ain/java/pwc/taxtech/atms/entity/OrganizationInvoice.java
+7
-0
OrganizationReturnRate.java
.../java/pwc/taxtech/atms/entity/OrganizationReturnRate.java
+8
-0
OrganizationTaxOfficer.java
.../java/pwc/taxtech/atms/entity/OrganizationTaxOfficer.java
+9
-0
OrganizationTaxRule.java
...ain/java/pwc/taxtech/atms/entity/OrganizationTaxRule.java
+8
-0
OrganizationTaxpayerQualification.java
...axtech/atms/entity/OrganizationTaxpayerQualification.java
+8
-0
TrialBalance.java
...c/main/java/pwc/taxtech/atms/vat/entity/TrialBalance.java
+36
-0
TrialBalanceExample.java
...java/pwc/taxtech/atms/vat/entity/TrialBalanceExample.java
+60
-0
TrialBalanceFinal.java
...n/java/pwc/taxtech/atms/vat/entity/TrialBalanceFinal.java
+36
-0
TrialBalanceFinalExample.java
...pwc/taxtech/atms/vat/entity/TrialBalanceFinalExample.java
+60
-0
TrialBalanceFinalMapper.xml
...rces/pwc/taxtech/atms/vat/dao/TrialBalanceFinalMapper.xml
+59
-44
TrialBalanceMapper.xml
...resources/pwc/taxtech/atms/vat/dao/TrialBalanceMapper.xml
+59
-44
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/util/HttpUtil.java
0 → 100644
View file @
506dce2c
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/controller/EbsApiController.java
View file @
506dce2c
...
...
@@ -23,13 +23,13 @@ public class EbsApiController {
@RequestMapping
(
value
=
"/updateJE"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
ApiResultDto
updateJE
(
@RequestBody
List
<
JournalEntryQueryDto
>
items
)
{
ApiResultDto
updateJE
(
@Request
Param
(
value
=
"id"
,
defaultValue
=
"123123123"
)
Long
id
,
@Request
Body
List
<
JournalEntryQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateJE return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdateJE
(
items
);
ebsApiService
.
queryRemoteServerThenUpdateJE
(
i
d
,
i
tems
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"updateJE error."
,
e
);
...
...
@@ -38,13 +38,13 @@ public class EbsApiController {
}
@RequestMapping
(
value
=
"/updateTB"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
ApiResultDto
updateTB
(
@RequestBody
List
<
TrialBalanceQueryDto
>
items
)
{
public
@ResponseBody
ApiResultDto
updateTB
(
@Request
Param
(
"id"
)
Long
id
,
@Request
Body
List
<
TrialBalanceQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateTB return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdateTB
(
items
);
ebsApiService
.
queryRemoteServerThenUpdateTB
(
i
d
,
i
tems
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"updateTB error."
,
e
);
...
...
@@ -53,13 +53,13 @@ public class EbsApiController {
}
@RequestMapping
(
value
=
"/updateCF"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
ApiResultDto
updateCF
(
@RequestBody
List
<
CashFlowQueryDto
>
items
)
{
public
@ResponseBody
ApiResultDto
updateCF
(
@Request
Param
(
"id"
)
Long
id
,
@Request
Body
List
<
CashFlowQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateCF return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdateCF
(
items
);
ebsApiService
.
queryRemoteServerThenUpdateCF
(
i
d
,
i
tems
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"updateCF error."
,
e
);
...
...
@@ -68,13 +68,13 @@ public class EbsApiController {
}
@RequestMapping
(
value
=
"/updateBS"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
ApiResultDto
updateBS
(
@RequestBody
List
<
BalanceSheetQueryDto
>
items
)
{
public
@ResponseBody
ApiResultDto
updateBS
(
@Request
Param
(
"id"
)
Long
id
,
@Request
Body
List
<
BalanceSheetQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateBS return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdateBS
(
items
);
ebsApiService
.
queryRemoteServerThenUpdateBS
(
i
d
,
i
tems
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"updateBS error."
,
e
);
...
...
@@ -83,13 +83,13 @@ public class EbsApiController {
}
@RequestMapping
(
value
=
"/updatePL"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
ApiResultDto
updatePL
(
@RequestBody
List
<
ProfitLossStatementQueryDto
>
items
)
{
public
@ResponseBody
ApiResultDto
updatePL
(
@Request
Param
(
"id"
)
Long
id
,
@Request
Body
List
<
ProfitLossStatementQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updatePL return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdatePL
(
items
);
ebsApiService
.
queryRemoteServerThenUpdatePL
(
i
d
,
i
tems
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"updatePL error."
,
e
);
...
...
@@ -98,13 +98,13 @@ public class EbsApiController {
}
@RequestMapping
(
value
=
"/updateBSprc"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
ApiResultDto
updateBSprc
(
@RequestBody
List
<
BalanceSheetPrcQueryDto
>
items
)
{
public
@ResponseBody
ApiResultDto
updateBSprc
(
@Request
Param
(
"id"
)
Long
id
,
@Request
Body
List
<
BalanceSheetPrcQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateBSprc return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdateBSprc
(
items
);
ebsApiService
.
queryRemoteServerThenUpdateBSprc
(
i
d
,
i
tems
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"updateBSprc error."
,
e
);
...
...
@@ -113,13 +113,13 @@ public class EbsApiController {
}
@RequestMapping
(
value
=
"/updatePLprc"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
ApiResultDto
updatePLprc
(
@RequestBody
List
<
ProfitLossStatementPrcQueryDto
>
items
)
{
public
@ResponseBody
ApiResultDto
updatePLprc
(
@Request
Param
(
"id"
)
Long
id
,
@Request
Body
List
<
ProfitLossStatementPrcQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updatePLprc return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdatePLprc
(
items
);
ebsApiService
.
queryRemoteServerThenUpdatePLprc
(
i
d
,
i
tems
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"updatePLprc error."
,
e
);
...
...
@@ -128,13 +128,13 @@ public class EbsApiController {
}
@RequestMapping
(
value
=
"/updateOAR"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
ApiResultDto
updateOAR
(
@RequestBody
List
<
OrganizationAccountingRateQueryDto
>
items
)
{
public
@ResponseBody
ApiResultDto
updateOAR
(
@Request
Param
(
"id"
)
Long
id
,
@Request
Body
List
<
OrganizationAccountingRateQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateOAR return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdateOAR
(
items
);
ebsApiService
.
queryRemoteServerThenUpdateOAR
(
i
d
,
i
tems
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"updateOAR error."
,
e
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/ebsdto/BalanceSheetPrcQueryDto.java
View file @
506dce2c
package
pwc
.
taxtech
.
atms
.
dto
.
ebsdto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
public
class
BalanceSheetPrcQueryDto
{
...
...
@@ -13,7 +16,8 @@ public class BalanceSheetPrcQueryDto {
*
* @mbg.generated
*/
private
String
date
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:ss:mm"
,
timezone
=
"GMT+8"
)
private
Date
date
;
/**
* Database Column Remarks:
...
...
@@ -35,7 +39,7 @@ public class BalanceSheetPrcQueryDto {
*
* @mbg.generated
*/
private
Integer
period
;
private
String
period
;
/**
* Database Column Remarks:
...
...
@@ -46,7 +50,7 @@ public class BalanceSheetPrcQueryDto {
*
* @mbg.generated
*/
private
Boolean
status
;
private
String
status
;
/**
* Database Column Remarks:
...
...
@@ -158,14 +162,6 @@ public class BalanceSheetPrcQueryDto {
*/
private
BigDecimal
begBal
;
public
String
getDate
()
{
return
date
;
}
public
void
setDate
(
String
date
)
{
this
.
date
=
date
;
}
public
String
getSource
()
{
return
source
;
}
...
...
@@ -174,19 +170,27 @@ public class BalanceSheetPrcQueryDto {
this
.
source
=
source
;
}
public
Integer
getPeriod
()
{
public
Date
getDate
()
{
return
date
;
}
public
void
setDate
(
Date
date
)
{
this
.
date
=
date
;
}
public
String
getPeriod
()
{
return
period
;
}
public
void
setPeriod
(
Integer
period
)
{
public
void
setPeriod
(
String
period
)
{
this
.
period
=
period
;
}
public
Boolean
getStatus
()
{
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Boolean
status
)
{
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/ebsdto/BalanceSheetQueryDto.java
View file @
506dce2c
package
pwc
.
taxtech
.
atms
.
dto
.
ebsdto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
public
class
BalanceSheetQueryDto
{
/**
...
...
@@ -12,7 +15,8 @@ public class BalanceSheetQueryDto {
*
* @mbg.generated
*/
private
String
date
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:ss:mm"
,
timezone
=
"GMT+8"
)
private
Date
date
;
/**
* Database Column Remarks:
...
...
@@ -34,7 +38,7 @@ public class BalanceSheetQueryDto {
*
* @mbg.generated
*/
private
Integer
period
;
private
String
period
;
/**
* Database Column Remarks:
...
...
@@ -45,7 +49,7 @@ public class BalanceSheetQueryDto {
*
* @mbg.generated
*/
private
Boolean
status
;
private
String
status
;
/**
* Database Column Remarks:
...
...
@@ -157,14 +161,6 @@ public class BalanceSheetQueryDto {
*/
private
BigDecimal
begBal
;
public
String
getDate
()
{
return
date
;
}
public
void
setDate
(
String
date
)
{
this
.
date
=
date
;
}
public
String
getSource
()
{
return
source
;
}
...
...
@@ -173,19 +169,27 @@ public class BalanceSheetQueryDto {
this
.
source
=
source
;
}
public
Integer
getPeriod
()
{
public
Date
getDate
()
{
return
date
;
}
public
void
setDate
(
Date
date
)
{
this
.
date
=
date
;
}
public
String
getPeriod
()
{
return
period
;
}
public
void
setPeriod
(
Integer
period
)
{
public
void
setPeriod
(
String
period
)
{
this
.
period
=
period
;
}
public
Boolean
getStatus
()
{
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Boolean
status
)
{
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/ebsdto/CashFlowQueryDto.java
View file @
506dce2c
package
pwc
.
taxtech
.
atms
.
dto
.
ebsdto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
public
class
CashFlowQueryDto
{
/**
...
...
@@ -12,7 +15,8 @@ public class CashFlowQueryDto {
*
* @mbg.generated
*/
private
String
date
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:ss:mm"
,
timezone
=
"GMT+8"
)
private
Date
date
;
/**
* Database Column Remarks:
...
...
@@ -34,7 +38,7 @@ public class CashFlowQueryDto {
*
* @mbg.generated
*/
private
Integer
period
;
private
String
period
;
/**
* Database Column Remarks:
...
...
@@ -45,7 +49,7 @@ public class CashFlowQueryDto {
*
* @mbg.generated
*/
private
Boolean
status
;
private
String
status
;
/**
* Database Column Remarks:
...
...
@@ -169,11 +173,11 @@ public class CashFlowQueryDto {
*/
private
BigDecimal
ytdAmt
;
public
String
getDate
()
{
public
Date
getDate
()
{
return
date
;
}
public
void
setDate
(
String
date
)
{
public
void
setDate
(
Date
date
)
{
this
.
date
=
date
;
}
...
...
@@ -185,19 +189,19 @@ public class CashFlowQueryDto {
this
.
source
=
source
;
}
public
Integer
getPeriod
()
{
public
String
getPeriod
()
{
return
period
;
}
public
void
setPeriod
(
Integer
period
)
{
public
void
setPeriod
(
String
period
)
{
this
.
period
=
period
;
}
public
Boolean
getStatus
()
{
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Boolean
status
)
{
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/ebsdto/JournalEntryQueryDto.java
View file @
506dce2c
package
pwc
.
taxtech
.
atms
.
dto
.
ebsdto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
public
class
JournalEntryQueryDto
{
...
...
@@ -13,7 +16,8 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private
String
date
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:ss:mm"
,
timezone
=
"GMT+8"
)
private
Date
date
;
/**
* Database Column Remarks:
...
...
@@ -68,7 +72,7 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private
Boolean
status
;
private
String
status
;
/**
* Database Column Remarks:
...
...
@@ -123,7 +127,7 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private
Integer
period
;
private
String
period
;
/**
* Database Column Remarks:
...
...
@@ -134,7 +138,8 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private
String
accountingDate
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:ss:mm"
,
timezone
=
"GMT+8"
)
private
Date
accountingDate
;
/**
* Database Column Remarks:
...
...
@@ -508,7 +513,8 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private
String
attribute2
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:ss:mm"
,
timezone
=
"GMT+8"
)
private
Date
attribute2
;
/**
* Database Column Remarks:
...
...
@@ -684,7 +690,8 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private
String
createdDate
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:ss:mm"
,
timezone
=
"GMT+8"
)
private
Date
createdDate
;
/**
* Database Column Remarks:
...
...
@@ -706,13 +713,14 @@ public class JournalEntryQueryDto {
*
* @mbg.generated
*/
private
String
lateUpdatedDate
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:ss:mm"
,
timezone
=
"GMT+8"
)
private
Date
lateUpdatedDate
;
public
String
getDate
()
{
public
Date
getDate
()
{
return
date
;
}
public
void
setDate
(
String
date
)
{
public
void
setDate
(
Date
date
)
{
this
.
date
=
date
;
}
...
...
@@ -748,11 +756,11 @@ public class JournalEntryQueryDto {
this
.
currencyCode
=
currencyCode
;
}
public
Boolean
getStatus
()
{
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Boolean
status
)
{
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
...
...
@@ -788,19 +796,19 @@ public class JournalEntryQueryDto {
this
.
postedStatus
=
postedStatus
;
}
public
Integer
getPeriod
()
{
public
String
getPeriod
()
{
return
period
;
}
public
void
setPeriod
(
Integer
period
)
{
public
void
setPeriod
(
String
period
)
{
this
.
period
=
period
;
}
public
String
getAccountingDate
()
{
public
Date
getAccountingDate
()
{
return
accountingDate
;
}
public
void
setAccountingDate
(
String
accountingDate
)
{
public
void
setAccountingDate
(
Date
accountingDate
)
{
this
.
accountingDate
=
accountingDate
;
}
...
...
@@ -1068,11 +1076,11 @@ public class JournalEntryQueryDto {
this
.
attribute1
=
attribute1
;
}
public
String
getAttribute2
()
{
public
Date
getAttribute2
()
{
return
attribute2
;
}
public
void
setAttribute2
(
String
attribute2
)
{
public
void
setAttribute2
(
Date
attribute2
)
{
this
.
attribute2
=
attribute2
;
}
...
...
@@ -1196,11 +1204,11 @@ public class JournalEntryQueryDto {
this
.
createdBy
=
createdBy
;
}
public
String
getCreatedDate
()
{
public
Date
getCreatedDate
()
{
return
createdDate
;
}
public
void
setCreatedDate
(
String
createdDate
)
{
public
void
setCreatedDate
(
Date
createdDate
)
{
this
.
createdDate
=
createdDate
;
}
...
...
@@ -1212,11 +1220,11 @@ public class JournalEntryQueryDto {
this
.
lateUpdatedBy
=
lateUpdatedBy
;
}
public
String
getLateUpdatedDate
()
{
public
Date
getLateUpdatedDate
()
{
return
lateUpdatedDate
;
}
public
void
setLateUpdatedDate
(
String
lateUpdatedDate
)
{
public
void
setLateUpdatedDate
(
Date
lateUpdatedDate
)
{
this
.
lateUpdatedDate
=
lateUpdatedDate
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/dto/ebsdto/OrganizationAccountingRateQueryDto.java
View file @
506dce2c
package
pwc
.
taxtech
.
atms
.
dto
.
ebsdto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
public
class
OrganizationAccountingRateQueryDto
{
private
String
date
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:ss:mm"
,
timezone
=
"GMT+8"
)
private
Date
date
;
/**
* Database Column Remarks:
* 期间
...
...
@@ -13,7 +17,7 @@ public class OrganizationAccountingRateQueryDto {
*
* @mbg.generated
*/
private
Integer
period
;
private
String
period
;
/**
* Database Column Remarks:
...
...
@@ -69,19 +73,19 @@ public class OrganizationAccountingRateQueryDto {
*/
private
String
invalidDate
;
public
String
getDate
()
{
public
Date
getDate
()
{
return
date
;
}
public
void
setDate
(
String
date
)
{
public
void
setDate
(
Date
date
)
{
this
.
date
=
date
;
}
public
Integer
getPeriod
()
{
public
String
getPeriod
()
{
return
period
;
}
public
void
setPeriod
(
Integer
period
)
{
public
void
setPeriod
(
String
period
)
{
this
.
period
=
period
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/ebsdto/ProfitLossStatementPrcQueryDto.java
View file @
506dce2c
package
pwc
.
taxtech
.
atms
.
dto
.
ebsdto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
public
class
ProfitLossStatementPrcQueryDto
{
/**
...
...
@@ -12,7 +15,8 @@ public class ProfitLossStatementPrcQueryDto {
*
* @mbg.generated
*/
private
String
date
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:ss:mm"
,
timezone
=
"GMT+8"
)
private
Date
date
;
/**
* Database Column Remarks:
...
...
@@ -34,7 +38,7 @@ public class ProfitLossStatementPrcQueryDto {
*
* @mbg.generated
*/
private
Integer
period
;
private
String
period
;
/**
* Database Column Remarks:
...
...
@@ -45,7 +49,7 @@ public class ProfitLossStatementPrcQueryDto {
*
* @mbg.generated
*/
private
Boolean
status
;
private
String
status
;
/**
* Database Column Remarks:
...
...
@@ -157,14 +161,6 @@ public class ProfitLossStatementPrcQueryDto {
*/
private
BigDecimal
ytdAmt
;
public
String
getDate
()
{
return
date
;
}
public
void
setDate
(
String
date
)
{
this
.
date
=
date
;
}
public
String
getSource
()
{
return
source
;
}
...
...
@@ -173,19 +169,27 @@ public class ProfitLossStatementPrcQueryDto {
this
.
source
=
source
;
}
public
Integer
getPeriod
()
{
public
Date
getDate
()
{
return
date
;
}
public
void
setDate
(
Date
date
)
{
this
.
date
=
date
;
}
public
String
getPeriod
()
{
return
period
;
}
public
void
setPeriod
(
Integer
period
)
{
public
void
setPeriod
(
String
period
)
{
this
.
period
=
period
;
}
public
Boolean
getStatus
()
{
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Boolean
status
)
{
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/ebsdto/ProfitLossStatementQueryDto.java
View file @
506dce2c
package
pwc
.
taxtech
.
atms
.
dto
.
ebsdto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
public
class
ProfitLossStatementQueryDto
{
/**
...
...
@@ -12,7 +15,8 @@ public class ProfitLossStatementQueryDto {
*
* @mbg.generated
*/
private
String
date
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:ss:mm"
,
timezone
=
"GMT+8"
)
private
Date
date
;
/**
* Database Column Remarks:
...
...
@@ -34,7 +38,7 @@ public class ProfitLossStatementQueryDto {
*
* @mbg.generated
*/
private
Integer
period
;
private
String
period
;
/**
* Database Column Remarks:
...
...
@@ -45,7 +49,7 @@ public class ProfitLossStatementQueryDto {
*
* @mbg.generated
*/
private
Boolean
status
;
private
String
status
;
/**
* Database Column Remarks:
...
...
@@ -157,14 +161,6 @@ public class ProfitLossStatementQueryDto {
*/
private
BigDecimal
ytdAmt
;
public
String
getDate
()
{
return
date
;
}
public
void
setDate
(
String
date
)
{
this
.
date
=
date
;
}
public
String
getSource
()
{
return
source
;
}
...
...
@@ -173,19 +169,27 @@ public class ProfitLossStatementQueryDto {
this
.
source
=
source
;
}
public
Integer
getPeriod
()
{
public
Date
getDate
()
{
return
date
;
}
public
void
setDate
(
Date
date
)
{
this
.
date
=
date
;
}
public
String
getPeriod
()
{
return
period
;
}
public
void
setPeriod
(
Integer
period
)
{
public
void
setPeriod
(
String
period
)
{
this
.
period
=
period
;
}
public
Boolean
getStatus
()
{
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Boolean
status
)
{
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/ebsdto/TrialBalanceQueryDto.java
View file @
506dce2c
package
pwc
.
taxtech
.
atms
.
dto
.
ebsdto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
public
class
TrialBalanceQueryDto
{
/**
...
...
@@ -12,7 +15,8 @@ public class TrialBalanceQueryDto {
*
* @mbg.generated
*/
private
String
date
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:ss:mm"
,
timezone
=
"GMT+8"
)
private
Date
date
;
/**
* Database Column Remarks:
...
...
@@ -34,7 +38,7 @@ public class TrialBalanceQueryDto {
*
* @mbg.generated
*/
private
Integer
period
;
private
String
period
;
/**
* Database Column Remarks:
...
...
@@ -78,7 +82,7 @@ public class TrialBalanceQueryDto {
*
* @mbg.generated
*/
private
Boolean
status
;
private
String
status
;
/**
* Database Column Remarks:
...
...
@@ -542,11 +546,11 @@ public class TrialBalanceQueryDto {
*/
private
BigDecimal
ytdCrBeq
;
public
String
getDate
()
{
public
Date
getDate
()
{
return
date
;
}
public
void
setDate
(
String
date
)
{
public
void
setDate
(
Date
date
)
{
this
.
date
=
date
;
}
...
...
@@ -558,11 +562,11 @@ public class TrialBalanceQueryDto {
this
.
source
=
source
;
}
public
Integer
getPeriod
()
{
public
String
getPeriod
()
{
return
period
;
}
public
void
setPeriod
(
Integer
period
)
{
public
void
setPeriod
(
String
period
)
{
this
.
period
=
period
;
}
...
...
@@ -590,11 +594,11 @@ public class TrialBalanceQueryDto {
this
.
currencyCode
=
currencyCode
;
}
public
Boolean
getStatus
()
{
public
String
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Boolean
status
)
{
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/dd/TrialBalanceDto.java
View file @
506dce2c
...
...
@@ -27,6 +27,8 @@ public class TrialBalanceDto implements Serializable {
private
String
source
;
private
Integer
tmsPeriod
;
private
Integer
period
;
private
String
ledgerId
;
...
...
@@ -253,6 +255,14 @@ public class TrialBalanceDto implements Serializable {
this
.
source
=
source
==
null
?
null
:
source
.
trim
();
}
public
Integer
getTmsPeriod
()
{
return
tmsPeriod
;
}
public
void
setTmsPeriod
(
Integer
tmsPeriod
)
{
this
.
tmsPeriod
=
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.period
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/EbsApiService.java
View file @
506dce2c
...
...
@@ -11,56 +11,56 @@ public interface EbsApiService {
*
* @param items
*/
void
queryRemoteServerThenUpdateJE
(
List
<
JournalEntryQueryDto
>
items
);
void
queryRemoteServerThenUpdateJE
(
L
ong
id
,
L
ist
<
JournalEntryQueryDto
>
items
);
/**
* ebs 科目余额表同步更新
*
* @param items
*/
void
queryRemoteServerThenUpdateTB
(
List
<
TrialBalanceQueryDto
>
items
);
void
queryRemoteServerThenUpdateTB
(
L
ong
id
,
L
ist
<
TrialBalanceQueryDto
>
items
);
/**
* ebs 现金流量表同步更新
*
* @param items
*/
void
queryRemoteServerThenUpdateCF
(
List
<
CashFlowQueryDto
>
items
);
void
queryRemoteServerThenUpdateCF
(
L
ong
id
,
L
ist
<
CashFlowQueryDto
>
items
);
/**
* ebs 资产负债表同步更新
*
* @param items
*/
void
queryRemoteServerThenUpdateBS
(
List
<
BalanceSheetQueryDto
>
items
);
void
queryRemoteServerThenUpdateBS
(
L
ong
id
,
L
ist
<
BalanceSheetQueryDto
>
items
);
/**
* ebs 资产负债表PRC同步更新
*
* @param items
*/
void
queryRemoteServerThenUpdateBSprc
(
List
<
BalanceSheetPrcQueryDto
>
items
);
void
queryRemoteServerThenUpdateBSprc
(
L
ong
id
,
L
ist
<
BalanceSheetPrcQueryDto
>
items
);
/**
* ebs 利润表同步更新
*
* @param items
*/
void
queryRemoteServerThenUpdatePL
(
List
<
ProfitLossStatementQueryDto
>
items
);
void
queryRemoteServerThenUpdatePL
(
L
ong
id
,
L
ist
<
ProfitLossStatementQueryDto
>
items
);
/**
* ebs 利润表PRC同步更新
*
* @param items
*/
void
queryRemoteServerThenUpdatePLprc
(
List
<
ProfitLossStatementPrcQueryDto
>
items
);
void
queryRemoteServerThenUpdatePLprc
(
L
ong
id
,
L
ist
<
ProfitLossStatementPrcQueryDto
>
items
);
/**
* ebs 汇率表同步更新
*
* @param items
*/
void
queryRemoteServerThenUpdateOAR
(
List
<
OrganizationAccountingRateQueryDto
>
items
);
void
queryRemoteServerThenUpdateOAR
(
L
ong
id
,
L
ist
<
OrganizationAccountingRateQueryDto
>
items
);
/**
* ebs 机构信息表同步更新
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
View file @
506dce2c
This diff is collapsed.
Click to expand it.
atms-api/src/test/java/pwc/taxtech/atms/service/impl/DataInitTest.java
View file @
506dce2c
...
...
@@ -50,6 +50,27 @@ public class DataInitTest extends CommonIT {
@Resource
private
OrganizationEmployeeMapper
organizationEmployeeMapper
;
@Resource
private
OrganizationAccountingRateMapper
organizationAccountingRateMapper
;
@Resource
private
OrganizationApprovedLevyInfoMapper
organizationApprovedLevyInfoMapper
;
@Resource
private
OrganizationInvoiceMapper
organizationInvoiceMapper
;
@Resource
private
OrganizationReturnRateMapper
organizationReturnRateMapper
;
@Resource
private
OrganizationTaxOfficerMapper
organizationTaxOfficerMapper
;
@Resource
private
OrganizationTaxRuleMapper
organizationTaxRuleMapper
;
@Resource
private
OrganizationTaxpayerQualificationMapper
organizationTaxpayerQualificationMapper
;
@Resource
private
EquityInformationMapper
equityInformationMapper
;
...
...
@@ -151,9 +172,9 @@ public class DataInitTest extends CommonIT {
}
equityInfos
.
forEach
(
ei
->
{
// 逐条insert 失败的记录
if
(
equityInformationMapper
.
insertSelective
(
ei
)
<
1
)
{
/*
if (equityInformationMapper.insertSelective(ei) < 1) {
failList.putIfAbsent(orgK, orgV);
}
}
*/
});
}
}
else
if
(
"股东信息"
.
equals
(
infoK
)
&&
equityInfos
.
isEmpty
())
{
...
...
@@ -223,9 +244,9 @@ public class DataInitTest extends CommonIT {
}
equityInfos1
.
forEach
(
ei
->
{
// 逐条insert 失败的记录
if
(
equityInformationMapper
.
insertSelective
(
ei
)
<
1
)
{
/*
if (equityInformationMapper.insertSelective(ei) < 1) {
failList.putIfAbsent(orgK, orgV);
}
}
*/
});
}
}
else
if
(
"变更记录"
.
equals
(
infoK
))
{
...
...
@@ -251,9 +272,9 @@ public class DataInitTest extends CommonIT {
});
logs
.
forEach
(
l
->
{
// 逐条insert 失败的记录
if
(
operationLogEquityMapper
.
insertSelective
(
l
)
<
1
)
{
/*
if (operationLogEquityMapper.insertSelective(l) < 1) {
failList.putIfAbsent(orgK, orgV);
}
}
*/
});
}
...
...
@@ -264,6 +285,7 @@ public class DataInitTest extends CommonIT {
OrganizationExtra
orgEx
=
new
OrganizationExtra
();
OrganizationEmployee
orgEmp
=
new
OrganizationEmployee
();
org
.
setId
(
orgId
);
org
.
setName
(
orgName
);
...
...
@@ -323,7 +345,7 @@ public class DataInitTest extends CommonIT {
}
}
});
if
(
organizationMapper
.
insertSelective
(
org
)
<
0
)
{
/*
if (organizationMapper.insertSelective(org) < 0) {
failList.putIfAbsent(orgK, orgV);
}
if (organizationExtraMapper.insertSelective(orgEx) < 0) {
...
...
@@ -331,7 +353,8 @@ public class DataInitTest extends CommonIT {
}
if (organizationEmployeeMapper.insertSelective(orgEmp) < 0) {
failList.putIfAbsent(orgK, orgV);
}
}*/
insertExtraList
(
orgId
);
}
});
}
catch
(
Exception
e
)
{
...
...
@@ -363,6 +386,16 @@ public class DataInitTest extends CommonIT {
System
.
out
.
println
(
String
.
format
(
"失败条数[%s]"
,
failList
.
size
()));
}
private
void
insertExtraList
(
String
orgId
)
{
organizationAccountingRateMapper
.
insertSelective
(
new
OrganizationAccountingRate
(
idService
.
nextId
(),
orgId
));
organizationApprovedLevyInfoMapper
.
insertSelective
(
new
OrganizationApprovedLevyInfo
(
idService
.
nextId
(),
orgId
));
organizationInvoiceMapper
.
insertSelective
(
new
OrganizationInvoice
(
idService
.
nextId
(),
orgId
));
organizationReturnRateMapper
.
insertSelective
(
new
OrganizationReturnRate
(
idService
.
nextId
(),
orgId
));
organizationTaxOfficerMapper
.
insertSelective
(
new
OrganizationTaxOfficer
(
idService
.
nextId
(),
orgId
));
organizationTaxRuleMapper
.
insertSelective
(
new
OrganizationTaxRule
(
idService
.
nextId
(),
orgId
));
organizationTaxpayerQualificationMapper
.
insertSelective
(
new
OrganizationTaxpayerQualification
(
idService
.
nextId
(),
orgId
));
}
@Test
public
void
syncOrg
(){
List
<
String
>
taxPayNums
=
organizationMapper
.
selectByExample
(
new
OrganizationExample
()).
stream
().
map
(
Organization:
:
getTaxPayerNumber
).
collect
(
Collectors
.
toList
());
...
...
atms-api/src/test/java/pwc/taxtech/atms/service/impl/EbsApiServiceImplTest.java
View file @
506dce2c
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.google.common.collect.Lists
;
import
org.junit.Test
;
import
pwc.taxtech.atms.CommonIT
;
import
pwc.taxtech.atms.dto.ebsdto.*
;
...
...
@@ -31,7 +30,7 @@ public class EbsApiServiceImplTest extends CommonIT {
}
@Test
public
void
queryRemoteServerThenUpdateOrg
(){
List
<
OrganizationQueryDto
>
items
=
new
ArrayList
();
List
<
OrganizationQueryDto
>
items
=
new
ArrayList
<>
();
for
(
int
i
=
0
;
i
<
2
;
i
++){
OrganizationQueryDto
dto
=
new
OrganizationQueryDto
();
dto
.
setTaxPayerNumber
(
"sadsafsdf3232"
);
...
...
@@ -72,7 +71,7 @@ public class EbsApiServiceImplTest extends CommonIT {
journalEntryQueryDto
.
setLineNum
(
"日记账行号"
);
journalEntryQueryDto
.
setApprovalStatus
(
"审批状态"
);
journalEntryQueryDto
.
setPostedStatus
(
"过账"
);
journalEntryQueryDto
.
setPeriod
(
20180102
+
i
);
//
journalEntryQueryDto.setPeriod(20180102+i);
journalEntryQueryDto
.
setJournalSource
(
"日记账来源"
);
journalEntryQueryDto
.
setCategory
(
"日记账类别"
);
journalEntryQueryDto
.
setName
(
"日记账名称"
);
...
...
@@ -134,10 +133,10 @@ public class EbsApiServiceImplTest extends CommonIT {
List
<
TrialBalanceQueryDto
>
items
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
TrialBalanceQueryDto
result
=
new
TrialBalanceQueryDto
();
result
.
setDate
(
"2019-03-04 19:14:17"
);
result
.
setStatus
(
false
);
result
.
setSource
(
"来源"
);
result
.
setPeriod
(
201803
);
//
result.setDate("2019-03-04 19:14:17");
//
result.setStatus(false);
//
result.setSource("来源");
//
result.setPeriod(201803);
result
.
setLedgerId
(
"账套ID"
);
result
.
setLedgerName
(
"账套名称"
);
result
.
setCurrencyCode
(
"账套币种"
);
...
...
@@ -195,10 +194,10 @@ public class EbsApiServiceImplTest extends CommonIT {
List
<
CashFlowQueryDto
>
items
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
CashFlowQueryDto
result
=
new
CashFlowQueryDto
();
result
.
setDate
(
"2019-03-04 19:14:17"
);
result
.
setSource
(
"来源"
);
result
.
setPeriod
(
201803
);
result
.
setStatus
(
true
);
//
result.setDate("2019-03-04 19:14:17");
//
result.setSource("来源");
//
result.setPeriod(201803);
//
result.setStatus(true);
result
.
setLedgerId
(
"账套ID"
);
result
.
setLedgerName
(
"账套名称"
);
result
.
setLedgerCurrencyCode
(
"账套币种"
);
...
...
@@ -222,9 +221,9 @@ public class EbsApiServiceImplTest extends CommonIT {
List
<
BalanceSheetQueryDto
>
items
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
BalanceSheetQueryDto
result
=
new
BalanceSheetQueryDto
();
result
.
setDate
(
"2019-03-04 19:14:17"
);
result
.
setPeriod
(
201812
);
result
.
setStatus
(
false
);
//
result.setDate("2019-03-04 19:14:17");
//
result.setPeriod(201812);
//
result.setStatus(false);
result
.
setLedgerCurrencyCode
(
"账套币种"
);
result
.
setEntityCode
(
"机构编码"
);
result
.
setEntityName
(
"机构名称"
);
...
...
@@ -248,10 +247,10 @@ public class EbsApiServiceImplTest extends CommonIT {
List
<
BalanceSheetPrcQueryDto
>
items
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
BalanceSheetPrcQueryDto
result
=
new
BalanceSheetPrcQueryDto
();
result
.
setDate
(
"2019-03-04 19:14:17"
);
result
.
setStatus
(
false
);
result
.
setSource
(
"来源"
);
result
.
setPeriod
(
201804
);
//
result.setDate("2019-03-04 19:14:17");
//
result.setStatus(false);
//
result.setSource("来源");
//
result.setPeriod(201804);
result
.
setLedgerId
(
"账套ID"
);
result
.
setLedgerName
(
"账套名称"
);
result
.
setLedgerCurrencyCode
(
"账套币种"
);
...
...
@@ -273,10 +272,10 @@ public class EbsApiServiceImplTest extends CommonIT {
List
<
ProfitLossStatementQueryDto
>
items
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
ProfitLossStatementQueryDto
result
=
new
ProfitLossStatementQueryDto
();
result
.
setDate
(
"2019-03-04 19:14:17"
);
result
.
setStatus
(
false
);
result
.
setSource
(
"来源"
);
result
.
setPeriod
(
201904
);
//
result.setDate("2019-03-04 19:14:17");
//
result.setStatus(false);
//
result.setSource("来源");
//
result.setPeriod(201904);
result
.
setLedgerId
(
"账套ID"
);
result
.
setLedgerName
(
"账套名称"
);
result
.
setLedgerCurrencyCode
(
"账套币种"
);
...
...
@@ -298,10 +297,10 @@ public class EbsApiServiceImplTest extends CommonIT {
List
<
ProfitLossStatementPrcQueryDto
>
items
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
ProfitLossStatementPrcQueryDto
result
=
new
ProfitLossStatementPrcQueryDto
();
result
.
setDate
(
"2019-03-04 19:14:17"
);
result
.
setStatus
(
false
);
result
.
setSource
(
"来源"
);
result
.
setPeriod
(
201904
);
//
result.setDate("2019-03-04 19:14:17");
//
result.setStatus(false);
//
result.setSource("来源");
//
result.setPeriod(201904);
result
.
setLedgerId
(
"账套ID"
);
result
.
setLedgerName
(
"账套名称"
);
result
.
setLedgerCurrencyCode
(
"账套币种"
);
...
...
@@ -323,7 +322,7 @@ public class EbsApiServiceImplTest extends CommonIT {
List
<
OrganizationAccountingRateQueryDto
>
items
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
OrganizationAccountingRateQueryDto
result
=
new
OrganizationAccountingRateQueryDto
();
result
.
setPeriod
(
2018
);
//
result.setPeriod(2018);
result
.
setConvertionType
(
"汇率类型名称"
);
result
.
setCurrencyFrom
(
"原币种"
);
result
.
setCurrencyTo
(
"目标币种"
);
...
...
@@ -332,4 +331,20 @@ public class EbsApiServiceImplTest extends CommonIT {
String
a
=
JSON
.
toJSONString
(
items
);
System
.
out
.
println
(
a
);
}
@Test
public
void
testConvertPeriod
(){
System
.
out
.
println
(
convertPeriod
(
201813
));
System
.
out
.
println
(
convertPeriod
(
201814
));
System
.
out
.
println
(
convertPeriod
(
201812
));
System
.
out
.
println
(
convertPeriod
(
201810
));
System
.
out
.
println
(
convertPeriod
(
201811
));
}
private
Integer
convertPeriod
(
Integer
period
){
if
(
period
%
100
==
13
){
period
--;
}
return
period
;
}
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/entity/OrganizationAccountingRate.java
View file @
506dce2c
...
...
@@ -480,6 +480,14 @@ public class OrganizationAccountingRate extends BaseEntity implements Serializab
*
* @mbg.generated
*/
public
OrganizationAccountingRate
(){}
public
OrganizationAccountingRate
(
Long
id
,
String
orgId
){
this
.
id
=
id
;
this
.
organizationId
=
orgId
;
}
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/OrganizationApprovedLevyInfo.java
View file @
506dce2c
...
...
@@ -118,6 +118,15 @@ public class OrganizationApprovedLevyInfo extends BaseEntity implements Serializ
*/
private
static
final
long
serialVersionUID
=
1L
;
public
OrganizationApprovedLevyInfo
()
{
}
public
OrganizationApprovedLevyInfo
(
long
id
,
String
orgId
)
{
this
.
id
=
id
;
this
.
organizationId
=
orgId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_approved_levy_info.id
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/OrganizationInvoice.java
View file @
506dce2c
...
...
@@ -129,6 +129,13 @@ public class OrganizationInvoice extends BaseEntity implements Serializable {
*/
private
static
final
long
serialVersionUID
=
1L
;
public
OrganizationInvoice
(){}
public
OrganizationInvoice
(
long
id
,
String
orgId
)
{
this
.
id
=
id
;
this
.
organizationId
=
orgId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_invoice.id
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/OrganizationReturnRate.java
View file @
506dce2c
...
...
@@ -96,6 +96,14 @@ public class OrganizationReturnRate extends BaseEntity implements Serializable {
*/
private
static
final
long
serialVersionUID
=
1L
;
public
OrganizationReturnRate
()
{
}
public
OrganizationReturnRate
(
long
id
,
String
orgId
)
{
this
.
id
=
id
;
this
.
organizationId
=
orgId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_return_rate.id
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/OrganizationTaxOfficer.java
View file @
506dce2c
...
...
@@ -96,6 +96,15 @@ public class OrganizationTaxOfficer extends BaseEntity implements Serializable {
*/
private
static
final
long
serialVersionUID
=
1L
;
public
OrganizationTaxOfficer
()
{
}
public
OrganizationTaxOfficer
(
long
id
,
String
orgId
)
{
this
.
id
=
id
;
this
.
organizationId
=
orgId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_tax_officer.id
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/OrganizationTaxRule.java
View file @
506dce2c
...
...
@@ -96,6 +96,14 @@ public class OrganizationTaxRule extends BaseEntity implements Serializable {
*/
private
static
final
long
serialVersionUID
=
1L
;
public
OrganizationTaxRule
()
{
}
public
OrganizationTaxRule
(
long
id
,
String
orgId
)
{
this
.
id
=
id
;
this
.
organizationId
=
orgId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_tax_rule.id
...
...
atms-dao/src/main/java/pwc/taxtech/atms/entity/OrganizationTaxpayerQualification.java
View file @
506dce2c
...
...
@@ -107,6 +107,14 @@ public class OrganizationTaxpayerQualification extends BaseEntity implements Ser
*/
private
static
final
long
serialVersionUID
=
1L
;
public
OrganizationTaxpayerQualification
()
{
}
public
OrganizationTaxpayerQualification
(
long
id
,
String
orgId
)
{
this
.
id
=
id
;
this
.
organizationId
=
orgId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_taxpayer_qualification.id
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/TrialBalance.java
View file @
506dce2c
...
...
@@ -68,6 +68,17 @@ public class TrialBalance extends BaseEntity implements Serializable {
*/
private
String
source
;
/**
* Database Column Remarks:
* 税务系统期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance.tms_period
*
* @mbg.generated
*/
private
Integer
tmsPeriod
;
/**
* Database Column Remarks:
* 期间 yyyymm
...
...
@@ -735,6 +746,30 @@ public class TrialBalance extends BaseEntity implements Serializable {
this
.
source
=
source
==
null
?
null
:
source
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.tms_period
*
* @return the value of trial_balance.tms_period
*
* @mbg.generated
*/
public
Integer
getTmsPeriod
()
{
return
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance.tms_period
*
* @param tmsPeriod the value for trial_balance.tms_period
*
* @mbg.generated
*/
public
void
setTmsPeriod
(
Integer
tmsPeriod
)
{
this
.
tmsPeriod
=
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance.period
...
...
@@ -1928,6 +1963,7 @@ public class TrialBalance extends BaseEntity implements Serializable {
sb
.
append
(
", projectId="
).
append
(
projectId
);
sb
.
append
(
", date="
).
append
(
date
);
sb
.
append
(
", source="
).
append
(
source
);
sb
.
append
(
", tmsPeriod="
).
append
(
tmsPeriod
);
sb
.
append
(
", period="
).
append
(
period
);
sb
.
append
(
", ledgerId="
).
append
(
ledgerId
);
sb
.
append
(
", ledgerName="
).
append
(
ledgerName
);
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/TrialBalanceExample.java
View file @
506dce2c
...
...
@@ -526,6 +526,66 @@ public class TrialBalanceExample {
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIsNull
()
{
addCriterion
(
"tms_period is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIsNotNull
()
{
addCriterion
(
"tms_period is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period ="
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodNotEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period <>"
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodGreaterThan
(
Integer
value
)
{
addCriterion
(
"tms_period >"
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period >="
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodLessThan
(
Integer
value
)
{
addCriterion
(
"tms_period <"
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period <="
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"tms_period in"
,
values
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"tms_period not in"
,
values
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"tms_period between"
,
value1
,
value2
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"tms_period not between"
,
value1
,
value2
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodIsNull
()
{
addCriterion
(
"period is null"
);
return
(
Criteria
)
this
;
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/TrialBalanceFinal.java
View file @
506dce2c
...
...
@@ -68,6 +68,17 @@ public class TrialBalanceFinal extends BaseEntity implements Serializable {
*/
private
String
source
;
/**
* Database Column Remarks:
* 税务系统期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.tms_period
*
* @mbg.generated
*/
private
Integer
tmsPeriod
;
/**
* Database Column Remarks:
* 期间 yyyymm
...
...
@@ -735,6 +746,30 @@ public class TrialBalanceFinal extends BaseEntity implements Serializable {
this
.
source
=
source
==
null
?
null
:
source
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.tms_period
*
* @return the value of trial_balance_final.tms_period
*
* @mbg.generated
*/
public
Integer
getTmsPeriod
()
{
return
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.tms_period
*
* @param tmsPeriod the value for trial_balance_final.tms_period
*
* @mbg.generated
*/
public
void
setTmsPeriod
(
Integer
tmsPeriod
)
{
this
.
tmsPeriod
=
tmsPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.period
...
...
@@ -1928,6 +1963,7 @@ public class TrialBalanceFinal extends BaseEntity implements Serializable {
sb
.
append
(
", projectId="
).
append
(
projectId
);
sb
.
append
(
", date="
).
append
(
date
);
sb
.
append
(
", source="
).
append
(
source
);
sb
.
append
(
", tmsPeriod="
).
append
(
tmsPeriod
);
sb
.
append
(
", period="
).
append
(
period
);
sb
.
append
(
", ledgerId="
).
append
(
ledgerId
);
sb
.
append
(
", ledgerName="
).
append
(
ledgerName
);
...
...
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/TrialBalanceFinalExample.java
View file @
506dce2c
...
...
@@ -526,6 +526,66 @@ public class TrialBalanceFinalExample {
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIsNull
()
{
addCriterion
(
"tms_period is null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIsNotNull
()
{
addCriterion
(
"tms_period is not null"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period ="
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodNotEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period <>"
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodGreaterThan
(
Integer
value
)
{
addCriterion
(
"tms_period >"
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodGreaterThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period >="
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodLessThan
(
Integer
value
)
{
addCriterion
(
"tms_period <"
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodLessThanOrEqualTo
(
Integer
value
)
{
addCriterion
(
"tms_period <="
,
value
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"tms_period in"
,
values
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodNotIn
(
List
<
Integer
>
values
)
{
addCriterion
(
"tms_period not in"
,
values
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"tms_period between"
,
value1
,
value2
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andTmsPeriodNotBetween
(
Integer
value1
,
Integer
value2
)
{
addCriterion
(
"tms_period not between"
,
value1
,
value2
,
"tmsPeriod"
);
return
(
Criteria
)
this
;
}
public
Criteria
andPeriodIsNull
()
{
addCriterion
(
"period is null"
);
return
(
Criteria
)
this
;
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/TrialBalanceFinalMapper.xml
View file @
506dce2c
...
...
@@ -11,6 +11,7 @@
<result
column=
"project_id"
jdbcType=
"VARCHAR"
property=
"projectId"
/>
<result
column=
"date"
jdbcType=
"TIMESTAMP"
property=
"date"
/>
<result
column=
"source"
jdbcType=
"VARCHAR"
property=
"source"
/>
<result
column=
"tms_period"
jdbcType=
"INTEGER"
property=
"tmsPeriod"
/>
<result
column=
"period"
jdbcType=
"INTEGER"
property=
"period"
/>
<result
column=
"ledger_id"
jdbcType=
"VARCHAR"
property=
"ledgerId"
/>
<result
column=
"ledger_name"
jdbcType=
"VARCHAR"
property=
"ledgerName"
/>
...
...
@@ -132,14 +133,14 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, organization_id, project_id, `date`, `source`,
period, ledger_id, ledger_name
,
currency_code, `status`, category, account_category, acct_code1, acct_name1, acct_name2
,
acct_name
3, segment1, segment2, segment3, segment4, segment5, segment6, segment7
,
segment
8, segment9, segment10, segment1_name, segment2_name, segment3_name, segment4
_name,
segment
5_name, segment6_name, segment7_name, segment8_name, segment9_name, segment10
_name,
beg_bal, period_dr, period_cr, end_bal, qtd_dr, qtd_cr, ytd_dr, ytd_cr, beg_bal_beq
,
period_dr_beq, period_cr_beq, end_bal_beq, qtd_dr_beq, qtd_cr_beq, ytd_dr_beq, ytd_c
r_beq,
create_time, update_time
id, organization_id, project_id, `date`, `source`,
tms_period, period, ledger_id
,
ledger_name, currency_code, `status`, category, account_category, acct_code1, acct_name1
,
acct_name
2, acct_name3, segment1, segment2, segment3, segment4, segment5, segment6
,
segment
7, segment8, segment9, segment10, segment1_name, segment2_name, segment3
_name,
segment
4_name, segment5_name, segment6_name, segment7_name, segment8_name, segment9
_name,
segment10_name, beg_bal, period_dr, period_cr, end_bal, qtd_dr, qtd_cr, ytd_dr, ytd_cr
,
beg_bal_beq, period_dr_beq, period_cr_beq, end_bal_beq, qtd_dr_beq, qtd_cr_beq, ytd_d
r_beq,
ytd_cr_beq,
create_time, update_time
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalanceFinalExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
@@ -193,43 +194,43 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into trial_balance_final (id, organization_id, project_id,
`date`, `source`, period,
ledger_id, ledger_name, currency_cod
e,
`status`, category, account_
category,
acc
t_code1, acct_name1, acct_name2
,
acct_name
3, segment1, segment2
,
segment
3, segment4, segment5
,
segment
6, segment7, segment8
,
segment
9, segment10, segment1_name
,
segment
2_name, segment3_name, segment4
_name,
segment
5_name, segment6_name, segment7
_name,
segment
8_name, segment9_name, segment10
_name,
beg_bal, period_dr, period_c
r,
end_bal, qtd_dr, qtd_c
r,
ytd_dr, ytd_cr, beg_bal_beq
,
period_dr_beq, period_cr_beq, end_bal
_beq,
qtd_dr_beq, qtd_cr_beq, ytd_d
r_beq,
ytd_
cr_beq, create_time, update_time
)
`date`, `source`,
tms_
period,
period, ledger_id, ledger_nam
e,
currency_code, `status`,
category,
acc
ount_category, acct_code1, acct_name1
,
acct_name
2, acct_name3, segment1
,
segment
2, segment3, segment4
,
segment
5, segment6, segment7
,
segment
8, segment9, segment10
,
segment
1_name, segment2_name, segment3
_name,
segment
4_name, segment5_name, segment6
_name,
segment
7_name, segment8_name, segment9
_name,
segment10_name, beg_bal, period_d
r,
period_cr, end_bal, qtd_d
r,
qtd_cr, ytd_dr, ytd_cr
,
beg_bal_beq, period_dr_beq, period_cr
_beq,
end_bal_beq, qtd_dr_beq, qtd_c
r_beq,
ytd_
dr_beq, ytd_cr_beq, create_time,
update_time
)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
#{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{
p
eriod,jdbcType=INTEGER},
#{
ledgerId,jdbcType=VARCHAR}, #{ledgerName,jdbcType=VARCHAR}, #{currencyCod
e,jdbcType=VARCHAR},
#{
status,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR}, #{accountC
ategory,jdbcType=VARCHAR},
#{acc
tCode1,jdbcType=VARCHAR}, #{acctName1,jdbcType=VARCHAR}, #{acctName2
,jdbcType=VARCHAR},
#{acctName
3,jdbcType=VARCHAR}, #{segment1,jdbcType=VARCHAR}, #{segment2
,jdbcType=VARCHAR},
#{segment
3,jdbcType=VARCHAR}, #{segment4,jdbcType=VARCHAR}, #{segment5
,jdbcType=VARCHAR},
#{segment
6,jdbcType=VARCHAR}, #{segment7,jdbcType=VARCHAR}, #{segment8
,jdbcType=VARCHAR},
#{segment
9,jdbcType=VARCHAR}, #{segment10,jdbcType=VARCHAR}, #{segment1Name
,jdbcType=VARCHAR},
#{segment
2Name,jdbcType=VARCHAR}, #{segment3Name,jdbcType=VARCHAR}, #{segment4
Name,jdbcType=VARCHAR},
#{segment
5Name,jdbcType=VARCHAR}, #{segment6Name,jdbcType=VARCHAR}, #{segment7
Name,jdbcType=VARCHAR},
#{segment
8Name,jdbcType=VARCHAR}, #{segment9Name,jdbcType=VARCHAR}, #{segment10
Name,jdbcType=VARCHAR},
#{
begBal,jdbcType=DECIMAL}, #{periodDr,jdbcType=DECIMAL}, #{periodC
r,jdbcType=DECIMAL},
#{
endBal,jdbcType=DECIMAL}, #{qtdDr,jdbcType=DECIMAL}, #{qtdC
r,jdbcType=DECIMAL},
#{
ytdDr,jdbcType=DECIMAL}, #{ytdCr,jdbcType=DECIMAL}, #{begBalBeq
,jdbcType=DECIMAL},
#{
periodDrBeq,jdbcType=DECIMAL}, #{periodCrBeq,jdbcType=DECIMAL}, #{endBal
Beq,jdbcType=DECIMAL},
#{
qtdDrBeq,jdbcType=DECIMAL}, #{qtdCrBeq,jdbcType=DECIMAL}, #{ytdD
rBeq,jdbcType=DECIMAL},
#{ytd
CrBeq,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
#{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{
tmsP
eriod,jdbcType=INTEGER},
#{
period,jdbcType=INTEGER}, #{ledgerId,jdbcType=VARCHAR}, #{ledgerNam
e,jdbcType=VARCHAR},
#{
currencyCode,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{c
ategory,jdbcType=VARCHAR},
#{acc
ountCategory,jdbcType=VARCHAR}, #{acctCode1,jdbcType=VARCHAR}, #{acctName1
,jdbcType=VARCHAR},
#{acctName
2,jdbcType=VARCHAR}, #{acctName3,jdbcType=VARCHAR}, #{segment1
,jdbcType=VARCHAR},
#{segment
2,jdbcType=VARCHAR}, #{segment3,jdbcType=VARCHAR}, #{segment4
,jdbcType=VARCHAR},
#{segment
5,jdbcType=VARCHAR}, #{segment6,jdbcType=VARCHAR}, #{segment7
,jdbcType=VARCHAR},
#{segment
8,jdbcType=VARCHAR}, #{segment9,jdbcType=VARCHAR}, #{segment10
,jdbcType=VARCHAR},
#{segment
1Name,jdbcType=VARCHAR}, #{segment2Name,jdbcType=VARCHAR}, #{segment3
Name,jdbcType=VARCHAR},
#{segment
4Name,jdbcType=VARCHAR}, #{segment5Name,jdbcType=VARCHAR}, #{segment6
Name,jdbcType=VARCHAR},
#{segment
7Name,jdbcType=VARCHAR}, #{segment8Name,jdbcType=VARCHAR}, #{segment9
Name,jdbcType=VARCHAR},
#{
segment10Name,jdbcType=VARCHAR}, #{begBal,jdbcType=DECIMAL}, #{periodD
r,jdbcType=DECIMAL},
#{
periodCr,jdbcType=DECIMAL}, #{endBal,jdbcType=DECIMAL}, #{qtdD
r,jdbcType=DECIMAL},
#{
qtdCr,jdbcType=DECIMAL}, #{ytdDr,jdbcType=DECIMAL}, #{ytdCr
,jdbcType=DECIMAL},
#{
begBalBeq,jdbcType=DECIMAL}, #{periodDrBeq,jdbcType=DECIMAL}, #{periodCr
Beq,jdbcType=DECIMAL},
#{
endBalBeq,jdbcType=DECIMAL}, #{qtdDrBeq,jdbcType=DECIMAL}, #{qtdC
rBeq,jdbcType=DECIMAL},
#{ytd
DrBeq,jdbcType=DECIMAL}, #{ytdCrBeq,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalanceFinal"
>
<!--
...
...
@@ -253,6 +254,9 @@
<if
test=
"source != null"
>
`source`,
</if>
<if
test=
"tmsPeriod != null"
>
tms_period,
</if>
<if
test=
"period != null"
>
period,
</if>
...
...
@@ -417,6 +421,9 @@
<if
test=
"source != null"
>
#{source,jdbcType=VARCHAR},
</if>
<if
test=
"tmsPeriod != null"
>
#{tmsPeriod,jdbcType=INTEGER},
</if>
<if
test=
"period != null"
>
#{period,jdbcType=INTEGER},
</if>
...
...
@@ -598,6 +605,9 @@
<if
test=
"record.source != null"
>
`source` = #{record.source,jdbcType=VARCHAR},
</if>
<if
test=
"record.tmsPeriod != null"
>
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
</if>
<if
test=
"record.period != null"
>
period = #{record.period,jdbcType=INTEGER},
</if>
...
...
@@ -761,6 +771,7 @@
project_id = #{record.projectId,jdbcType=VARCHAR},
`date` = #{record.date,jdbcType=TIMESTAMP},
`source` = #{record.source,jdbcType=VARCHAR},
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
period = #{record.period,jdbcType=INTEGER},
ledger_id = #{record.ledgerId,jdbcType=VARCHAR},
ledger_name = #{record.ledgerName,jdbcType=VARCHAR},
...
...
@@ -833,6 +844,9 @@
<if
test=
"source != null"
>
`source` = #{source,jdbcType=VARCHAR},
</if>
<if
test=
"tmsPeriod != null"
>
tms_period = #{tmsPeriod,jdbcType=INTEGER},
</if>
<if
test=
"period != null"
>
period = #{period,jdbcType=INTEGER},
</if>
...
...
@@ -993,6 +1007,7 @@
project_id = #{projectId,jdbcType=VARCHAR},
`date` = #{date,jdbcType=TIMESTAMP},
`source` = #{source,jdbcType=VARCHAR},
tms_period = #{tmsPeriod,jdbcType=INTEGER},
period = #{period,jdbcType=INTEGER},
ledger_id = #{ledgerId,jdbcType=VARCHAR},
ledger_name = #{ledgerName,jdbcType=VARCHAR},
...
...
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/TrialBalanceMapper.xml
View file @
506dce2c
...
...
@@ -11,6 +11,7 @@
<result
column=
"project_id"
jdbcType=
"VARCHAR"
property=
"projectId"
/>
<result
column=
"date"
jdbcType=
"TIMESTAMP"
property=
"date"
/>
<result
column=
"source"
jdbcType=
"VARCHAR"
property=
"source"
/>
<result
column=
"tms_period"
jdbcType=
"INTEGER"
property=
"tmsPeriod"
/>
<result
column=
"period"
jdbcType=
"INTEGER"
property=
"period"
/>
<result
column=
"ledger_id"
jdbcType=
"VARCHAR"
property=
"ledgerId"
/>
<result
column=
"ledger_name"
jdbcType=
"VARCHAR"
property=
"ledgerName"
/>
...
...
@@ -132,14 +133,14 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, organization_id, project_id, `date`, `source`,
period, ledger_id, ledger_name
,
currency_code, `status`, category, account_category, acct_code1, acct_name1, acct_name2
,
acct_name
3, segment1, segment2, segment3, segment4, segment5, segment6, segment7
,
segment
8, segment9, segment10, segment1_name, segment2_name, segment3_name, segment4
_name,
segment
5_name, segment6_name, segment7_name, segment8_name, segment9_name, segment10
_name,
beg_bal, period_dr, period_cr, end_bal, qtd_dr, qtd_cr, ytd_dr, ytd_cr, beg_bal_beq
,
period_dr_beq, period_cr_beq, end_bal_beq, qtd_dr_beq, qtd_cr_beq, ytd_dr_beq, ytd_c
r_beq,
create_time, update_time
id, organization_id, project_id, `date`, `source`,
tms_period, period, ledger_id
,
ledger_name, currency_code, `status`, category, account_category, acct_code1, acct_name1
,
acct_name
2, acct_name3, segment1, segment2, segment3, segment4, segment5, segment6
,
segment
7, segment8, segment9, segment10, segment1_name, segment2_name, segment3
_name,
segment
4_name, segment5_name, segment6_name, segment7_name, segment8_name, segment9
_name,
segment10_name, beg_bal, period_dr, period_cr, end_bal, qtd_dr, qtd_cr, ytd_dr, ytd_cr
,
beg_bal_beq, period_dr_beq, period_cr_beq, end_bal_beq, qtd_dr_beq, qtd_cr_beq, ytd_d
r_beq,
ytd_cr_beq,
create_time, update_time
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalanceExample"
resultMap=
"BaseResultMap"
>
<!--
...
...
@@ -193,43 +194,43 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into trial_balance (id, organization_id, project_id,
`date`, `source`, period,
ledger_id, ledger_name, currency_cod
e,
`status`, category, account_
category,
acc
t_code1, acct_name1, acct_name2
,
acct_name
3, segment1, segment2
,
segment
3, segment4, segment5
,
segment
6, segment7, segment8
,
segment
9, segment10, segment1_name
,
segment
2_name, segment3_name, segment4
_name,
segment
5_name, segment6_name, segment7
_name,
segment
8_name, segment9_name, segment10
_name,
beg_bal, period_dr, period_c
r,
end_bal, qtd_dr, qtd_c
r,
ytd_dr, ytd_cr, beg_bal_beq
,
period_dr_beq, period_cr_beq, end_bal
_beq,
qtd_dr_beq, qtd_cr_beq, ytd_d
r_beq,
ytd_
cr_beq, create_time, update_time
)
`date`, `source`,
tms_
period,
period, ledger_id, ledger_nam
e,
currency_code, `status`,
category,
acc
ount_category, acct_code1, acct_name1
,
acct_name
2, acct_name3, segment1
,
segment
2, segment3, segment4
,
segment
5, segment6, segment7
,
segment
8, segment9, segment10
,
segment
1_name, segment2_name, segment3
_name,
segment
4_name, segment5_name, segment6
_name,
segment
7_name, segment8_name, segment9
_name,
segment10_name, beg_bal, period_d
r,
period_cr, end_bal, qtd_d
r,
qtd_cr, ytd_dr, ytd_cr
,
beg_bal_beq, period_dr_beq, period_cr
_beq,
end_bal_beq, qtd_dr_beq, qtd_c
r_beq,
ytd_
dr_beq, ytd_cr_beq, create_time,
update_time
)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
#{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{
p
eriod,jdbcType=INTEGER},
#{
ledgerId,jdbcType=VARCHAR}, #{ledgerName,jdbcType=VARCHAR}, #{currencyCod
e,jdbcType=VARCHAR},
#{
status,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR}, #{accountC
ategory,jdbcType=VARCHAR},
#{acc
tCode1,jdbcType=VARCHAR}, #{acctName1,jdbcType=VARCHAR}, #{acctName2
,jdbcType=VARCHAR},
#{acctName
3,jdbcType=VARCHAR}, #{segment1,jdbcType=VARCHAR}, #{segment2
,jdbcType=VARCHAR},
#{segment
3,jdbcType=VARCHAR}, #{segment4,jdbcType=VARCHAR}, #{segment5
,jdbcType=VARCHAR},
#{segment
6,jdbcType=VARCHAR}, #{segment7,jdbcType=VARCHAR}, #{segment8
,jdbcType=VARCHAR},
#{segment
9,jdbcType=VARCHAR}, #{segment10,jdbcType=VARCHAR}, #{segment1Name
,jdbcType=VARCHAR},
#{segment
2Name,jdbcType=VARCHAR}, #{segment3Name,jdbcType=VARCHAR}, #{segment4
Name,jdbcType=VARCHAR},
#{segment
5Name,jdbcType=VARCHAR}, #{segment6Name,jdbcType=VARCHAR}, #{segment7
Name,jdbcType=VARCHAR},
#{segment
8Name,jdbcType=VARCHAR}, #{segment9Name,jdbcType=VARCHAR}, #{segment10
Name,jdbcType=VARCHAR},
#{
begBal,jdbcType=DECIMAL}, #{periodDr,jdbcType=DECIMAL}, #{periodC
r,jdbcType=DECIMAL},
#{
endBal,jdbcType=DECIMAL}, #{qtdDr,jdbcType=DECIMAL}, #{qtdC
r,jdbcType=DECIMAL},
#{
ytdDr,jdbcType=DECIMAL}, #{ytdCr,jdbcType=DECIMAL}, #{begBalBeq
,jdbcType=DECIMAL},
#{
periodDrBeq,jdbcType=DECIMAL}, #{periodCrBeq,jdbcType=DECIMAL}, #{endBal
Beq,jdbcType=DECIMAL},
#{
qtdDrBeq,jdbcType=DECIMAL}, #{qtdCrBeq,jdbcType=DECIMAL}, #{ytdD
rBeq,jdbcType=DECIMAL},
#{ytd
CrBeq,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
#{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{
tmsP
eriod,jdbcType=INTEGER},
#{
period,jdbcType=INTEGER}, #{ledgerId,jdbcType=VARCHAR}, #{ledgerNam
e,jdbcType=VARCHAR},
#{
currencyCode,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{c
ategory,jdbcType=VARCHAR},
#{acc
ountCategory,jdbcType=VARCHAR}, #{acctCode1,jdbcType=VARCHAR}, #{acctName1
,jdbcType=VARCHAR},
#{acctName
2,jdbcType=VARCHAR}, #{acctName3,jdbcType=VARCHAR}, #{segment1
,jdbcType=VARCHAR},
#{segment
2,jdbcType=VARCHAR}, #{segment3,jdbcType=VARCHAR}, #{segment4
,jdbcType=VARCHAR},
#{segment
5,jdbcType=VARCHAR}, #{segment6,jdbcType=VARCHAR}, #{segment7
,jdbcType=VARCHAR},
#{segment
8,jdbcType=VARCHAR}, #{segment9,jdbcType=VARCHAR}, #{segment10
,jdbcType=VARCHAR},
#{segment
1Name,jdbcType=VARCHAR}, #{segment2Name,jdbcType=VARCHAR}, #{segment3
Name,jdbcType=VARCHAR},
#{segment
4Name,jdbcType=VARCHAR}, #{segment5Name,jdbcType=VARCHAR}, #{segment6
Name,jdbcType=VARCHAR},
#{segment
7Name,jdbcType=VARCHAR}, #{segment8Name,jdbcType=VARCHAR}, #{segment9
Name,jdbcType=VARCHAR},
#{
segment10Name,jdbcType=VARCHAR}, #{begBal,jdbcType=DECIMAL}, #{periodD
r,jdbcType=DECIMAL},
#{
periodCr,jdbcType=DECIMAL}, #{endBal,jdbcType=DECIMAL}, #{qtdD
r,jdbcType=DECIMAL},
#{
qtdCr,jdbcType=DECIMAL}, #{ytdDr,jdbcType=DECIMAL}, #{ytdCr
,jdbcType=DECIMAL},
#{
begBalBeq,jdbcType=DECIMAL}, #{periodDrBeq,jdbcType=DECIMAL}, #{periodCr
Beq,jdbcType=DECIMAL},
#{
endBalBeq,jdbcType=DECIMAL}, #{qtdDrBeq,jdbcType=DECIMAL}, #{qtdC
rBeq,jdbcType=DECIMAL},
#{ytd
DrBeq,jdbcType=DECIMAL}, #{ytdCrBeq,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance"
>
<!--
...
...
@@ -253,6 +254,9 @@
<if
test=
"source != null"
>
`source`,
</if>
<if
test=
"tmsPeriod != null"
>
tms_period,
</if>
<if
test=
"period != null"
>
period,
</if>
...
...
@@ -417,6 +421,9 @@
<if
test=
"source != null"
>
#{source,jdbcType=VARCHAR},
</if>
<if
test=
"tmsPeriod != null"
>
#{tmsPeriod,jdbcType=INTEGER},
</if>
<if
test=
"period != null"
>
#{period,jdbcType=INTEGER},
</if>
...
...
@@ -598,6 +605,9 @@
<if
test=
"record.source != null"
>
`source` = #{record.source,jdbcType=VARCHAR},
</if>
<if
test=
"record.tmsPeriod != null"
>
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
</if>
<if
test=
"record.period != null"
>
period = #{record.period,jdbcType=INTEGER},
</if>
...
...
@@ -761,6 +771,7 @@
project_id = #{record.projectId,jdbcType=VARCHAR},
`date` = #{record.date,jdbcType=TIMESTAMP},
`source` = #{record.source,jdbcType=VARCHAR},
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
period = #{record.period,jdbcType=INTEGER},
ledger_id = #{record.ledgerId,jdbcType=VARCHAR},
ledger_name = #{record.ledgerName,jdbcType=VARCHAR},
...
...
@@ -833,6 +844,9 @@
<if
test=
"source != null"
>
`source` = #{source,jdbcType=VARCHAR},
</if>
<if
test=
"tmsPeriod != null"
>
tms_period = #{tmsPeriod,jdbcType=INTEGER},
</if>
<if
test=
"period != null"
>
period = #{period,jdbcType=INTEGER},
</if>
...
...
@@ -993,6 +1007,7 @@
project_id = #{projectId,jdbcType=VARCHAR},
`date` = #{date,jdbcType=TIMESTAMP},
`source` = #{source,jdbcType=VARCHAR},
tms_period = #{tmsPeriod,jdbcType=INTEGER},
period = #{period,jdbcType=INTEGER},
ledger_id = #{ledgerId,jdbcType=VARCHAR},
ledger_name = #{ledgerName,jdbcType=VARCHAR},
...
...
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