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
0ed8adc2
Commit
0ed8adc2
authored
Feb 22, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改dffs跟jffs公式取值数据源
parent
13db73b9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2209 additions
and
73 deletions
+2209
-73
SpringContextUtil.java
.../java/pwc/taxtech/atms/common/util/SpringContextUtil.java
+2
-1
DFFS.java
.../taxtech/atms/vat/service/impl/report/functions/DFFS.java
+103
-27
JFFS.java
.../taxtech/atms/vat/service/impl/report/functions/JFFS.java
+97
-23
TrialBalanceFinalMapper.java
...ava/pwc/taxtech/atms/vat/dao/TrialBalanceFinalMapper.java
+14
-13
TrialBalanceFinal.java
...n/java/pwc/taxtech/atms/vat/entity/TrialBalanceFinal.java
+1984
-0
TrialBalanceFinalExample.java
...pwc/taxtech/atms/vat/entity/TrialBalanceFinalExample.java
+0
-0
TrialBalanceFinalMapper.xml
...rces/pwc/taxtech/atms/vat/dao/TrialBalanceFinalMapper.xml
+9
-9
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/util/SpringContextUtil.java
View file @
0ed8adc2
...
...
@@ -10,7 +10,6 @@ import pwc.taxtech.atms.invoice.OutputInvoiceDetailMapper;
import
pwc.taxtech.atms.invoice.OutputInvoiceMapper
;
import
pwc.taxtech.atms.service.impl.DistributedIdService
;
import
pwc.taxtech.atms.vat.dao.*
;
import
pwc.taxtech.atms.vat.entity.OutputInvoiceDetail
;
//用来获取spring托管的bean
@Component
...
...
@@ -55,6 +54,7 @@ public class SpringContextUtil implements ApplicationContextAware {
public
static
AccountMappingMapper
accountMappingMapper
;
public
static
TrialBalanceMapper
trialBalanceMapper
;
public
static
AdjustmentTableMapper
adjustmentTableMapper
;
public
static
TrialBalanceFinalMapper
trialBalanceFinalMapper
;
/**
* 获取bean
...
...
@@ -110,5 +110,6 @@ public class SpringContextUtil implements ApplicationContextAware {
glBalanceMapper
=
webApplicationContext
.
getBean
(
GlBalanceMapper
.
class
);
trialBalanceMapper
=
webApplicationContext
.
getBean
(
TrialBalanceMapper
.
class
);
adjustmentTableMapper
=
webApplicationContext
.
getBean
(
AdjustmentTableMapper
.
class
);
trialBalanceFinalMapper
=
webApplicationContext
.
getBean
(
TrialBalanceFinalMapper
.
class
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/DFFS.java
View file @
0ed8adc2
...
...
@@ -7,21 +7,16 @@ import org.apache.poi.ss.formula.eval.NumberEval;
import
org.apache.poi.ss.formula.eval.ValueEval
;
import
org.apache.poi.ss.formula.functions.FreeRefFunction
;
import
pwc.taxtech.atms.common.util.DateUtils
;
import
pwc.taxtech.atms.common.util.MyAsserts
;
import
pwc.taxtech.atms.common.util.SpringContextUtil
;
import
pwc.taxtech.atms.constant.Constant
;
import
pwc.taxtech.atms.constant.enums.FormulaDataSourceDetailType
;
import
pwc.taxtech.atms.constant.enums.FormulaDataSourceType
;
import
pwc.taxtech.atms.dpo.CellTemplatePerGroupDto
;
import
pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto
;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.exception.Exceptions
;
import
pwc.taxtech.atms.vat.entity.GlBalance
;
import
pwc.taxtech.atms.vat.entity.GlBalanceExample
;
import
pwc.taxtech.atms.vat.entity.*
;
import
java.math.BigDecimal
;
import
java.util.Collections
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -32,7 +27,7 @@ public class DFFS extends FunctionBase implements FreeRefFunction {
@Override
public
ValueEval
evaluate
(
ValueEval
[]
args
,
OperationEvaluationContext
ec
)
{
if
(
args
.
length
<
4
)
{
if
(
args
.
length
<
5
)
{
return
null
;
}
...
...
@@ -40,9 +35,9 @@ public class DFFS extends FunctionBase implements FreeRefFunction {
String
code
=
getStringParam
(
args
[
1
],
ec
);
int
year
=
getIntParam
(
args
[
2
],
ec
);
int
period
=
getIntParam
(
args
[
3
],
ec
);
int
sourceDataType
=
getIntParam
(
args
[
4
],
ec
);
String
formulaExpression
=
"DFFS("
+
type
+
",\""
+
code
+
"\","
+
year
+
","
+
period
+
")"
;
+
year
+
","
+
period
+
"
,"
+
sourceDataType
+
"
)"
;
logger
.
debug
(
formulaExpression
);
year
=
getYear
(
year
);
...
...
@@ -67,7 +62,15 @@ public class DFFS extends FunctionBase implements FreeRefFunction {
double
result
=
0
;
for
(
AccountMapping
a
:
accountMappings
){
result
+=
count
(
a
.
getEnterpriseAccountCode
(),
dataSource
,
period
,
year
,
orgId
);
if
(
sourceDataType
==
1
){
result
+=
countForTrialBalance
(
a
.
getEnterpriseAccountCode
(),
dataSource
,
period
,
year
,
orgId
);
}
else
if
(
sourceDataType
==
2
){
result
+=
countForAdjBalance
(
a
.
getEnterpriseAccountCode
(),
dataSource
,
period
,
year
,
orgId
);
}
else
if
(
sourceDataType
==
3
){
result
+=
countForTrialFinalBalance
(
a
.
getEnterpriseAccountCode
(),
dataSource
,
period
,
year
,
orgId
);
}
else
{
return
NumberEval
.
ZERO
;
}
}
Long
dataSoureId
=
saveDataSource
(
ec
,
Collections
.
singletonList
(
dataSource
),
FormulaDataSourceDetailType
.
FormulaDataSourceDto
,
...
...
@@ -76,8 +79,16 @@ public class DFFS extends FunctionBase implements FreeRefFunction {
return
new
NumberEval
(
result
);
}
else
if
(
type
==
1
){
double
result
=
count
(
code
,
dataSource
,
period
,
year
,
orgId
);
double
result
=
0.00
;
if
(
sourceDataType
==
1
){
result
=
countForTrialBalance
(
code
,
dataSource
,
period
,
year
,
orgId
);
}
else
if
(
sourceDataType
==
2
){
result
=
countForAdjBalance
(
code
,
dataSource
,
period
,
year
,
orgId
);
}
else
if
(
sourceDataType
==
3
){
result
=
countForTrialFinalBalance
(
code
,
dataSource
,
period
,
year
,
orgId
);
}
else
{
return
NumberEval
.
ZERO
;
}
Long
dataSoureId
=
saveDataSource
(
ec
,
Collections
.
singletonList
(
dataSource
),
FormulaDataSourceDetailType
.
FormulaDataSourceDto
,
new
BigDecimal
(
result
),
period
,
formulaContext
.
getReportTemplateGroupId
(),
formulaContext
.
getProjectId
());
...
...
@@ -88,40 +99,105 @@ public class DFFS extends FunctionBase implements FreeRefFunction {
return
NumberEval
.
ZERO
;
}
private
String
periodName
(
int
period
,
int
year
){
return
year
+
"-"
+
(
period
>
9
?
period
:
(
"0"
+
period
));
private
int
pardePeriod
(
int
period
,
int
year
){
return
Integer
.
parseInt
(
""
+
year
+
(
period
>
9
?
period
:
(
"0"
+
period
)
));
}
private
double
count
(
String
code
,
List
<
ReportCellDataSourceDto
>
contain
,
int
period
,
int
year
,
String
orgId
){
private
double
countForTrialBalance
(
String
code
,
List
<
ReportCellDataSourceDto
>
contain
,
int
period
,
int
year
,
String
orgId
){
Organization
organization
=
SpringContextUtil
.
organizationMapper
.
selectByPrimaryKey
(
orgId
);
TrialBalanceExample
glBalanceExample
=
new
TrialBalanceExample
();
TrialBalanceExample
.
Criteria
c1
=
glBalanceExample
.
createCriteria
().
andSegment3EqualTo
(
code
)
.
andPeriodEqualTo
(
pardePeriod
(
period
,
year
));
TrialBalanceExample
.
Criteria
c2
=
glBalanceExample
.
createCriteria
().
andSegment4EqualTo
(
code
)
.
andPeriodEqualTo
(
pardePeriod
(
period
,
year
));
if
(
organization
!=
null
){
c1
.
andOrganizationIdEqualTo
(
organization
.
getId
());
c2
.
andOrganizationIdEqualTo
(
organization
.
getId
());
}
glBalanceExample
.
or
(
c2
);
List
<
TrialBalance
>
list
=
SpringContextUtil
.
trialBalanceMapper
.
selectByExample
(
glBalanceExample
);
if
(
CollectionUtils
.
isEmpty
(
list
)){
return
0.0
;
}
List
<
TrialBalance
>
temp
=
list
.
stream
().
filter
(
x
->
code
.
equalsIgnoreCase
(
x
.
getSegment3
())).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isEmpty
(
temp
)){
temp
=
list
;
}
for
(
TrialBalance
balance
:
temp
){
ReportCellDataSourceDto
dto
=
new
ReportCellDataSourceDto
();
dto
.
setAmount
(
balance
.
getPeriodCr
());
dto
.
setPeriod
(
period
);
dto
.
setIsOnlyManualInput
(
Boolean
.
FALSE
);
dto
.
setName
(
Constant
.
DataSourceName
.
ReportDataSource
);
dto
.
setType
(
FormulaDataSourceType
.
TrialBalanceSource
.
getCode
());
contain
.
add
(
dto
);
}
return
temp
.
stream
().
mapToDouble
(
a
->
a
.
getPeriodCr
().
doubleValue
()).
sum
();
}
private
double
countForAdjBalance
(
String
code
,
List
<
ReportCellDataSourceDto
>
contain
,
int
period
,
int
year
,
String
orgId
){
Organization
organization
=
SpringContextUtil
.
organizationMapper
.
selectByPrimaryKey
(
orgId
);
AdjustmentTableExample
glBalanceExample
=
new
AdjustmentTableExample
();
AdjustmentTableExample
.
Criteria
c1
=
glBalanceExample
.
createCriteria
().
andSegment3EqualTo
(
code
)
.
andPeriodEqualTo
(
pardePeriod
(
period
,
year
));
AdjustmentTableExample
.
Criteria
c2
=
glBalanceExample
.
createCriteria
().
andSegment4EqualTo
(
code
)
.
andPeriodEqualTo
(
pardePeriod
(
period
,
year
));
if
(
organization
!=
null
){
c1
.
andOrganizationIdEqualTo
(
organization
.
getId
());
c2
.
andOrganizationIdEqualTo
(
organization
.
getId
());
}
glBalanceExample
.
or
(
c2
);
List
<
AdjustmentTable
>
list
=
SpringContextUtil
.
adjustmentTableMapper
.
selectByExample
(
glBalanceExample
);
if
(
CollectionUtils
.
isEmpty
(
list
)){
return
0.0
;
}
List
<
AdjustmentTable
>
temp
=
list
.
stream
().
filter
(
x
->
code
.
equalsIgnoreCase
(
x
.
getSegment3
())).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isEmpty
(
temp
)){
temp
=
list
;
}
for
(
AdjustmentTable
balance
:
temp
){
ReportCellDataSourceDto
dto
=
new
ReportCellDataSourceDto
();
dto
.
setAmount
(
balance
.
getPeriodCrBeq
());
dto
.
setPeriod
(
period
);
dto
.
setIsOnlyManualInput
(
Boolean
.
FALSE
);
dto
.
setName
(
Constant
.
DataSourceName
.
ReportDataSource
);
dto
.
setType
(
FormulaDataSourceType
.
TrialBalanceSource
.
getCode
());
contain
.
add
(
dto
);
}
return
temp
.
stream
().
mapToDouble
(
a
->
a
.
getPeriodCrBeq
().
doubleValue
()).
sum
();
}
private
double
countForTrialFinalBalance
(
String
code
,
List
<
ReportCellDataSourceDto
>
contain
,
int
period
,
int
year
,
String
orgId
){
Organization
organization
=
SpringContextUtil
.
organizationMapper
.
selectByPrimaryKey
(
orgId
);
GlBalanceExample
glBalanceExample
=
new
GlBalance
Example
();
GlBalance
Example
.
Criteria
c1
=
glBalanceExample
.
createCriteria
().
andSegment3EqualTo
(
code
)
.
andPeriod
NameEqualTo
(
periodName
(
period
,
year
));
GlBalance
Example
.
Criteria
c2
=
glBalanceExample
.
createCriteria
().
andSegment4EqualTo
(
code
)
.
andPeriod
NameEqualTo
(
periodName
(
period
,
year
));
TrialBalanceFinalExample
glBalanceExample
=
new
TrialBalanceFinal
Example
();
TrialBalanceFinal
Example
.
Criteria
c1
=
glBalanceExample
.
createCriteria
().
andSegment3EqualTo
(
code
)
.
andPeriod
EqualTo
(
pardePeriod
(
period
,
year
));
TrialBalanceFinal
Example
.
Criteria
c2
=
glBalanceExample
.
createCriteria
().
andSegment4EqualTo
(
code
)
.
andPeriod
EqualTo
(
pardePeriod
(
period
,
year
));
if
(
organization
!=
null
){
c1
.
and
Segment1EqualTo
(
organization
.
getClientCode
());
c2
.
and
Segment1EqualTo
(
organization
.
getClientCode
());
c1
.
and
OrganizationIdEqualTo
(
organization
.
getId
());
c2
.
and
OrganizationIdEqualTo
(
organization
.
getId
());
}
glBalanceExample
.
or
(
c2
);
List
<
GlBalance
>
list
=
SpringContextUtil
.
glBalance
Mapper
.
selectByExample
(
glBalanceExample
);
List
<
TrialBalanceFinal
>
list
=
SpringContextUtil
.
trialBalanceFinal
Mapper
.
selectByExample
(
glBalanceExample
);
if
(
CollectionUtils
.
isEmpty
(
list
)){
return
0.0
;
}
List
<
GlBalance
>
temp
=
list
.
stream
().
filter
(
x
->
code
.
equalsIgnoreCase
(
x
.
getSegment3
())).
collect
(
Collectors
.
toList
());
List
<
TrialBalanceFinal
>
temp
=
list
.
stream
().
filter
(
x
->
code
.
equalsIgnoreCase
(
x
.
getSegment3
())).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isEmpty
(
temp
)){
temp
=
list
;
}
for
(
GlBalance
glB
alance
:
temp
){
for
(
TrialBalanceFinal
b
alance
:
temp
){
ReportCellDataSourceDto
dto
=
new
ReportCellDataSourceDto
();
dto
.
setAmount
(
glBalance
.
getPt
dCr
());
dto
.
setAmount
(
balance
.
getPerio
dCr
());
dto
.
setPeriod
(
period
);
dto
.
setIsOnlyManualInput
(
Boolean
.
FALSE
);
dto
.
setName
(
Constant
.
DataSourceName
.
ReportDataSource
);
dto
.
setType
(
FormulaDataSourceType
.
TrialBalanceSource
.
getCode
());
contain
.
add
(
dto
);
}
return
temp
.
stream
().
mapToDouble
(
a
->
a
.
getP
t
dCr
().
doubleValue
()).
sum
();
return
temp
.
stream
().
mapToDouble
(
a
->
a
.
getP
erio
dCr
().
doubleValue
()).
sum
();
}
}
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/JFFS.java
View file @
0ed8adc2
...
...
@@ -13,8 +13,7 @@ import pwc.taxtech.atms.constant.enums.FormulaDataSourceDetailType;
import
pwc.taxtech.atms.constant.enums.FormulaDataSourceType
;
import
pwc.taxtech.atms.dto.vatdto.ReportCellDataSourceDto
;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.vat.entity.GlBalance
;
import
pwc.taxtech.atms.vat.entity.GlBalanceExample
;
import
pwc.taxtech.atms.vat.entity.*
;
import
java.math.BigDecimal
;
import
java.util.Collections
;
...
...
@@ -28,7 +27,7 @@ public class JFFS extends FunctionBase implements FreeRefFunction {
@Override
public
ValueEval
evaluate
(
ValueEval
[]
args
,
OperationEvaluationContext
ec
)
{
if
(
args
.
length
<
4
)
{
if
(
args
.
length
<
5
)
{
return
null
;
}
...
...
@@ -36,9 +35,9 @@ public class JFFS extends FunctionBase implements FreeRefFunction {
String
code
=
getStringParam
(
args
[
1
],
ec
);
int
year
=
getIntParam
(
args
[
2
],
ec
);
int
period
=
getIntParam
(
args
[
3
],
ec
);
int
sourceDataType
=
getIntParam
(
args
[
4
],
ec
);
String
formulaExpression
=
"JFFS("
+
type
+
",\""
+
code
+
"\","
+
year
+
","
+
period
+
")"
;
+
year
+
","
+
period
+
"
,"
+
sourceDataType
+
"
)"
;
logger
.
debug
(
formulaExpression
);
year
=
getYear
(
year
);
...
...
@@ -65,17 +64,32 @@ public class JFFS extends FunctionBase implements FreeRefFunction {
double
result
=
0
;
for
(
AccountMapping
a
:
accountMappings
){
result
+=
count
(
a
.
getEnterpriseAccountCode
(),
dataSource
,
period
,
year
,
orgId
);
if
(
sourceDataType
==
1
){
result
+=
countForTrialBalance
(
a
.
getEnterpriseAccountCode
(),
dataSource
,
period
,
year
,
orgId
);
}
else
if
(
sourceDataType
==
2
){
result
+=
countForAdjBalance
(
a
.
getEnterpriseAccountCode
(),
dataSource
,
period
,
year
,
orgId
);
}
else
if
(
sourceDataType
==
3
){
result
+=
countForTrialFinalBalance
(
a
.
getEnterpriseAccountCode
(),
dataSource
,
period
,
year
,
orgId
);
}
else
{
return
NumberEval
.
ZERO
;
}
}
Long
dataSoureId
=
saveDataSource
(
ec
,
Collections
.
singletonList
(
dataSource
),
FormulaDataSourceDetailType
.
FormulaDataSourceDto
,
new
BigDecimal
(
result
),
period
,
formulaContext
.
getReportTemplateGroupId
(),
formulaContext
.
getProjectId
());
saveFormulaBlock
(
period
,
ec
,
formulaExpression
,
new
BigDecimal
(
result
),
dataSoureId
,
formulaContext
.
getProjectId
());
return
new
NumberEval
(
result
);
}
else
if
(
type
==
1
){
double
result
=
count
(
code
,
dataSource
,
period
,
year
,
orgId
);
double
result
=
0.00
;
if
(
sourceDataType
==
1
){
result
=
countForTrialBalance
(
code
,
dataSource
,
period
,
year
,
orgId
);
}
else
if
(
sourceDataType
==
2
){
result
=
countForAdjBalance
(
code
,
dataSource
,
period
,
year
,
orgId
);
}
else
if
(
sourceDataType
==
3
){
result
=
countForTrialFinalBalance
(
code
,
dataSource
,
period
,
year
,
orgId
);
}
else
{
return
NumberEval
.
ZERO
;
}
Long
dataSoureId
=
saveDataSource
(
ec
,
Collections
.
singletonList
(
dataSource
),
FormulaDataSourceDetailType
.
FormulaDataSourceDto
,
new
BigDecimal
(
result
),
period
,
formulaContext
.
getReportTemplateGroupId
(),
formulaContext
.
getProjectId
());
...
...
@@ -86,39 +100,99 @@ public class JFFS extends FunctionBase implements FreeRefFunction {
return
NumberEval
.
ZERO
;
}
private
String
periodName
(
int
period
,
int
year
){
return
year
+
"-"
+
(
period
>
9
?
period
:
(
"0"
+
period
));
private
int
pardePeriod
(
int
period
,
int
year
){
return
Integer
.
parseInt
(
""
+
year
+
(
period
>
9
?
period
:
(
"0"
+
period
)
));
}
private
double
count
(
String
code
,
List
<
ReportCellDataSourceDto
>
contain
,
int
period
,
int
year
,
String
orgId
){
private
double
countForTrialBalance
(
String
code
,
List
<
ReportCellDataSourceDto
>
contain
,
int
period
,
int
year
,
String
orgId
){
Organization
organization
=
SpringContextUtil
.
organizationMapper
.
selectByPrimaryKey
(
orgId
);
TrialBalanceExample
example
=
new
TrialBalanceExample
();
TrialBalanceExample
.
Criteria
c1
=
example
.
createCriteria
().
andSegment3EqualTo
(
code
).
andPeriodEqualTo
(
pardePeriod
(
period
,
year
));
TrialBalanceExample
.
Criteria
c2
=
example
.
createCriteria
().
andSegment4EqualTo
(
code
).
andPeriodEqualTo
(
pardePeriod
(
period
,
year
));
if
(
organization
!=
null
){
c1
.
andOrganizationIdEqualTo
(
organization
.
getId
());
c2
.
andOrganizationIdEqualTo
(
organization
.
getId
());
}
example
.
or
(
c2
);
List
<
TrialBalance
>
list
=
SpringContextUtil
.
trialBalanceMapper
.
selectByExample
(
example
);
if
(
CollectionUtils
.
isEmpty
(
list
)){
return
0.0
;
}
List
<
TrialBalance
>
temp
=
list
.
stream
().
filter
(
x
->
code
.
equalsIgnoreCase
(
x
.
getSegment3
())).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isEmpty
(
temp
)){
temp
=
list
;
}
for
(
TrialBalance
balance
:
temp
){
ReportCellDataSourceDto
dto
=
new
ReportCellDataSourceDto
();
dto
.
setAmount
(
balance
.
getPeriodDr
());
dto
.
setPeriod
(
period
);
dto
.
setIsOnlyManualInput
(
Boolean
.
FALSE
);
dto
.
setName
(
Constant
.
DataSourceName
.
ReportDataSource
);
dto
.
setType
(
FormulaDataSourceType
.
TrialBalanceSource
.
getCode
());
contain
.
add
(
dto
);
}
return
temp
.
stream
().
mapToDouble
(
a
->
a
.
getPeriodDr
().
doubleValue
()).
sum
();
}
private
double
countForAdjBalance
(
String
code
,
List
<
ReportCellDataSourceDto
>
contain
,
int
period
,
int
year
,
String
orgId
){
Organization
organization
=
SpringContextUtil
.
organizationMapper
.
selectByPrimaryKey
(
orgId
);
AdjustmentTableExample
example
=
new
AdjustmentTableExample
();
AdjustmentTableExample
.
Criteria
c1
=
example
.
createCriteria
().
andSegment3EqualTo
(
code
).
andPeriodEqualTo
(
pardePeriod
(
period
,
year
));
AdjustmentTableExample
.
Criteria
c2
=
example
.
createCriteria
().
andSegment4EqualTo
(
code
).
andPeriodEqualTo
(
pardePeriod
(
period
,
year
));
if
(
organization
!=
null
){
c1
.
andOrganizationIdEqualTo
(
organization
.
getId
());
c2
.
andOrganizationIdEqualTo
(
organization
.
getId
());
}
example
.
or
(
c2
);
List
<
AdjustmentTable
>
list
=
SpringContextUtil
.
adjustmentTableMapper
.
selectByExample
(
example
);
if
(
CollectionUtils
.
isEmpty
(
list
)){
return
0.0
;
}
List
<
AdjustmentTable
>
temp
=
list
.
stream
().
filter
(
x
->
code
.
equalsIgnoreCase
(
x
.
getSegment3
())).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isEmpty
(
temp
)){
temp
=
list
;
}
for
(
AdjustmentTable
balance
:
temp
){
ReportCellDataSourceDto
dto
=
new
ReportCellDataSourceDto
();
dto
.
setAmount
(
balance
.
getPeriodDrBeq
());
dto
.
setPeriod
(
period
);
dto
.
setIsOnlyManualInput
(
Boolean
.
FALSE
);
dto
.
setName
(
Constant
.
DataSourceName
.
ReportDataSource
);
dto
.
setType
(
FormulaDataSourceType
.
TrialBalanceSource
.
getCode
());
contain
.
add
(
dto
);
}
return
temp
.
stream
().
mapToDouble
(
a
->
a
.
getPeriodDrBeq
().
doubleValue
()).
sum
();
}
private
double
countForTrialFinalBalance
(
String
code
,
List
<
ReportCellDataSourceDto
>
contain
,
int
period
,
int
year
,
String
orgId
){
Organization
organization
=
SpringContextUtil
.
organizationMapper
.
selectByPrimaryKey
(
orgId
);
GlBalanceExample
glBalanceExample
=
new
GlBalance
Example
();
GlBalanceExample
.
Criteria
c1
=
glBalanceExample
.
createCriteria
().
andSegment3EqualTo
(
code
).
andPeriodNameEqualTo
(
periodName
(
period
,
year
));
GlBalanceExample
.
Criteria
c2
=
glBalanceExample
.
createCriteria
().
andSegment4EqualTo
(
code
).
andPeriodNameEqualTo
(
periodName
(
period
,
year
));
TrialBalanceFinalExample
example
=
new
TrialBalanceFinal
Example
();
TrialBalanceFinalExample
.
Criteria
c1
=
example
.
createCriteria
().
andSegment3EqualTo
(
code
).
andPeriodEqualTo
(
pardePeriod
(
period
,
year
));
TrialBalanceFinalExample
.
Criteria
c2
=
example
.
createCriteria
().
andSegment4EqualTo
(
code
).
andPeriodEqualTo
(
pardePeriod
(
period
,
year
));
if
(
organization
!=
null
){
c1
.
and
Segment1EqualTo
(
organization
.
getClientCode
());
c2
.
and
Segment1EqualTo
(
organization
.
getClientCode
());
c1
.
and
OrganizationIdEqualTo
(
organization
.
getId
());
c2
.
and
OrganizationIdEqualTo
(
organization
.
getId
());
}
glBalanceE
xample
.
or
(
c2
);
List
<
GlBalance
>
list
=
SpringContextUtil
.
glBalanceMapper
.
selectByExample
(
glBalanceE
xample
);
e
xample
.
or
(
c2
);
List
<
TrialBalanceFinal
>
list
=
SpringContextUtil
.
trialBalanceFinalMapper
.
selectByExample
(
e
xample
);
if
(
CollectionUtils
.
isEmpty
(
list
)){
return
0.0
;
}
List
<
GlBalance
>
temp
=
list
.
stream
().
filter
(
x
->
code
.
equalsIgnoreCase
(
x
.
getSegment3
())).
collect
(
Collectors
.
toList
());
List
<
TrialBalanceFinal
>
temp
=
list
.
stream
().
filter
(
x
->
code
.
equalsIgnoreCase
(
x
.
getSegment3
())).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isEmpty
(
temp
)){
temp
=
list
;
}
for
(
GlBalance
glB
alance
:
temp
){
for
(
TrialBalanceFinal
b
alance
:
temp
){
ReportCellDataSourceDto
dto
=
new
ReportCellDataSourceDto
();
dto
.
setAmount
(
glBalance
.
getPt
dDr
());
dto
.
setAmount
(
balance
.
getPerio
dDr
());
dto
.
setPeriod
(
period
);
dto
.
setIsOnlyManualInput
(
Boolean
.
FALSE
);
dto
.
setName
(
Constant
.
DataSourceName
.
ReportDataSource
);
dto
.
setType
(
FormulaDataSourceType
.
TrialBalanceSource
.
getCode
());
contain
.
add
(
dto
);
}
return
temp
.
stream
().
mapToDouble
(
a
->
a
.
getP
t
dDr
().
doubleValue
()).
sum
();
return
temp
.
stream
().
mapToDouble
(
a
->
a
.
getP
erio
dDr
().
doubleValue
()).
sum
();
}
}
atms-dao/src/main/java/pwc/taxtech/atms/vat/dao/TrialBalanceFinalMapper.java
View file @
0ed8adc2
...
...
@@ -5,8 +5,8 @@ import org.apache.ibatis.annotations.Mapper;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.session.RowBounds
;
import
pwc.taxtech.atms.MyVatMapper
;
import
pwc.taxtech.atms.vat.entity.TrialBalance
;
import
pwc.taxtech.atms.vat.entity.TrialBalanceExample
;
import
pwc.taxtech.atms.vat.entity.TrialBalance
Final
;
import
pwc.taxtech.atms.vat.entity.TrialBalance
Final
Example
;
@Mapper
public
interface
TrialBalanceFinalMapper
extends
MyVatMapper
{
...
...
@@ -16,7 +16,7 @@ public interface TrialBalanceFinalMapper extends MyVatMapper {
*
* @mbg.generated
*/
long
countByExample
(
TrialBalanceExample
example
);
long
countByExample
(
TrialBalance
Final
Example
example
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -24,7 +24,7 @@ public interface TrialBalanceFinalMapper extends MyVatMapper {
*
* @mbg.generated
*/
int
deleteByExample
(
TrialBalanceExample
example
);
int
deleteByExample
(
TrialBalance
Final
Example
example
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -40,7 +40,7 @@ public interface TrialBalanceFinalMapper extends MyVatMapper {
*
* @mbg.generated
*/
int
insert
(
TrialBalance
record
);
int
insert
(
TrialBalance
Final
record
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -48,7 +48,7 @@ public interface TrialBalanceFinalMapper extends MyVatMapper {
*
* @mbg.generated
*/
int
insertSelective
(
TrialBalance
record
);
int
insertSelective
(
TrialBalance
Final
record
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -56,7 +56,7 @@ public interface TrialBalanceFinalMapper extends MyVatMapper {
*
* @mbg.generated
*/
List
<
TrialBalance
>
selectByExampleWithRowbounds
(
TrialBalance
Example
example
,
RowBounds
rowBounds
);
List
<
TrialBalance
Final
>
selectByExampleWithRowbounds
(
TrialBalanceFinal
Example
example
,
RowBounds
rowBounds
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -64,7 +64,7 @@ public interface TrialBalanceFinalMapper extends MyVatMapper {
*
* @mbg.generated
*/
List
<
TrialBalance
>
selectByExample
(
TrialBalance
Example
example
);
List
<
TrialBalance
Final
>
selectByExample
(
TrialBalanceFinal
Example
example
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -72,7 +72,7 @@ public interface TrialBalanceFinalMapper extends MyVatMapper {
*
* @mbg.generated
*/
TrialBalance
selectByPrimaryKey
(
Long
id
);
TrialBalance
Final
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -80,7 +80,7 @@ public interface TrialBalanceFinalMapper extends MyVatMapper {
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
TrialBalance
record
,
@Param
(
"example"
)
TrialBalance
Example
example
);
int
updateByExampleSelective
(
@Param
(
"record"
)
TrialBalance
Final
record
,
@Param
(
"example"
)
TrialBalanceFinal
Example
example
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -88,7 +88,7 @@ public interface TrialBalanceFinalMapper extends MyVatMapper {
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
TrialBalance
record
,
@Param
(
"example"
)
TrialBalance
Example
example
);
int
updateByExample
(
@Param
(
"record"
)
TrialBalance
Final
record
,
@Param
(
"example"
)
TrialBalanceFinal
Example
example
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -96,7 +96,7 @@ public interface TrialBalanceFinalMapper extends MyVatMapper {
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
TrialBalance
record
);
int
updateByPrimaryKeySelective
(
TrialBalance
Final
record
);
/**
* This method was generated by MyBatis Generator.
...
...
@@ -104,5 +104,5 @@ public interface TrialBalanceFinalMapper extends MyVatMapper {
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
TrialBalance
record
);
int
updateByPrimaryKey
(
TrialBalance
Final
record
);
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/TrialBalanceFinal.java
0 → 100644
View file @
0ed8adc2
package
pwc
.
taxtech
.
atms
.
vat
.
entity
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
pwc.taxtech.atms.entity.BaseEntity
;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table trial_balance_final
*
* @mbg.generated do_not_delete_during_merge
*/
public
class
TrialBalanceFinal
extends
BaseEntity
implements
Serializable
{
/**
* Database Column Remarks:
* 唯一编号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.id
*
* @mbg.generated
*/
private
Long
id
;
/**
* Database Column Remarks:
* 机构编号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.organization_id
*
* @mbg.generated
*/
private
String
organizationId
;
/**
* Database Column Remarks:
* 项目ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.project_id
*
* @mbg.generated
*/
private
String
projectId
;
/**
* Database Column Remarks:
* 数据日期
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.date
*
* @mbg.generated
*/
private
Date
date
;
/**
* Database Column Remarks:
* 来源
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.source
*
* @mbg.generated
*/
private
String
source
;
/**
* Database Column Remarks:
* 期间 yyyymm
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.period
*
* @mbg.generated
*/
private
Integer
period
;
/**
* Database Column Remarks:
* 账套ID
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.ledger_id
*
* @mbg.generated
*/
private
String
ledgerId
;
/**
* Database Column Remarks:
* 账套名称
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.ledger_name
*
* @mbg.generated
*/
private
String
ledgerName
;
/**
* Database Column Remarks:
* 账套币种
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.currency_code
*
* @mbg.generated
*/
private
String
currencyCode
;
/**
* Database Column Remarks:
* 关账标识
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.status
*
* @mbg.generated
*/
private
String
status
;
/**
* Database Column Remarks:
* 主体性质
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.category
*
* @mbg.generated
*/
private
String
category
;
/**
* Database Column Remarks:
* 科目性质
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.account_category
*
* @mbg.generated
*/
private
String
accountCategory
;
/**
* Database Column Remarks:
* 一级科目代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.acct_code1
*
* @mbg.generated
*/
private
String
acctCode1
;
/**
* Database Column Remarks:
* 一级科目说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.acct_name1
*
* @mbg.generated
*/
private
String
acctName1
;
/**
* Database Column Remarks:
* 二级科目说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.acct_name2
*
* @mbg.generated
*/
private
String
acctName2
;
/**
* Database Column Remarks:
* 三级科目说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.acct_name3
*
* @mbg.generated
*/
private
String
acctName3
;
/**
* Database Column Remarks:
* 主体代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment1
*
* @mbg.generated
*/
private
String
segment1
;
/**
* Database Column Remarks:
* 成本中心代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment2
*
* @mbg.generated
*/
private
String
segment2
;
/**
* Database Column Remarks:
* 科目代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment3
*
* @mbg.generated
*/
private
String
segment3
;
/**
* Database Column Remarks:
* 辅助科目代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment4
*
* @mbg.generated
*/
private
String
segment4
;
/**
* Database Column Remarks:
* 利润中心代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment5
*
* @mbg.generated
*/
private
String
segment5
;
/**
* Database Column Remarks:
* 产品代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment6
*
* @mbg.generated
*/
private
String
segment6
;
/**
* Database Column Remarks:
* 项目代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment7
*
* @mbg.generated
*/
private
String
segment7
;
/**
* Database Column Remarks:
* 公司间代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment8
*
* @mbg.generated
*/
private
String
segment8
;
/**
* Database Column Remarks:
* 备用1代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment9
*
* @mbg.generated
*/
private
String
segment9
;
/**
* Database Column Remarks:
* 备用2代码
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment10
*
* @mbg.generated
*/
private
String
segment10
;
/**
* Database Column Remarks:
* 主体说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment1_name
*
* @mbg.generated
*/
private
String
segment1Name
;
/**
* Database Column Remarks:
* 成本中心说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment2_name
*
* @mbg.generated
*/
private
String
segment2Name
;
/**
* Database Column Remarks:
* 科目说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment3_name
*
* @mbg.generated
*/
private
String
segment3Name
;
/**
* Database Column Remarks:
* 辅助科目说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment4_name
*
* @mbg.generated
*/
private
String
segment4Name
;
/**
* Database Column Remarks:
* 利润中心说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment5_name
*
* @mbg.generated
*/
private
String
segment5Name
;
/**
* Database Column Remarks:
* 产品说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment6_name
*
* @mbg.generated
*/
private
String
segment6Name
;
/**
* Database Column Remarks:
* 项目说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment7_name
*
* @mbg.generated
*/
private
String
segment7Name
;
/**
* Database Column Remarks:
* 公司间说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment8_name
*
* @mbg.generated
*/
private
String
segment8Name
;
/**
* Database Column Remarks:
* 备用1说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment9_name
*
* @mbg.generated
*/
private
String
segment9Name
;
/**
* Database Column Remarks:
* 备用2说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.segment10_name
*
* @mbg.generated
*/
private
String
segment10Name
;
/**
* Database Column Remarks:
* 原币本期期初余额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.beg_bal
*
* @mbg.generated
*/
private
BigDecimal
begBal
;
/**
* Database Column Remarks:
* 原币本期借方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.period_dr
*
* @mbg.generated
*/
private
BigDecimal
periodDr
;
/**
* Database Column Remarks:
* 原币本期贷方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.period_cr
*
* @mbg.generated
*/
private
BigDecimal
periodCr
;
/**
* Database Column Remarks:
* 原币本期期末余额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.end_bal
*
* @mbg.generated
*/
private
BigDecimal
endBal
;
/**
* Database Column Remarks:
* 原币本季借方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.qtd_dr
*
* @mbg.generated
*/
private
BigDecimal
qtdDr
;
/**
* Database Column Remarks:
* 原币本季贷方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.qtd_cr
*
* @mbg.generated
*/
private
BigDecimal
qtdCr
;
/**
* Database Column Remarks:
* 原币本年借方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.ytd_dr
*
* @mbg.generated
*/
private
BigDecimal
ytdDr
;
/**
* Database Column Remarks:
* 原币本年贷方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.ytd_cr
*
* @mbg.generated
*/
private
BigDecimal
ytdCr
;
/**
* Database Column Remarks:
* 本位币本期期初余额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.beg_bal_beq
*
* @mbg.generated
*/
private
BigDecimal
begBalBeq
;
/**
* Database Column Remarks:
* 本位币本期借方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.period_dr_beq
*
* @mbg.generated
*/
private
BigDecimal
periodDrBeq
;
/**
* Database Column Remarks:
* 本位币本期贷方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.period_cr_beq
*
* @mbg.generated
*/
private
BigDecimal
periodCrBeq
;
/**
* Database Column Remarks:
* 本位币本期期末余额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.end_bal_beq
*
* @mbg.generated
*/
private
BigDecimal
endBalBeq
;
/**
* Database Column Remarks:
* 本位币本季借方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.qtd_dr_beq
*
* @mbg.generated
*/
private
BigDecimal
qtdDrBeq
;
/**
* Database Column Remarks:
* 本位币本季贷方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.qtd_cr_beq
*
* @mbg.generated
*/
private
BigDecimal
qtdCrBeq
;
/**
* Database Column Remarks:
* 本位币本年借方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.ytd_dr_beq
*
* @mbg.generated
*/
private
BigDecimal
ytdDrBeq
;
/**
* Database Column Remarks:
* 本位币本年贷方发生额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.ytd_cr_beq
*
* @mbg.generated
*/
private
BigDecimal
ytdCrBeq
;
/**
* Database Column Remarks:
* 创建时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.create_time
*
* @mbg.generated
*/
private
Date
createTime
;
/**
* Database Column Remarks:
* 更新时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column trial_balance_final.update_time
*
* @mbg.generated
*/
private
Date
updateTime
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
private
static
final
long
serialVersionUID
=
1L
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.id
*
* @return the value of trial_balance_final.id
*
* @mbg.generated
*/
public
Long
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.id
*
* @param id the value for trial_balance_final.id
*
* @mbg.generated
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.organization_id
*
* @return the value of trial_balance_final.organization_id
*
* @mbg.generated
*/
public
String
getOrganizationId
()
{
return
organizationId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.organization_id
*
* @param organizationId the value for trial_balance_final.organization_id
*
* @mbg.generated
*/
public
void
setOrganizationId
(
String
organizationId
)
{
this
.
organizationId
=
organizationId
==
null
?
null
:
organizationId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.project_id
*
* @return the value of trial_balance_final.project_id
*
* @mbg.generated
*/
public
String
getProjectId
()
{
return
projectId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.project_id
*
* @param projectId the value for trial_balance_final.project_id
*
* @mbg.generated
*/
public
void
setProjectId
(
String
projectId
)
{
this
.
projectId
=
projectId
==
null
?
null
:
projectId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.date
*
* @return the value of trial_balance_final.date
*
* @mbg.generated
*/
public
Date
getDate
()
{
return
date
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.date
*
* @param date the value for trial_balance_final.date
*
* @mbg.generated
*/
public
void
setDate
(
Date
date
)
{
this
.
date
=
date
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.source
*
* @return the value of trial_balance_final.source
*
* @mbg.generated
*/
public
String
getSource
()
{
return
source
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.source
*
* @param source the value for trial_balance_final.source
*
* @mbg.generated
*/
public
void
setSource
(
String
source
)
{
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.period
*
* @return the value of trial_balance_final.period
*
* @mbg.generated
*/
public
Integer
getPeriod
()
{
return
period
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.period
*
* @param period the value for trial_balance_final.period
*
* @mbg.generated
*/
public
void
setPeriod
(
Integer
period
)
{
this
.
period
=
period
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.ledger_id
*
* @return the value of trial_balance_final.ledger_id
*
* @mbg.generated
*/
public
String
getLedgerId
()
{
return
ledgerId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.ledger_id
*
* @param ledgerId the value for trial_balance_final.ledger_id
*
* @mbg.generated
*/
public
void
setLedgerId
(
String
ledgerId
)
{
this
.
ledgerId
=
ledgerId
==
null
?
null
:
ledgerId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.ledger_name
*
* @return the value of trial_balance_final.ledger_name
*
* @mbg.generated
*/
public
String
getLedgerName
()
{
return
ledgerName
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.ledger_name
*
* @param ledgerName the value for trial_balance_final.ledger_name
*
* @mbg.generated
*/
public
void
setLedgerName
(
String
ledgerName
)
{
this
.
ledgerName
=
ledgerName
==
null
?
null
:
ledgerName
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.currency_code
*
* @return the value of trial_balance_final.currency_code
*
* @mbg.generated
*/
public
String
getCurrencyCode
()
{
return
currencyCode
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.currency_code
*
* @param currencyCode the value for trial_balance_final.currency_code
*
* @mbg.generated
*/
public
void
setCurrencyCode
(
String
currencyCode
)
{
this
.
currencyCode
=
currencyCode
==
null
?
null
:
currencyCode
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.status
*
* @return the value of trial_balance_final.status
*
* @mbg.generated
*/
public
String
getStatus
()
{
return
status
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.status
*
* @param status the value for trial_balance_final.status
*
* @mbg.generated
*/
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
==
null
?
null
:
status
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.category
*
* @return the value of trial_balance_final.category
*
* @mbg.generated
*/
public
String
getCategory
()
{
return
category
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.category
*
* @param category the value for trial_balance_final.category
*
* @mbg.generated
*/
public
void
setCategory
(
String
category
)
{
this
.
category
=
category
==
null
?
null
:
category
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.account_category
*
* @return the value of trial_balance_final.account_category
*
* @mbg.generated
*/
public
String
getAccountCategory
()
{
return
accountCategory
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.account_category
*
* @param accountCategory the value for trial_balance_final.account_category
*
* @mbg.generated
*/
public
void
setAccountCategory
(
String
accountCategory
)
{
this
.
accountCategory
=
accountCategory
==
null
?
null
:
accountCategory
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.acct_code1
*
* @return the value of trial_balance_final.acct_code1
*
* @mbg.generated
*/
public
String
getAcctCode1
()
{
return
acctCode1
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.acct_code1
*
* @param acctCode1 the value for trial_balance_final.acct_code1
*
* @mbg.generated
*/
public
void
setAcctCode1
(
String
acctCode1
)
{
this
.
acctCode1
=
acctCode1
==
null
?
null
:
acctCode1
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.acct_name1
*
* @return the value of trial_balance_final.acct_name1
*
* @mbg.generated
*/
public
String
getAcctName1
()
{
return
acctName1
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.acct_name1
*
* @param acctName1 the value for trial_balance_final.acct_name1
*
* @mbg.generated
*/
public
void
setAcctName1
(
String
acctName1
)
{
this
.
acctName1
=
acctName1
==
null
?
null
:
acctName1
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.acct_name2
*
* @return the value of trial_balance_final.acct_name2
*
* @mbg.generated
*/
public
String
getAcctName2
()
{
return
acctName2
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.acct_name2
*
* @param acctName2 the value for trial_balance_final.acct_name2
*
* @mbg.generated
*/
public
void
setAcctName2
(
String
acctName2
)
{
this
.
acctName2
=
acctName2
==
null
?
null
:
acctName2
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.acct_name3
*
* @return the value of trial_balance_final.acct_name3
*
* @mbg.generated
*/
public
String
getAcctName3
()
{
return
acctName3
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.acct_name3
*
* @param acctName3 the value for trial_balance_final.acct_name3
*
* @mbg.generated
*/
public
void
setAcctName3
(
String
acctName3
)
{
this
.
acctName3
=
acctName3
==
null
?
null
:
acctName3
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment1
*
* @return the value of trial_balance_final.segment1
*
* @mbg.generated
*/
public
String
getSegment1
()
{
return
segment1
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment1
*
* @param segment1 the value for trial_balance_final.segment1
*
* @mbg.generated
*/
public
void
setSegment1
(
String
segment1
)
{
this
.
segment1
=
segment1
==
null
?
null
:
segment1
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment2
*
* @return the value of trial_balance_final.segment2
*
* @mbg.generated
*/
public
String
getSegment2
()
{
return
segment2
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment2
*
* @param segment2 the value for trial_balance_final.segment2
*
* @mbg.generated
*/
public
void
setSegment2
(
String
segment2
)
{
this
.
segment2
=
segment2
==
null
?
null
:
segment2
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment3
*
* @return the value of trial_balance_final.segment3
*
* @mbg.generated
*/
public
String
getSegment3
()
{
return
segment3
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment3
*
* @param segment3 the value for trial_balance_final.segment3
*
* @mbg.generated
*/
public
void
setSegment3
(
String
segment3
)
{
this
.
segment3
=
segment3
==
null
?
null
:
segment3
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment4
*
* @return the value of trial_balance_final.segment4
*
* @mbg.generated
*/
public
String
getSegment4
()
{
return
segment4
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment4
*
* @param segment4 the value for trial_balance_final.segment4
*
* @mbg.generated
*/
public
void
setSegment4
(
String
segment4
)
{
this
.
segment4
=
segment4
==
null
?
null
:
segment4
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment5
*
* @return the value of trial_balance_final.segment5
*
* @mbg.generated
*/
public
String
getSegment5
()
{
return
segment5
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment5
*
* @param segment5 the value for trial_balance_final.segment5
*
* @mbg.generated
*/
public
void
setSegment5
(
String
segment5
)
{
this
.
segment5
=
segment5
==
null
?
null
:
segment5
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment6
*
* @return the value of trial_balance_final.segment6
*
* @mbg.generated
*/
public
String
getSegment6
()
{
return
segment6
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment6
*
* @param segment6 the value for trial_balance_final.segment6
*
* @mbg.generated
*/
public
void
setSegment6
(
String
segment6
)
{
this
.
segment6
=
segment6
==
null
?
null
:
segment6
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment7
*
* @return the value of trial_balance_final.segment7
*
* @mbg.generated
*/
public
String
getSegment7
()
{
return
segment7
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment7
*
* @param segment7 the value for trial_balance_final.segment7
*
* @mbg.generated
*/
public
void
setSegment7
(
String
segment7
)
{
this
.
segment7
=
segment7
==
null
?
null
:
segment7
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment8
*
* @return the value of trial_balance_final.segment8
*
* @mbg.generated
*/
public
String
getSegment8
()
{
return
segment8
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment8
*
* @param segment8 the value for trial_balance_final.segment8
*
* @mbg.generated
*/
public
void
setSegment8
(
String
segment8
)
{
this
.
segment8
=
segment8
==
null
?
null
:
segment8
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment9
*
* @return the value of trial_balance_final.segment9
*
* @mbg.generated
*/
public
String
getSegment9
()
{
return
segment9
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment9
*
* @param segment9 the value for trial_balance_final.segment9
*
* @mbg.generated
*/
public
void
setSegment9
(
String
segment9
)
{
this
.
segment9
=
segment9
==
null
?
null
:
segment9
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment10
*
* @return the value of trial_balance_final.segment10
*
* @mbg.generated
*/
public
String
getSegment10
()
{
return
segment10
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment10
*
* @param segment10 the value for trial_balance_final.segment10
*
* @mbg.generated
*/
public
void
setSegment10
(
String
segment10
)
{
this
.
segment10
=
segment10
==
null
?
null
:
segment10
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment1_name
*
* @return the value of trial_balance_final.segment1_name
*
* @mbg.generated
*/
public
String
getSegment1Name
()
{
return
segment1Name
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment1_name
*
* @param segment1Name the value for trial_balance_final.segment1_name
*
* @mbg.generated
*/
public
void
setSegment1Name
(
String
segment1Name
)
{
this
.
segment1Name
=
segment1Name
==
null
?
null
:
segment1Name
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment2_name
*
* @return the value of trial_balance_final.segment2_name
*
* @mbg.generated
*/
public
String
getSegment2Name
()
{
return
segment2Name
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment2_name
*
* @param segment2Name the value for trial_balance_final.segment2_name
*
* @mbg.generated
*/
public
void
setSegment2Name
(
String
segment2Name
)
{
this
.
segment2Name
=
segment2Name
==
null
?
null
:
segment2Name
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment3_name
*
* @return the value of trial_balance_final.segment3_name
*
* @mbg.generated
*/
public
String
getSegment3Name
()
{
return
segment3Name
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment3_name
*
* @param segment3Name the value for trial_balance_final.segment3_name
*
* @mbg.generated
*/
public
void
setSegment3Name
(
String
segment3Name
)
{
this
.
segment3Name
=
segment3Name
==
null
?
null
:
segment3Name
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment4_name
*
* @return the value of trial_balance_final.segment4_name
*
* @mbg.generated
*/
public
String
getSegment4Name
()
{
return
segment4Name
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment4_name
*
* @param segment4Name the value for trial_balance_final.segment4_name
*
* @mbg.generated
*/
public
void
setSegment4Name
(
String
segment4Name
)
{
this
.
segment4Name
=
segment4Name
==
null
?
null
:
segment4Name
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment5_name
*
* @return the value of trial_balance_final.segment5_name
*
* @mbg.generated
*/
public
String
getSegment5Name
()
{
return
segment5Name
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment5_name
*
* @param segment5Name the value for trial_balance_final.segment5_name
*
* @mbg.generated
*/
public
void
setSegment5Name
(
String
segment5Name
)
{
this
.
segment5Name
=
segment5Name
==
null
?
null
:
segment5Name
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment6_name
*
* @return the value of trial_balance_final.segment6_name
*
* @mbg.generated
*/
public
String
getSegment6Name
()
{
return
segment6Name
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment6_name
*
* @param segment6Name the value for trial_balance_final.segment6_name
*
* @mbg.generated
*/
public
void
setSegment6Name
(
String
segment6Name
)
{
this
.
segment6Name
=
segment6Name
==
null
?
null
:
segment6Name
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment7_name
*
* @return the value of trial_balance_final.segment7_name
*
* @mbg.generated
*/
public
String
getSegment7Name
()
{
return
segment7Name
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment7_name
*
* @param segment7Name the value for trial_balance_final.segment7_name
*
* @mbg.generated
*/
public
void
setSegment7Name
(
String
segment7Name
)
{
this
.
segment7Name
=
segment7Name
==
null
?
null
:
segment7Name
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment8_name
*
* @return the value of trial_balance_final.segment8_name
*
* @mbg.generated
*/
public
String
getSegment8Name
()
{
return
segment8Name
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment8_name
*
* @param segment8Name the value for trial_balance_final.segment8_name
*
* @mbg.generated
*/
public
void
setSegment8Name
(
String
segment8Name
)
{
this
.
segment8Name
=
segment8Name
==
null
?
null
:
segment8Name
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment9_name
*
* @return the value of trial_balance_final.segment9_name
*
* @mbg.generated
*/
public
String
getSegment9Name
()
{
return
segment9Name
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment9_name
*
* @param segment9Name the value for trial_balance_final.segment9_name
*
* @mbg.generated
*/
public
void
setSegment9Name
(
String
segment9Name
)
{
this
.
segment9Name
=
segment9Name
==
null
?
null
:
segment9Name
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.segment10_name
*
* @return the value of trial_balance_final.segment10_name
*
* @mbg.generated
*/
public
String
getSegment10Name
()
{
return
segment10Name
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.segment10_name
*
* @param segment10Name the value for trial_balance_final.segment10_name
*
* @mbg.generated
*/
public
void
setSegment10Name
(
String
segment10Name
)
{
this
.
segment10Name
=
segment10Name
==
null
?
null
:
segment10Name
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.beg_bal
*
* @return the value of trial_balance_final.beg_bal
*
* @mbg.generated
*/
public
BigDecimal
getBegBal
()
{
return
begBal
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.beg_bal
*
* @param begBal the value for trial_balance_final.beg_bal
*
* @mbg.generated
*/
public
void
setBegBal
(
BigDecimal
begBal
)
{
this
.
begBal
=
begBal
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.period_dr
*
* @return the value of trial_balance_final.period_dr
*
* @mbg.generated
*/
public
BigDecimal
getPeriodDr
()
{
return
periodDr
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.period_dr
*
* @param periodDr the value for trial_balance_final.period_dr
*
* @mbg.generated
*/
public
void
setPeriodDr
(
BigDecimal
periodDr
)
{
this
.
periodDr
=
periodDr
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.period_cr
*
* @return the value of trial_balance_final.period_cr
*
* @mbg.generated
*/
public
BigDecimal
getPeriodCr
()
{
return
periodCr
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.period_cr
*
* @param periodCr the value for trial_balance_final.period_cr
*
* @mbg.generated
*/
public
void
setPeriodCr
(
BigDecimal
periodCr
)
{
this
.
periodCr
=
periodCr
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.end_bal
*
* @return the value of trial_balance_final.end_bal
*
* @mbg.generated
*/
public
BigDecimal
getEndBal
()
{
return
endBal
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.end_bal
*
* @param endBal the value for trial_balance_final.end_bal
*
* @mbg.generated
*/
public
void
setEndBal
(
BigDecimal
endBal
)
{
this
.
endBal
=
endBal
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.qtd_dr
*
* @return the value of trial_balance_final.qtd_dr
*
* @mbg.generated
*/
public
BigDecimal
getQtdDr
()
{
return
qtdDr
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.qtd_dr
*
* @param qtdDr the value for trial_balance_final.qtd_dr
*
* @mbg.generated
*/
public
void
setQtdDr
(
BigDecimal
qtdDr
)
{
this
.
qtdDr
=
qtdDr
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.qtd_cr
*
* @return the value of trial_balance_final.qtd_cr
*
* @mbg.generated
*/
public
BigDecimal
getQtdCr
()
{
return
qtdCr
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.qtd_cr
*
* @param qtdCr the value for trial_balance_final.qtd_cr
*
* @mbg.generated
*/
public
void
setQtdCr
(
BigDecimal
qtdCr
)
{
this
.
qtdCr
=
qtdCr
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.ytd_dr
*
* @return the value of trial_balance_final.ytd_dr
*
* @mbg.generated
*/
public
BigDecimal
getYtdDr
()
{
return
ytdDr
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.ytd_dr
*
* @param ytdDr the value for trial_balance_final.ytd_dr
*
* @mbg.generated
*/
public
void
setYtdDr
(
BigDecimal
ytdDr
)
{
this
.
ytdDr
=
ytdDr
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.ytd_cr
*
* @return the value of trial_balance_final.ytd_cr
*
* @mbg.generated
*/
public
BigDecimal
getYtdCr
()
{
return
ytdCr
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.ytd_cr
*
* @param ytdCr the value for trial_balance_final.ytd_cr
*
* @mbg.generated
*/
public
void
setYtdCr
(
BigDecimal
ytdCr
)
{
this
.
ytdCr
=
ytdCr
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.beg_bal_beq
*
* @return the value of trial_balance_final.beg_bal_beq
*
* @mbg.generated
*/
public
BigDecimal
getBegBalBeq
()
{
return
begBalBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.beg_bal_beq
*
* @param begBalBeq the value for trial_balance_final.beg_bal_beq
*
* @mbg.generated
*/
public
void
setBegBalBeq
(
BigDecimal
begBalBeq
)
{
this
.
begBalBeq
=
begBalBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.period_dr_beq
*
* @return the value of trial_balance_final.period_dr_beq
*
* @mbg.generated
*/
public
BigDecimal
getPeriodDrBeq
()
{
return
periodDrBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.period_dr_beq
*
* @param periodDrBeq the value for trial_balance_final.period_dr_beq
*
* @mbg.generated
*/
public
void
setPeriodDrBeq
(
BigDecimal
periodDrBeq
)
{
this
.
periodDrBeq
=
periodDrBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.period_cr_beq
*
* @return the value of trial_balance_final.period_cr_beq
*
* @mbg.generated
*/
public
BigDecimal
getPeriodCrBeq
()
{
return
periodCrBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.period_cr_beq
*
* @param periodCrBeq the value for trial_balance_final.period_cr_beq
*
* @mbg.generated
*/
public
void
setPeriodCrBeq
(
BigDecimal
periodCrBeq
)
{
this
.
periodCrBeq
=
periodCrBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.end_bal_beq
*
* @return the value of trial_balance_final.end_bal_beq
*
* @mbg.generated
*/
public
BigDecimal
getEndBalBeq
()
{
return
endBalBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.end_bal_beq
*
* @param endBalBeq the value for trial_balance_final.end_bal_beq
*
* @mbg.generated
*/
public
void
setEndBalBeq
(
BigDecimal
endBalBeq
)
{
this
.
endBalBeq
=
endBalBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.qtd_dr_beq
*
* @return the value of trial_balance_final.qtd_dr_beq
*
* @mbg.generated
*/
public
BigDecimal
getQtdDrBeq
()
{
return
qtdDrBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.qtd_dr_beq
*
* @param qtdDrBeq the value for trial_balance_final.qtd_dr_beq
*
* @mbg.generated
*/
public
void
setQtdDrBeq
(
BigDecimal
qtdDrBeq
)
{
this
.
qtdDrBeq
=
qtdDrBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.qtd_cr_beq
*
* @return the value of trial_balance_final.qtd_cr_beq
*
* @mbg.generated
*/
public
BigDecimal
getQtdCrBeq
()
{
return
qtdCrBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.qtd_cr_beq
*
* @param qtdCrBeq the value for trial_balance_final.qtd_cr_beq
*
* @mbg.generated
*/
public
void
setQtdCrBeq
(
BigDecimal
qtdCrBeq
)
{
this
.
qtdCrBeq
=
qtdCrBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.ytd_dr_beq
*
* @return the value of trial_balance_final.ytd_dr_beq
*
* @mbg.generated
*/
public
BigDecimal
getYtdDrBeq
()
{
return
ytdDrBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.ytd_dr_beq
*
* @param ytdDrBeq the value for trial_balance_final.ytd_dr_beq
*
* @mbg.generated
*/
public
void
setYtdDrBeq
(
BigDecimal
ytdDrBeq
)
{
this
.
ytdDrBeq
=
ytdDrBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.ytd_cr_beq
*
* @return the value of trial_balance_final.ytd_cr_beq
*
* @mbg.generated
*/
public
BigDecimal
getYtdCrBeq
()
{
return
ytdCrBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.ytd_cr_beq
*
* @param ytdCrBeq the value for trial_balance_final.ytd_cr_beq
*
* @mbg.generated
*/
public
void
setYtdCrBeq
(
BigDecimal
ytdCrBeq
)
{
this
.
ytdCrBeq
=
ytdCrBeq
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.create_time
*
* @return the value of trial_balance_final.create_time
*
* @mbg.generated
*/
public
Date
getCreateTime
()
{
return
createTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.create_time
*
* @param createTime the value for trial_balance_final.create_time
*
* @mbg.generated
*/
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column trial_balance_final.update_time
*
* @return the value of trial_balance_final.update_time
*
* @mbg.generated
*/
public
Date
getUpdateTime
()
{
return
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column trial_balance_final.update_time
*
* @param updateTime the value for trial_balance_final.update_time
*
* @mbg.generated
*/
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", organizationId="
).
append
(
organizationId
);
sb
.
append
(
", projectId="
).
append
(
projectId
);
sb
.
append
(
", date="
).
append
(
date
);
sb
.
append
(
", source="
).
append
(
source
);
sb
.
append
(
", period="
).
append
(
period
);
sb
.
append
(
", ledgerId="
).
append
(
ledgerId
);
sb
.
append
(
", ledgerName="
).
append
(
ledgerName
);
sb
.
append
(
", currencyCode="
).
append
(
currencyCode
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", category="
).
append
(
category
);
sb
.
append
(
", accountCategory="
).
append
(
accountCategory
);
sb
.
append
(
", acctCode1="
).
append
(
acctCode1
);
sb
.
append
(
", acctName1="
).
append
(
acctName1
);
sb
.
append
(
", acctName2="
).
append
(
acctName2
);
sb
.
append
(
", acctName3="
).
append
(
acctName3
);
sb
.
append
(
", segment1="
).
append
(
segment1
);
sb
.
append
(
", segment2="
).
append
(
segment2
);
sb
.
append
(
", segment3="
).
append
(
segment3
);
sb
.
append
(
", segment4="
).
append
(
segment4
);
sb
.
append
(
", segment5="
).
append
(
segment5
);
sb
.
append
(
", segment6="
).
append
(
segment6
);
sb
.
append
(
", segment7="
).
append
(
segment7
);
sb
.
append
(
", segment8="
).
append
(
segment8
);
sb
.
append
(
", segment9="
).
append
(
segment9
);
sb
.
append
(
", segment10="
).
append
(
segment10
);
sb
.
append
(
", segment1Name="
).
append
(
segment1Name
);
sb
.
append
(
", segment2Name="
).
append
(
segment2Name
);
sb
.
append
(
", segment3Name="
).
append
(
segment3Name
);
sb
.
append
(
", segment4Name="
).
append
(
segment4Name
);
sb
.
append
(
", segment5Name="
).
append
(
segment5Name
);
sb
.
append
(
", segment6Name="
).
append
(
segment6Name
);
sb
.
append
(
", segment7Name="
).
append
(
segment7Name
);
sb
.
append
(
", segment8Name="
).
append
(
segment8Name
);
sb
.
append
(
", segment9Name="
).
append
(
segment9Name
);
sb
.
append
(
", segment10Name="
).
append
(
segment10Name
);
sb
.
append
(
", begBal="
).
append
(
begBal
);
sb
.
append
(
", periodDr="
).
append
(
periodDr
);
sb
.
append
(
", periodCr="
).
append
(
periodCr
);
sb
.
append
(
", endBal="
).
append
(
endBal
);
sb
.
append
(
", qtdDr="
).
append
(
qtdDr
);
sb
.
append
(
", qtdCr="
).
append
(
qtdCr
);
sb
.
append
(
", ytdDr="
).
append
(
ytdDr
);
sb
.
append
(
", ytdCr="
).
append
(
ytdCr
);
sb
.
append
(
", begBalBeq="
).
append
(
begBalBeq
);
sb
.
append
(
", periodDrBeq="
).
append
(
periodDrBeq
);
sb
.
append
(
", periodCrBeq="
).
append
(
periodCrBeq
);
sb
.
append
(
", endBalBeq="
).
append
(
endBalBeq
);
sb
.
append
(
", qtdDrBeq="
).
append
(
qtdDrBeq
);
sb
.
append
(
", qtdCrBeq="
).
append
(
qtdCrBeq
);
sb
.
append
(
", ytdDrBeq="
).
append
(
ytdDrBeq
);
sb
.
append
(
", ytdCrBeq="
).
append
(
ytdCrBeq
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/vat/entity/TrialBalanceFinalExample.java
0 → 100644
View file @
0ed8adc2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/TrialBalanceFinalMapper.xml
View file @
0ed8adc2
<?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.TrialBalanceFinalMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.vat.entity.TrialBalance"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.vat.entity.TrialBalance
Final
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
...
...
@@ -141,7 +141,7 @@
period_dr_beq, period_cr_beq, end_bal_beq, qtd_dr_beq, qtd_cr_beq, ytd_dr_beq, ytd_cr_beq,
create_time, update_time
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalanceExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance
Final
Example"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
...
...
@@ -177,7 +177,7 @@
delete from trial_balance_final
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalanceExample"
>
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance
Final
Example"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
...
...
@@ -187,7 +187,7 @@
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance"
>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance
Final
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
...
...
@@ -231,7 +231,7 @@
#{ytdCrBeq,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance"
>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance
Final
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
...
...
@@ -566,7 +566,7 @@
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalanceExample"
resultType=
"java.lang.Long"
>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance
Final
Example"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
...
...
@@ -814,7 +814,7 @@
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance
Final
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
...
...
@@ -983,7 +983,7 @@
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance"
>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance
Final
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
...
...
@@ -1044,7 +1044,7 @@
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalanceExample"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.vat.entity.TrialBalance
Final
Example"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
...
...
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