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
7dfa62f2
Commit
7dfa62f2
authored
Jun 07, 2018
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add preview java code
parent
11fdae9a
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
1662 additions
and
815 deletions
+1662
-815
CorsFilter.java
...api/src/main/java/pwc/taxtech/atms/common/CorsFilter.java
+1
-1
Constant.java
...api/src/main/java/pwc/taxtech/atms/constant/Constant.java
+1
-0
TBDataImportController.java
...a/pwc/taxtech/atms/controller/TBDataImportController.java
+143
-0
TrialBalanceDto.java
...ain/java/pwc/taxtech/atms/dto/vatdto/TrialBalanceDto.java
+211
-0
TrialBalanceFilter.java
.../java/pwc/taxtech/atms/dto/vatdto/TrialBalanceFilter.java
+168
-0
BusinessUnitServiceImpl.java
...wc/taxtech/atms/service/impl/BusinessUnitServiceImpl.java
+1
-1
CommonServiceImpl.java
...java/pwc/taxtech/atms/service/impl/CommonServiceImpl.java
+1
-1
DimensionServiceImpl.java
...a/pwc/taxtech/atms/service/impl/DimensionServiceImpl.java
+1
-1
MenuServiceImpl.java
...n/java/pwc/taxtech/atms/service/impl/MenuServiceImpl.java
+1
-1
ProjectServiceImpl.java
...ava/pwc/taxtech/atms/service/impl/ProjectServiceImpl.java
+1
-1
RoleServiceImpl.java
...n/java/pwc/taxtech/atms/service/impl/RoleServiceImpl.java
+1
-1
StatisticAttributeServiceImpl.java
...tech/atms/service/impl/StatisticAttributeServiceImpl.java
+1
-1
UserAccountServiceImpl.java
...pwc/taxtech/atms/service/impl/UserAccountServiceImpl.java
+1
-1
UserServiceImpl.java
...n/java/pwc/taxtech/atms/service/impl/UserServiceImpl.java
+1
-1
CompanyBalanceMapper.java
...in/java/pwc/taxtech/atms/vatDao/CompanyBalanceMapper.java
+6
-0
VatStandardAccountMapper.java
...ava/pwc/taxtech/atms/vatDao/VatStandardAccountMapper.java
+6
-0
TBDataImportService.java
...java/pwc/taxtech/atms/vatService/TBDataImportService.java
+11
-0
TBDataImportServiceImpl.java
...taxtech/atms/vatService/impl/TBDataImportServiceImpl.java
+163
-0
VatAbstractService.java
.../pwc/taxtech/atms/vatService/impl/VatAbstractService.java
+19
-0
CompanyBalanceMapper.xml
...esources/pwc/taxtech/atms/vatDao/CompanyBalanceMapper.xml
+440
-388
VatStandardAccountMapper.xml
...rces/pwc/taxtech/atms/vatDao/VatStandardAccountMapper.xml
+467
-401
vatSessionService.js
.../src/main/webapp/app/framework/utils/vatSessionService.js
+5
-4
webservice.js
atms-web/src/main/webapp/app/framework/utils/webservice.js
+4
-4
framework.js
atms-web/src/main/webapp/bundles/framework.js
+8
-8
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/CorsFilter.java
View file @
7dfa62f2
...
...
@@ -25,7 +25,7 @@ public class CorsFilter extends OncePerRequestFilter {
response
.
setHeader
(
"Access-Control-Allow-Credentials"
,
"true"
);
response
.
setHeader
(
"Access-Control-Allow-Methods"
,
"GET, POST, PUT, DELETE, OPTIONS"
);
response
.
setHeader
(
"Access-Control-Allow-Headers"
,
"origin, content-type, accept, x-requested-with, authorization, x-xsrf-token, X-HTTP-Method-Override, withcredentials, access-control-allow-origin"
);
"origin, content-type, accept, x-requested-with, authorization, x-xsrf-token, X-HTTP-Method-Override, withcredentials, access-control-allow-origin
,from
"
);
response
.
setHeader
(
"Access-Control-Allow-Credentials"
,
"true"
);
if
(
"OPTIONS"
.
equalsIgnoreCase
(
request
.
getMethod
()))
{
return
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/constant/Constant.java
View file @
7dfa62f2
...
...
@@ -3,4 +3,5 @@ package pwc.taxtech.atms.constant;
public
final
class
Constant
{
public
static
final
String
Comma
=
","
;
public
static
final
String
Other
=
"其他"
;
public
static
final
int
WholeYear
=
-
1
;
}
atms-api/src/main/java/pwc/taxtech/atms/controller/TBDataImportController.java
0 → 100644
View file @
7dfa62f2
package
pwc
.
taxtech
.
atms
.
controller
;
import
com.alibaba.fastjson.JSONObject
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
pwc.taxtech.atms.dto.vatdto.TrialBalanceDto
;
import
pwc.taxtech.atms.dto.vatdto.TrialBalanceFilter
;
import
pwc.taxtech.atms.vatService.TBDataImportService
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.Comparator
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@RequestMapping
(
value
=
"api/v1/DataImport"
)
@RestController
public
class
TBDataImportController
{
private
final
String
CIT_CATEGORY
=
"CIT"
;
@Autowired
TBDataImportService
tbDataImportService
;
@RequestMapping
(
value
=
"GetBalanceDataForDisplay"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
String
GetBalanceDataForDisplay
(
@RequestBody
JSONObject
param
)
{
String
category
=
param
.
get
(
"category"
).
toString
();
int
fromPeriod
=
Integer
.
parseInt
(
param
.
get
(
"fromPeriod"
).
toString
());
int
toPeriod
=
Integer
.
parseInt
(
param
.
get
(
"toPeriod"
).
toString
());
String
criteria
=
param
.
get
(
"criteria"
).
toString
();
TrialBalanceFilter
filter
=
new
TrialBalanceFilter
();
if
(
StringUtils
.
isBlank
(
criteria
)
&&
!
criteria
.
equals
(
"null"
))
{
JSONObject
jsonObject
=
new
JSONObject
();
filter
=
jsonObject
.
getObject
(
criteria
,
TrialBalanceFilter
.
class
);
}
else
{
filter
=
null
;
}
// String passResponse =
return
""
;
}
private
String
ConvertBalanceDataToUiGridTree
(
int
fromPeriod
,
int
toPeriod
,
TrialBalanceFilter
filter
,
String
category
)
{
String
result
=
""
;
List
<
TrialBalanceDto
>
balanceList
=
new
ArrayList
<>();
if
(
category
.
equals
(
CIT_CATEGORY
))
{
balanceList
=
tbDataImportService
.
getTrialBalanceData
(
fromPeriod
,
toPeriod
);
}
else
{
balanceList
=
tbDataImportService
.
getTrialBalanceStdData
(
fromPeriod
,
toPeriod
);
}
if
(
filter
!=
null
&&
!
balanceList
.
isEmpty
())
{
}
if
(!
balanceList
.
isEmpty
())
{
balanceList
=
balanceList
.
stream
().
sorted
(
Comparator
.
comparing
(
TrialBalanceDto:
:
getAcctCode
).
thenComparing
(
TrialBalanceDto:
:
getAccotCodeLength
)).
collect
(
Collectors
.
toList
());
}
BigDecimal
subTotalBegCreditBal
=
BigDecimal
.
ZERO
;
BigDecimal
subTotalBegDebitBal
=
BigDecimal
.
ZERO
;
BigDecimal
subTotalEndCreditBal
=
BigDecimal
.
ZERO
;
BigDecimal
subTotalEndDebitBal
=
BigDecimal
.
ZERO
;
BigDecimal
subTotalCreditBal
=
BigDecimal
.
ZERO
;
BigDecimal
subTotalDebitBal
=
BigDecimal
.
ZERO
;
List
<
TrialBalanceDto
>
subTotalList
=
new
ArrayList
<>(
balanceList
);
boolean
isFilterEmpty
=
true
;
if
(
filter
!=
null
&&
(
StringUtils
.
isNotBlank
(
filter
.
getAccountCode
())
||
StringUtils
.
isNotBlank
(
filter
.
getAccountName
())
||
filter
.
getAccumulatedCreditAmountFrom
()
!=
null
||
filter
.
getAccumulatedCreditAmountTo
()
!=
null
||
filter
.
getAccumulatedDebitAmountFrom
()
!=
null
||
filter
.
getAccumulatedDebitAmountTo
()
!=
null
||
filter
.
getCreditClosingBalanceFrom
()
!=
null
||
filter
.
getCreditClosingBalanceTo
()
!=
null
||
filter
.
getCreditOpeningBalanceFrom
()
!=
null
||
filter
.
getCreditOpeningBalanceTo
()
!=
null
||
filter
.
getDebitClosingBalanceFrom
()
!=
null
||
filter
.
getDebitClosingBalanceTo
()
!=
null
||
filter
.
getDebitOpeningBalanceFrom
()
!=
null
||
filter
.
getDebitOpeningBalanceTo
()
!=
null
||
filter
.
getDebitClosingBalanceFrom
()
!=
null
))
{
isFilterEmpty
=
false
;
List
<
String
>
primaryList
=
subTotalList
.
stream
().
filter
(
x
->
x
.
getParentCode
().
equals
(
"0"
)).
map
(
TrialBalanceDto:
:
getAcctCode
).
collect
(
Collectors
.
toList
());
if
(!
primaryList
.
isEmpty
())
{
for
(
String
parent
:
primaryList
)
{
int
parentSize
=
parent
.
length
();
subTotalList
.
removeAll
(
subTotalList
.
stream
().
filter
(
x
->
x
.
getAcctCode
().
length
()
!=
parentSize
&&
x
.
getAcctCode
().
length
()
>=
parentSize
&&
x
.
getAcctCode
().
substring
(
0
,
parentSize
).
equals
(
parent
)).
collect
(
Collectors
.
toList
()));
}
if
(!
subTotalList
.
isEmpty
())
{
subTotalBegCreditBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
mapToDouble
(
y
->
y
.
getBegCreditBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalBegDebitBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
mapToDouble
(
y
->
y
.
getBegDebitBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalEndCreditBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
mapToDouble
(
y
->
y
.
getEndCreditBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalEndDebitBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
mapToDouble
(
y
->
y
.
getEndDebitBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalCreditBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
mapToDouble
(
y
->
y
.
getCreditBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalDebitBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
mapToDouble
(
y
->
y
.
getDebitBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
}
}
else
{
subTotalBegCreditBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
mapToDouble
(
y
->
y
.
getBegCreditBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalBegDebitBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
mapToDouble
(
y
->
y
.
getBegDebitBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalEndCreditBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
mapToDouble
(
y
->
y
.
getEndCreditBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalEndDebitBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
mapToDouble
(
y
->
y
.
getEndDebitBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalCreditBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
mapToDouble
(
y
->
y
.
getCreditBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalDebitBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
mapToDouble
(
y
->
y
.
getDebitBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
}
}
else
{
isFilterEmpty
=
true
;
subTotalBegCreditBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
filter
(
x
->
x
.
getParentCode
().
equals
(
"0"
)).
mapToDouble
(
y
->
y
.
getBegCreditBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalBegDebitBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
filter
(
x
->
x
.
getParentCode
().
equals
(
"0"
)).
mapToDouble
(
y
->
y
.
getBegDebitBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalEndCreditBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
filter
(
x
->
x
.
getParentCode
().
equals
(
"0"
)).
mapToDouble
(
y
->
y
.
getEndCreditBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalEndDebitBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
filter
(
x
->
x
.
getParentCode
().
equals
(
"0"
)).
mapToDouble
(
y
->
y
.
getEndDebitBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalCreditBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
filter
(
x
->
x
.
getParentCode
().
equals
(
"0"
)).
mapToDouble
(
y
->
y
.
getCreditBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
subTotalDebitBal
=
BigDecimal
.
valueOf
(
subTotalList
.
stream
().
filter
(
x
->
x
.
getParentCode
().
equals
(
"0"
)).
mapToDouble
(
y
->
y
.
getDebitBal
().
doubleValue
()).
summaryStatistics
().
getSum
());
}
//todo: add the code below here
return
result
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/TrialBalanceDto.java
0 → 100644
View file @
7dfa62f2
package
pwc
.
taxtech
.
atms
.
dto
.
vatdto
;
import
javax.annotation.Nullable
;
import
java.math.BigDecimal
;
public
class
TrialBalanceDto
{
private
String
balanceId
;
private
Integer
periodId
;
private
String
acctCode
;
private
String
customerCode
;
@Nullable
private
BigDecimal
begDebitBal
;
@Nullable
private
BigDecimal
begCreditBal
;
@Nullable
private
BigDecimal
begBal
;
@Nullable
private
BigDecimal
endBal
;
@Nullable
private
BigDecimal
endDebitBal
;
@Nullable
private
BigDecimal
endCreditBal
;
@Nullable
private
BigDecimal
debitBal
;
@Nullable
private
BigDecimal
creditBal
;
private
Integer
monthId
;
@Nullable
private
BigDecimal
yearDebitBal
;
@Nullable
private
BigDecimal
yearCreditBal
;
private
String
parentCode
;
private
String
accountName
;
private
boolean
isDuplicate
;
private
Integer
acctProp
;
private
int
direction
;
public
String
getBalanceId
()
{
return
balanceId
;
}
public
void
setBalanceId
(
String
balanceId
)
{
this
.
balanceId
=
balanceId
;
}
public
Integer
getPeriodId
()
{
return
periodId
;
}
public
void
setPeriodId
(
Integer
periodId
)
{
this
.
periodId
=
periodId
;
}
public
String
getAcctCode
()
{
return
acctCode
;
}
public
int
getAccotCodeLength
(){
return
acctCode
.
length
();
}
public
void
setAcctCode
(
String
acctCode
)
{
this
.
acctCode
=
acctCode
;
}
public
String
getCustomerCode
()
{
return
customerCode
;
}
public
void
setCustomerCode
(
String
customerCode
)
{
this
.
customerCode
=
customerCode
;
}
@Nullable
public
BigDecimal
getBegDebitBal
()
{
return
begDebitBal
;
}
public
void
setBegDebitBal
(
@Nullable
BigDecimal
begDebitBal
)
{
this
.
begDebitBal
=
begDebitBal
;
}
@Nullable
public
BigDecimal
getBegCreditBal
()
{
return
begCreditBal
;
}
public
void
setBegCreditBal
(
@Nullable
BigDecimal
begCreditBal
)
{
this
.
begCreditBal
=
begCreditBal
;
}
@Nullable
public
BigDecimal
getBegBal
()
{
return
begBal
;
}
public
void
setBegBal
(
@Nullable
BigDecimal
begBal
)
{
this
.
begBal
=
begBal
;
}
@Nullable
public
BigDecimal
getEndBal
()
{
return
endBal
;
}
public
void
setEndBal
(
@Nullable
BigDecimal
endBal
)
{
this
.
endBal
=
endBal
;
}
@Nullable
public
BigDecimal
getEndDebitBal
()
{
return
endDebitBal
;
}
public
void
setEndDebitBal
(
@Nullable
BigDecimal
endDebitBal
)
{
this
.
endDebitBal
=
endDebitBal
;
}
@Nullable
public
BigDecimal
getEndCreditBal
()
{
return
endCreditBal
;
}
public
void
setEndCreditBal
(
@Nullable
BigDecimal
endCreditBal
)
{
this
.
endCreditBal
=
endCreditBal
;
}
@Nullable
public
BigDecimal
getDebitBal
()
{
return
debitBal
;
}
public
void
setDebitBal
(
@Nullable
BigDecimal
debitBal
)
{
this
.
debitBal
=
debitBal
;
}
@Nullable
public
BigDecimal
getCreditBal
()
{
return
creditBal
;
}
public
void
setCreditBal
(
@Nullable
BigDecimal
creditBal
)
{
this
.
creditBal
=
creditBal
;
}
public
Integer
getMonthId
()
{
return
monthId
;
}
public
void
setMonthId
(
Integer
monthId
)
{
this
.
monthId
=
monthId
;
}
@Nullable
public
BigDecimal
getYearCreditBal
()
{
return
yearCreditBal
;
}
public
void
setYearCreditBal
(
@Nullable
BigDecimal
yearCreditBal
)
{
this
.
yearCreditBal
=
yearCreditBal
;
}
public
String
getParentCode
()
{
return
parentCode
;
}
public
void
setParentCode
(
String
parentCode
)
{
this
.
parentCode
=
parentCode
;
}
public
String
getAccountName
()
{
return
accountName
;
}
public
void
setAccountName
(
String
accountName
)
{
this
.
accountName
=
accountName
;
}
public
boolean
isDuplicate
()
{
return
isDuplicate
;
}
public
void
setDuplicate
(
boolean
duplicate
)
{
isDuplicate
=
duplicate
;
}
public
Integer
getAcctProp
()
{
return
acctProp
;
}
public
void
setAcctProp
(
Integer
acctProp
)
{
this
.
acctProp
=
acctProp
;
}
public
int
getDirection
()
{
return
direction
;
}
public
void
setDirection
(
int
direction
)
{
this
.
direction
=
direction
;
}
@Nullable
public
BigDecimal
getYearDebitBal
()
{
return
yearDebitBal
;
}
public
void
setYearDebitBal
(
@Nullable
BigDecimal
yearDebitBal
)
{
this
.
yearDebitBal
=
yearDebitBal
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/TrialBalanceFilter.java
0 → 100644
View file @
7dfa62f2
package
pwc
.
taxtech
.
atms
.
dto
.
vatdto
;
import
javax.annotation.Nullable
;
import
java.math.BigDecimal
;
public
class
TrialBalanceFilter
{
private
String
accountCode
;
private
String
accountName
;
@Nullable
private
BigDecimal
debitOpeningBalanceFrom
;
@Nullable
private
BigDecimal
debitOpeningBalanceTo
;
@Nullable
private
BigDecimal
creditOpeningBalanceFrom
;
@Nullable
private
BigDecimal
creditOpeningBalanceTo
;
@Nullable
private
BigDecimal
accumulatedDebitAmountFrom
;
@Nullable
private
BigDecimal
accumulatedDebitAmountTo
;
@Nullable
private
BigDecimal
accumulatedCreditAmountFrom
;
@Nullable
private
BigDecimal
accumulatedCreditAmountTo
;
@Nullable
private
BigDecimal
debitClosingBalanceFrom
;
@Nullable
private
BigDecimal
debitClosingBalanceTo
;
@Nullable
private
BigDecimal
creditClosingBalanceFrom
;
@Nullable
private
BigDecimal
creditClosingBalanceTo
;
@Nullable
private
boolean
hideAllZeroRecords
;
public
String
getAccountCode
()
{
return
accountCode
;
}
public
void
setAccountCode
(
String
accountCode
)
{
this
.
accountCode
=
accountCode
;
}
public
String
getAccountName
()
{
return
accountName
;
}
public
void
setAccountName
(
String
accountName
)
{
this
.
accountName
=
accountName
;
}
@Nullable
public
BigDecimal
getDebitOpeningBalanceFrom
()
{
return
debitOpeningBalanceFrom
;
}
public
void
setDebitOpeningBalanceFrom
(
@Nullable
BigDecimal
debitOpeningBalanceFrom
)
{
this
.
debitOpeningBalanceFrom
=
debitOpeningBalanceFrom
;
}
@Nullable
public
BigDecimal
getDebitOpeningBalanceTo
()
{
return
debitOpeningBalanceTo
;
}
public
void
setDebitOpeningBalanceTo
(
@Nullable
BigDecimal
debitOpeningBalanceTo
)
{
this
.
debitOpeningBalanceTo
=
debitOpeningBalanceTo
;
}
@Nullable
public
BigDecimal
getCreditOpeningBalanceFrom
()
{
return
creditOpeningBalanceFrom
;
}
public
void
setCreditOpeningBalanceFrom
(
@Nullable
BigDecimal
creditOpeningBalanceFrom
)
{
this
.
creditOpeningBalanceFrom
=
creditOpeningBalanceFrom
;
}
@Nullable
public
BigDecimal
getCreditOpeningBalanceTo
()
{
return
creditOpeningBalanceTo
;
}
public
void
setCreditOpeningBalanceTo
(
@Nullable
BigDecimal
creditOpeningBalanceTo
)
{
this
.
creditOpeningBalanceTo
=
creditOpeningBalanceTo
;
}
@Nullable
public
BigDecimal
getAccumulatedDebitAmountFrom
()
{
return
accumulatedDebitAmountFrom
;
}
public
void
setAccumulatedDebitAmountFrom
(
@Nullable
BigDecimal
accumulatedDebitAmountFrom
)
{
this
.
accumulatedDebitAmountFrom
=
accumulatedDebitAmountFrom
;
}
@Nullable
public
BigDecimal
getAccumulatedDebitAmountTo
()
{
return
accumulatedDebitAmountTo
;
}
public
void
setAccumulatedDebitAmountTo
(
@Nullable
BigDecimal
accumulatedDebitAmountTo
)
{
this
.
accumulatedDebitAmountTo
=
accumulatedDebitAmountTo
;
}
@Nullable
public
BigDecimal
getAccumulatedCreditAmountFrom
()
{
return
accumulatedCreditAmountFrom
;
}
public
void
setAccumulatedCreditAmountFrom
(
@Nullable
BigDecimal
accumulatedCreditAmountFrom
)
{
this
.
accumulatedCreditAmountFrom
=
accumulatedCreditAmountFrom
;
}
@Nullable
public
BigDecimal
getAccumulatedCreditAmountTo
()
{
return
accumulatedCreditAmountTo
;
}
public
void
setAccumulatedCreditAmountTo
(
@Nullable
BigDecimal
accumulatedCreditAmountTo
)
{
this
.
accumulatedCreditAmountTo
=
accumulatedCreditAmountTo
;
}
@Nullable
public
BigDecimal
getDebitClosingBalanceFrom
()
{
return
debitClosingBalanceFrom
;
}
public
void
setDebitClosingBalanceFrom
(
@Nullable
BigDecimal
debitClosingBalanceFrom
)
{
this
.
debitClosingBalanceFrom
=
debitClosingBalanceFrom
;
}
@Nullable
public
BigDecimal
getDebitClosingBalanceTo
()
{
return
debitClosingBalanceTo
;
}
public
void
setDebitClosingBalanceTo
(
@Nullable
BigDecimal
debitClosingBalanceTo
)
{
this
.
debitClosingBalanceTo
=
debitClosingBalanceTo
;
}
@Nullable
public
BigDecimal
getCreditClosingBalanceFrom
()
{
return
creditClosingBalanceFrom
;
}
public
void
setCreditClosingBalanceFrom
(
@Nullable
BigDecimal
creditClosingBalanceFrom
)
{
this
.
creditClosingBalanceFrom
=
creditClosingBalanceFrom
;
}
@Nullable
public
BigDecimal
getCreditClosingBalanceTo
()
{
return
creditClosingBalanceTo
;
}
public
void
setCreditClosingBalanceTo
(
@Nullable
BigDecimal
creditClosingBalanceTo
)
{
this
.
creditClosingBalanceTo
=
creditClosingBalanceTo
;
}
@Nullable
public
boolean
isHideAllZeroRecords
()
{
return
hideAllZeroRecords
;
}
public
void
setHideAllZeroRecords
(
@Nullable
boolean
hideAllZeroRecords
)
{
this
.
hideAllZeroRecords
=
hideAllZeroRecords
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/BusinessUnitServiceImpl.java
View file @
7dfa62f2
...
...
@@ -32,7 +32,7 @@ import pwc.taxtech.atms.service.OperationLogService;
import
pwc.taxtech.atms.service.OrganizationService
;
/**
* @see PwC.Tax.Tech.Atms..Admin.Application\Services\
I
mpl\BusinessUnitService.cs
* @see PwC.Tax.Tech.Atms..Admin.Application\Services\
i
mpl\BusinessUnitService.cs
*/
@Service
public
class
BusinessUnitServiceImpl
implements
BusinessUnitService
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CommonServiceImpl.java
View file @
7dfa62f2
...
...
@@ -17,7 +17,7 @@ import pwc.taxtech.atms.dto.epaccount.EnterpriseAccountSetOrgDto;
import
pwc.taxtech.atms.entitiy.MailQueue
;
import
pwc.taxtech.atms.service.CommonService
;
/** @see PwC.Tax.Tech.Atms..Admin.Application\Services\
I
mpl\CommonService.cs */
/** @see PwC.Tax.Tech.Atms..Admin.Application\Services\
i
mpl\CommonService.cs */
@Service
public
class
CommonServiceImpl
implements
CommonService
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DimensionServiceImpl.java
View file @
7dfa62f2
...
...
@@ -58,7 +58,7 @@ import pwc.taxtech.atms.service.DimensionService;
import
pwc.taxtech.atms.service.StatisticAttributeService
;
/**
* @see PwC.Tax.Tech.Atms..Admin.Application\Services\
I
mpl\DimensionService.cs
* @see PwC.Tax.Tech.Atms..Admin.Application\Services\
i
mpl\DimensionService.cs
*/
@Service
public
class
DimensionServiceImpl
extends
AbstractService
implements
DimensionService
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/MenuServiceImpl.java
View file @
7dfa62f2
...
...
@@ -21,7 +21,7 @@ import pwc.taxtech.atms.entitiy.MenuExample;
import
pwc.taxtech.atms.service.MenuService
;
/**
* @see PwC.Tax.Tech.Atms..Admin.Application\Services\
I
mpl\MenuService.cs
* @see PwC.Tax.Tech.Atms..Admin.Application\Services\
i
mpl\MenuService.cs
*/
@Service
public
class
MenuServiceImpl
implements
MenuService
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/ProjectServiceImpl.java
View file @
7dfa62f2
...
...
@@ -39,7 +39,7 @@ import java.util.stream.Collectors;
@Service
public
class
ProjectServiceImpl
implements
ProjectService
{
/**
* @see PwC.Tax.Tech.Atms..Admin.Application\Services\
I
mpl\ProjectService.cs
* @see PwC.Tax.Tech.Atms..Admin.Application\Services\
i
mpl\ProjectService.cs
*/
private
static
final
int
FIRST_OR_DEFAULT
=
0
;
private
static
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
ProjectServiceImpl
.
class
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/RoleServiceImpl.java
View file @
7dfa62f2
...
...
@@ -90,7 +90,7 @@ import pwc.taxtech.atms.service.RoleService;
import
pwc.taxtech.atms.service.UserRoleService
;
import
pwc.taxtech.atms.service.UserService
;
/** @see PwC.Tax.Tech.Atms..Admin.Application\Services\
I
mpl\RoleService.cs */
/** @see PwC.Tax.Tech.Atms..Admin.Application\Services\
i
mpl\RoleService.cs */
@Service
public
class
RoleServiceImpl
extends
AbstractService
implements
RoleService
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/StatisticAttributeServiceImpl.java
View file @
7dfa62f2
...
...
@@ -43,7 +43,7 @@ import pwc.taxtech.atms.service.DimensionService;
import
pwc.taxtech.atms.service.StatisticAttributeService
;
/**
* @see PwC.Tax.Tech.Atms..Admin.Application\Services\
I
mpl\StatisticAttributeService.cs
* @see PwC.Tax.Tech.Atms..Admin.Application\Services\
i
mpl\StatisticAttributeService.cs
*/
@Service
public
class
StatisticAttributeServiceImpl
extends
AbstractService
implements
StatisticAttributeService
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/UserAccountServiceImpl.java
View file @
7dfa62f2
...
...
@@ -48,7 +48,7 @@ import pwc.taxtech.atms.service.CommonService;
import
pwc.taxtech.atms.service.UserAccountService
;
import
pwc.taxtech.atms.service.UserService
;
/** @see PwC.Tax.Tech.Atms..Admin.Application\Services\
I
mpl\UserService.cs */
/** @see PwC.Tax.Tech.Atms..Admin.Application\Services\
i
mpl\UserService.cs */
@Service
public
class
UserAccountServiceImpl
extends
AbstractService
implements
UserAccountService
{
// TODO Move it to constants file
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/UserServiceImpl.java
View file @
7dfa62f2
...
...
@@ -35,7 +35,7 @@ import java.util.stream.Collectors;
import
static
java
.
util
.
stream
.
Collectors
.
toList
;
/**
* @see PwC.Tax.Tech.Atms..Admin.Application\Services\
I
mpl\UserService.cs
* @see PwC.Tax.Tech.Atms..Admin.Application\Services\
i
mpl\UserService.cs
*/
@Service
public
class
UserServiceImpl
extends
AbstractService
implements
UserService
{
...
...
atms-api/src/main/java/pwc/taxtech/atms/vatDao/CompanyBalanceMapper.java
View file @
7dfa62f2
package
pwc
.
taxtech
.
atms
.
vatDao
;
import
java.util.List
;
import
java.util.Map
;
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.dto.vatdto.TrialBalanceDto
;
import
pwc.taxtech.atms.vatEntitiy.CompanyBalance
;
import
pwc.taxtech.atms.vatEntitiy.CompanyBalanceExample
;
...
...
@@ -105,4 +108,6 @@ public interface CompanyBalanceMapper extends MyVatMapper {
* @mbg.generated
*/
int
updateByPrimaryKey
(
CompanyBalance
record
);
List
<
TrialBalanceDto
>
CompanyBalanceLeftJoinEnterpriseAccount
(
@Param
(
"monthMap"
)
Map
<
String
,
Long
>
fromMonth
);
}
\ No newline at end of file
atms-api/src/main/java/pwc/taxtech/atms/vatDao/VatStandardAccountMapper.java
View file @
7dfa62f2
package
pwc
.
taxtech
.
atms
.
vatDao
;
import
java.util.List
;
import
java.util.Map
;
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.dto.vatdto.TrialBalanceDto
;
import
pwc.taxtech.atms.vatEntitiy.VatStandardAccount
;
import
pwc.taxtech.atms.vatEntitiy.VatStandardAccountExample
;
...
...
@@ -105,4 +108,6 @@ public interface VatStandardAccountMapper extends MyVatMapper {
* @mbg.generated
*/
int
updateByPrimaryKey
(
VatStandardAccount
record
);
List
<
TrialBalanceDto
>
selectProjectStandardAccountLeftJoinBalanceStdManual
(
@Param
(
"monthMap"
)
Map
<
String
,
Long
>
fromMonth
);
}
\ No newline at end of file
atms-api/src/main/java/pwc/taxtech/atms/vatService/TBDataImportService.java
0 → 100644
View file @
7dfa62f2
package
pwc
.
taxtech
.
atms
.
vatService
;
import
pwc.taxtech.atms.dto.vatdto.TrialBalanceDto
;
import
java.util.List
;
public
interface
TBDataImportService
{
List
<
TrialBalanceDto
>
getTrialBalanceData
(
int
fromPeriod
,
int
toPeriod
);
List
<
TrialBalanceDto
>
getTrialBalanceStdData
(
int
fromPeriod
,
int
toPeriod
);
}
atms-api/src/main/java/pwc/taxtech/atms/vatService/impl/TBDataImportServiceImpl.java
0 → 100644
View file @
7dfa62f2
package
pwc
.
taxtech
.
atms
.
vatService
.
impl
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Service
;
import
pwc.taxtech.atms.constant.Constant
;
import
pwc.taxtech.atms.dto.vatdto.TrialBalanceDto
;
import
pwc.taxtech.atms.vatService.TBDataImportService
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.stream.Collectors
;
@Service
public
class
TBDataImportServiceImpl
extends
VatAbstractService
implements
TBDataImportService
{
@Override
public
List
<
TrialBalanceDto
>
getTrialBalanceData
(
int
fromPeriod
,
int
toPeriod
)
{
long
fromMonth
=
(
long
)
fromPeriod
;
long
toMonth
=
(
long
)
toPeriod
;
Map
<
String
,
Long
>
monthMap
=
new
HashMap
<>();
monthMap
.
put
(
"fromMonth"
,
fromMonth
);
monthMap
.
put
(
"toMonth"
,
toMonth
);
List
<
TrialBalanceDto
>
queryList
=
companyBalanceMapper
.
CompanyBalanceLeftJoinEnterpriseAccount
(
monthMap
);
List
<
TrialBalanceDto
>
result
=
new
ArrayList
<>();
queryList
.
stream
().
collect
(
Collectors
.
groupingBy
(
TrialBalanceDto:
:
getAcctCode
)).
forEach
((
a
,
b
)
->
{
TrialBalanceDto
item
=
b
.
get
(
0
);
TrialBalanceDto
trialBalanceDto
=
new
TrialBalanceDto
();
trialBalanceDto
.
setAcctCode
(
item
.
getAcctCode
());
trialBalanceDto
.
setCustomerCode
(
item
.
getCustomerCode
());
trialBalanceDto
.
setBegDebitBal
(
item
.
getPeriodId
().
intValue
()
==
fromPeriod
?
item
.
getBegDebitBal
()
:
BigDecimal
.
ZERO
);
trialBalanceDto
.
setBegCreditBal
(
item
.
getPeriodId
().
intValue
()
==
fromPeriod
?
item
.
getBegCreditBal
()
:
BigDecimal
.
ZERO
);
trialBalanceDto
.
setBegBal
(
item
.
getPeriodId
().
intValue
()
==
fromPeriod
?
item
.
getBegBal
()
:
BigDecimal
.
ZERO
);
trialBalanceDto
.
setEndBal
(
item
.
getPeriodId
().
intValue
()
==
toPeriod
?
item
.
getEndBal
()
:
BigDecimal
.
ZERO
);
trialBalanceDto
.
setEndDebitBal
(
item
.
getPeriodId
().
intValue
()
==
toPeriod
?
item
.
getEndDebitBal
()
:
BigDecimal
.
ZERO
);
trialBalanceDto
.
setEndCreditBal
(
item
.
getPeriodId
().
intValue
()
==
toPeriod
?
item
.
getEndCreditBal
()
:
BigDecimal
.
ZERO
);
double
summaryA
=
b
.
stream
().
mapToDouble
(
c
->
c
.
getDebitBal
().
doubleValue
()).
summaryStatistics
().
getSum
();
trialBalanceDto
.
setDebitBal
(
BigDecimal
.
valueOf
(
summaryA
));
double
summaryB
=
b
.
stream
().
mapToDouble
(
c
->
c
.
getCreditBal
().
doubleValue
()).
summaryStatistics
().
getSum
();
trialBalanceDto
.
setCreditBal
(
BigDecimal
.
valueOf
(
summaryB
));
trialBalanceDto
.
setParentCode
(
item
.
getParentCode
());
trialBalanceDto
.
setAccountName
(
item
.
getAccountName
());
trialBalanceDto
.
setAcctProp
(
item
.
getAcctProp
());
trialBalanceDto
.
setDirection
(
item
.
getDirection
());
result
.
add
(
trialBalanceDto
);
});
return
result
;
}
@Override
public
List
<
TrialBalanceDto
>
getTrialBalanceStdData
(
int
fromPeriod
,
int
toPeriod
)
{
long
fromMonth
=
(
long
)
fromPeriod
;
long
toMonth
=
(
long
)
toPeriod
;
Map
<
String
,
Long
>
monthMap
=
new
HashMap
<>();
monthMap
.
put
(
"fromMonth"
,
fromMonth
);
monthMap
.
put
(
"toMonth"
,
toMonth
);
List
<
TrialBalanceDto
>
queryList
=
vatStandardAccountMapper
.
selectProjectStandardAccountLeftJoinBalanceStdManual
(
monthMap
);
List
<
TrialBalanceDto
>
result
=
new
ArrayList
<>();
queryList
.
stream
().
collect
(
Collectors
.
groupingBy
(
TrialBalanceDto:
:
getAcctCode
)).
forEach
((
a
,
b
)
->
{
TrialBalanceDto
item
=
b
.
get
(
0
);
TrialBalanceDto
trialBalanceDto
=
new
TrialBalanceDto
();
trialBalanceDto
.
setAcctCode
(
item
.
getAcctCode
());
trialBalanceDto
.
setCustomerCode
(
item
.
getCustomerCode
());
trialBalanceDto
.
setBegDebitBal
(
item
.
getPeriodId
().
intValue
()
==
fromPeriod
?
item
.
getBegDebitBal
()
:
BigDecimal
.
ZERO
);
trialBalanceDto
.
setBegCreditBal
(
item
.
getPeriodId
().
intValue
()
==
fromPeriod
?
item
.
getBegCreditBal
()
:
BigDecimal
.
ZERO
);
trialBalanceDto
.
setBegBal
(
item
.
getPeriodId
().
intValue
()
==
fromPeriod
?
item
.
getBegBal
()
:
BigDecimal
.
ZERO
);
trialBalanceDto
.
setEndBal
(
item
.
getPeriodId
().
intValue
()
==
toPeriod
?
item
.
getEndBal
()
:
BigDecimal
.
ZERO
);
trialBalanceDto
.
setEndDebitBal
(
item
.
getPeriodId
().
intValue
()
==
toPeriod
?
item
.
getEndDebitBal
()
:
BigDecimal
.
ZERO
);
trialBalanceDto
.
setEndCreditBal
(
item
.
getPeriodId
().
intValue
()
==
toPeriod
?
item
.
getEndCreditBal
()
:
BigDecimal
.
ZERO
);
double
summaryA
=
b
.
stream
().
mapToDouble
(
c
->
c
.
getDebitBal
().
doubleValue
()).
summaryStatistics
().
getSum
();
trialBalanceDto
.
setDebitBal
(
BigDecimal
.
valueOf
(
summaryA
));
double
summaryB
=
b
.
stream
().
mapToDouble
(
c
->
c
.
getCreditBal
().
doubleValue
()).
summaryStatistics
().
getSum
();
trialBalanceDto
.
setCreditBal
(
BigDecimal
.
valueOf
(
summaryB
));
trialBalanceDto
.
setParentCode
(
item
.
getParentCode
());
trialBalanceDto
.
setAccountName
(
item
.
getAccountName
());
trialBalanceDto
.
setAcctProp
(
item
.
getAcctProp
());
trialBalanceDto
.
setDirection
(
item
.
getDirection
());
result
.
add
(
trialBalanceDto
);
});
return
result
;
}
private
List
<
TrialBalanceDto
>
dealNullValue
(
List
<
TrialBalanceDto
>
dataList
)
{
int
BegDebitBal
=
0
,
BegCreditBal
=
0
,
BegBal
=
0
,
EndBal
=
0
;
int
EndDebitBal
=
0
,
EndCreditBal
=
0
,
DebitBal
=
0
,
CreditBal
=
0
,
MonthId
=
0
,
CustomerCode
=
0
;
if
(
dataList
!=
null
&&
!
dataList
.
isEmpty
())
{
if
(
dataList
.
stream
().
anyMatch
(
a
->
a
.
getMonthId
()
!=
null
))
{
MonthId
=
1
;
}
if
(
dataList
.
stream
().
anyMatch
(
a
->
StringUtils
.
isNotBlank
(
a
.
getCustomerCode
())))
{
CustomerCode
=
1
;
}
if
(
dataList
.
stream
().
anyMatch
(
p
->
p
.
getBegDebitBal
()
!=
null
))
{
BegDebitBal
=
1
;
}
if
(
dataList
.
stream
().
anyMatch
(
p
->
p
.
getBegCreditBal
()
!=
null
))
{
BegCreditBal
=
1
;
}
if
(
dataList
.
stream
().
anyMatch
(
p
->
p
.
getBegBal
()
!=
null
))
{
BegBal
=
1
;
}
if
(
dataList
.
stream
().
anyMatch
(
p
->
p
.
getEndBal
()
!=
null
))
{
EndBal
=
1
;
}
if
(
dataList
.
stream
().
anyMatch
(
p
->
p
.
getEndDebitBal
()
!=
null
))
{
EndDebitBal
=
1
;
}
if
(
dataList
.
stream
().
anyMatch
(
p
->
p
.
getEndCreditBal
()
!=
null
))
{
EndCreditBal
=
1
;
}
if
(
dataList
.
stream
().
anyMatch
(
p
->
p
.
getDebitBal
()
!=
null
))
{
DebitBal
=
1
;
}
if
(
dataList
.
stream
().
anyMatch
(
p
->
p
.
getCreditBal
()
!=
null
))
{
CreditBal
=
1
;
}
for
(
TrialBalanceDto
compbalance
:
dataList
)
{
if
(
compbalance
.
getMonthId
()
==
null
&&
MonthId
==
1
)
{
compbalance
.
setMonthId
(
0
);
}
if
(
CustomerCode
==
0
)
{
compbalance
.
setCustomerCode
(
null
);
}
if
(
compbalance
.
getBegDebitBal
()
==
null
&&
BegDebitBal
==
1
)
{
compbalance
.
setBegDebitBal
(
BigDecimal
.
ZERO
);
}
if
(
compbalance
.
getBegCreditBal
()
==
null
&&
BegCreditBal
==
1
)
{
compbalance
.
setBegCreditBal
(
BigDecimal
.
ZERO
);
}
if
(
compbalance
.
getBegBal
()
==
null
&&
BegBal
==
1
)
{
compbalance
.
setBegBal
(
BigDecimal
.
ZERO
);
}
if
(
compbalance
.
getEndBal
()
==
null
&&
EndBal
==
1
)
{
compbalance
.
setEndBal
(
BigDecimal
.
ZERO
);
}
if
(
compbalance
.
getEndDebitBal
()
==
null
&&
EndDebitBal
==
1
)
{
compbalance
.
setEndDebitBal
(
BigDecimal
.
ZERO
);
}
if
(
compbalance
.
getEndCreditBal
()
==
null
&&
EndCreditBal
==
1
)
{
compbalance
.
setEndCreditBal
(
BigDecimal
.
ZERO
);
}
if
(
compbalance
.
getDebitBal
()
==
null
&&
DebitBal
==
1
)
{
compbalance
.
setDebitBal
(
BigDecimal
.
ZERO
);
}
if
(
compbalance
.
getCreditBal
()
==
null
&&
CreditBal
==
1
)
{
compbalance
.
setCreditBal
(
BigDecimal
.
ZERO
);
}
}
}
return
dataList
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/vatService/impl/VatAbstractService.java
0 → 100644
View file @
7dfa62f2
package
pwc
.
taxtech
.
atms
.
vatService
.
impl
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
pwc.taxtech.atms.vatDao.CompanyBalanceMapper
;
import
pwc.taxtech.atms.vatDao.VatEnterpriseAccountMapper
;
import
pwc.taxtech.atms.vatDao.VatStandardAccountMapper
;
public
class
VatAbstractService
{
protected
final
Logger
logger
=
LoggerFactory
.
getLogger
(
this
.
getClass
());
@Autowired
CompanyBalanceMapper
companyBalanceMapper
;
@Autowired
VatEnterpriseAccountMapper
vatEnterpriseAccountMapper
;
@Autowired
VatStandardAccountMapper
vatStandardAccountMapper
;
}
atms-api/src/main/resources/pwc/taxtech/atms/vatDao/CompanyBalanceMapper.xml
View file @
7dfa62f2
<?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.vatDao.CompanyBalanceMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.vatEntitiy.CompanyBalance"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"BalanceId"
jdbcType=
"VARCHAR"
property=
"balanceId"
/>
<result
column=
"PeriodId"
jdbcType=
"INTEGER"
property=
"periodId"
/>
<result
column=
"AcctCode"
jdbcType=
"VARCHAR"
property=
"acctCode"
/>
<result
column=
"CustomerCode"
jdbcType=
"VARCHAR"
property=
"customerCode"
/>
<result
column=
"BegDebitBal"
jdbcType=
"DECIMAL"
property=
"begDebitBal"
/>
<result
column=
"BegCreditBal"
jdbcType=
"DECIMAL"
property=
"begCreditBal"
/>
<result
column=
"BegBal"
jdbcType=
"DECIMAL"
property=
"begBal"
/>
<result
column=
"EndBal"
jdbcType=
"DECIMAL"
property=
"endBal"
/>
<result
column=
"EndDebitBal"
jdbcType=
"DECIMAL"
property=
"endDebitBal"
/>
<result
column=
"EndCreditBal"
jdbcType=
"DECIMAL"
property=
"endCreditBal"
/>
<result
column=
"DebitBal"
jdbcType=
"DECIMAL"
property=
"debitBal"
/>
<result
column=
"CreditBal"
jdbcType=
"DECIMAL"
property=
"creditBal"
/>
<result
column=
"MonthId"
jdbcType=
"INTEGER"
property=
"monthId"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.vatEntitiy.CompanyBalance"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"BalanceId"
jdbcType=
"VARCHAR"
property=
"balanceId"
/>
<result
column=
"PeriodId"
jdbcType=
"INTEGER"
property=
"periodId"
/>
<result
column=
"AcctCode"
jdbcType=
"VARCHAR"
property=
"acctCode"
/>
<result
column=
"CustomerCode"
jdbcType=
"VARCHAR"
property=
"customerCode"
/>
<result
column=
"BegDebitBal"
jdbcType=
"DECIMAL"
property=
"begDebitBal"
/>
<result
column=
"BegCreditBal"
jdbcType=
"DECIMAL"
property=
"begCreditBal"
/>
<result
column=
"BegBal"
jdbcType=
"DECIMAL"
property=
"begBal"
/>
<result
column=
"EndBal"
jdbcType=
"DECIMAL"
property=
"endBal"
/>
<result
column=
"EndDebitBal"
jdbcType=
"DECIMAL"
property=
"endDebitBal"
/>
<result
column=
"EndCreditBal"
jdbcType=
"DECIMAL"
property=
"endCreditBal"
/>
<result
column=
"DebitBal"
jdbcType=
"DECIMAL"
property=
"debitBal"
/>
<result
column=
"CreditBal"
jdbcType=
"DECIMAL"
property=
"creditBal"
/>
<result
column=
"MonthId"
jdbcType=
"INTEGER"
property=
"monthId"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</trim>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
BalanceId, PeriodId, AcctCode, CustomerCode, BegDebitBal, BegCreditBal, BegBal, EndBal,
EndDebitBal, EndCreditBal, DebitBal, CreditBal, MonthId
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalanceExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from CompanyBalance
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from CompanyBalance
where BalanceId = #{balanceId,jdbcType=VARCHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from CompanyBalance
where BalanceId = #{balanceId,jdbcType=VARCHAR}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalanceExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from CompanyBalance
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalance"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into CompanyBalance (BalanceId, PeriodId, AcctCode,
CustomerCode, BegDebitBal, BegCreditBal,
BegBal, EndBal, EndDebitBal,
EndCreditBal, DebitBal, CreditBal,
MonthId)
values (#{balanceId,jdbcType=VARCHAR}, #{periodId,jdbcType=INTEGER}, #{acctCode,jdbcType=VARCHAR},
#{customerCode,jdbcType=VARCHAR}, #{begDebitBal,jdbcType=DECIMAL}, #{begCreditBal,jdbcType=DECIMAL},
#{begBal,jdbcType=DECIMAL}, #{endBal,jdbcType=DECIMAL}, #{endDebitBal,jdbcType=DECIMAL},
#{endCreditBal,jdbcType=DECIMAL}, #{debitBal,jdbcType=DECIMAL}, #{creditBal,jdbcType=DECIMAL},
#{monthId,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalance"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into CompanyBalance
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"balanceId != null"
>
BalanceId,
</if>
<if
test=
"periodId != null"
>
PeriodId,
</if>
<if
test=
"acctCode != null"
>
AcctCode,
</if>
<if
test=
"customerCode != null"
>
CustomerCode,
</if>
<if
test=
"begDebitBal != null"
>
BegDebitBal,
</if>
<if
test=
"begCreditBal != null"
>
BegCreditBal,
</if>
<if
test=
"begBal != null"
>
BegBal,
</if>
<if
test=
"endBal != null"
>
EndBal,
</if>
<if
test=
"endDebitBal != null"
>
EndDebitBal,
</if>
<if
test=
"endCreditBal != null"
>
EndCreditBal,
</if>
<if
test=
"debitBal != null"
>
DebitBal,
</if>
<if
test=
"creditBal != null"
>
CreditBal,
</if>
<if
test=
"monthId != null"
>
MonthId,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"balanceId != null"
>
#{balanceId,jdbcType=VARCHAR},
</if>
<if
test=
"periodId != null"
>
#{periodId,jdbcType=INTEGER},
</if>
<if
test=
"acctCode != null"
>
#{acctCode,jdbcType=VARCHAR},
</if>
<if
test=
"customerCode != null"
>
#{customerCode,jdbcType=VARCHAR},
</if>
<if
test=
"begDebitBal != null"
>
#{begDebitBal,jdbcType=DECIMAL},
</if>
<if
test=
"begCreditBal != null"
>
#{begCreditBal,jdbcType=DECIMAL},
</if>
<if
test=
"begBal != null"
>
#{begBal,jdbcType=DECIMAL},
</if>
<if
test=
"endBal != null"
>
#{endBal,jdbcType=DECIMAL},
</if>
<if
test=
"endDebitBal != null"
>
#{endDebitBal,jdbcType=DECIMAL},
</if>
<if
test=
"endCreditBal != null"
>
#{endCreditBal,jdbcType=DECIMAL},
</if>
<if
test=
"debitBal != null"
>
#{debitBal,jdbcType=DECIMAL},
</if>
<if
test=
"creditBal != null"
>
#{creditBal,jdbcType=DECIMAL},
</if>
<if
test=
"monthId != null"
>
#{monthId,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalanceExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from CompanyBalance
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update CompanyBalance
<set>
<if
test=
"record.balanceId != null"
>
BalanceId = #{record.balanceId,jdbcType=VARCHAR},
</if>
<if
test=
"record.periodId != null"
>
PeriodId = #{record.periodId,jdbcType=INTEGER},
</if>
<if
test=
"record.acctCode != null"
>
AcctCode = #{record.acctCode,jdbcType=VARCHAR},
</if>
<if
test=
"record.customerCode != null"
>
CustomerCode = #{record.customerCode,jdbcType=VARCHAR},
</if>
<if
test=
"record.begDebitBal != null"
>
BegDebitBal = #{record.begDebitBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.begCreditBal != null"
>
BegCreditBal = #{record.begCreditBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.begBal != null"
>
BegBal = #{record.begBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.endBal != null"
>
EndBal = #{record.endBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.endDebitBal != null"
>
EndDebitBal = #{record.endDebitBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.endCreditBal != null"
>
EndCreditBal = #{record.endCreditBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.debitBal != null"
>
DebitBal = #{record.debitBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.creditBal != null"
>
CreditBal = #{record.creditBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.monthId != null"
>
MonthId = #{record.monthId,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
BalanceId, PeriodId, AcctCode, CustomerCode, BegDebitBal, BegCreditBal, BegBal, EndBal,
EndDebitBal, EndCreditBal, DebitBal, CreditBal, MonthId
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalanceExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from CompanyBalance
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from CompanyBalance
where BalanceId = #{balanceId,jdbcType=VARCHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from CompanyBalance
where BalanceId = #{balanceId,jdbcType=VARCHAR}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalanceExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from CompanyBalance
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalance"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into CompanyBalance (BalanceId, PeriodId, AcctCode,
CustomerCode, BegDebitBal, BegCreditBal,
BegBal, EndBal, EndDebitBal,
EndCreditBal, DebitBal, CreditBal,
MonthId)
values (#{balanceId,jdbcType=VARCHAR}, #{periodId,jdbcType=INTEGER}, #{acctCode,jdbcType=VARCHAR},
#{customerCode,jdbcType=VARCHAR}, #{begDebitBal,jdbcType=DECIMAL}, #{begCreditBal,jdbcType=DECIMAL},
#{begBal,jdbcType=DECIMAL}, #{endBal,jdbcType=DECIMAL}, #{endDebitBal,jdbcType=DECIMAL},
#{endCreditBal,jdbcType=DECIMAL}, #{debitBal,jdbcType=DECIMAL}, #{creditBal,jdbcType=DECIMAL},
#{monthId,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalance"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into CompanyBalance
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"balanceId != null"
>
BalanceId,
</if>
<if
test=
"periodId != null"
>
PeriodId,
</if>
<if
test=
"acctCode != null"
>
AcctCode,
</if>
<if
test=
"customerCode != null"
>
CustomerCode,
</if>
<if
test=
"begDebitBal != null"
>
BegDebitBal,
</if>
<if
test=
"begCreditBal != null"
>
BegCreditBal,
</if>
<if
test=
"begBal != null"
>
BegBal,
</if>
<if
test=
"endBal != null"
>
EndBal,
</if>
<if
test=
"endDebitBal != null"
>
EndDebitBal,
</if>
<if
test=
"endCreditBal != null"
>
EndCreditBal,
</if>
<if
test=
"debitBal != null"
>
DebitBal,
</if>
<if
test=
"creditBal != null"
>
CreditBal,
</if>
<if
test=
"monthId != null"
>
MonthId,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"balanceId != null"
>
#{balanceId,jdbcType=VARCHAR},
</if>
<if
test=
"periodId != null"
>
#{periodId,jdbcType=INTEGER},
</if>
<if
test=
"acctCode != null"
>
#{acctCode,jdbcType=VARCHAR},
</if>
<if
test=
"customerCode != null"
>
#{customerCode,jdbcType=VARCHAR},
</if>
<if
test=
"begDebitBal != null"
>
#{begDebitBal,jdbcType=DECIMAL},
</if>
<if
test=
"begCreditBal != null"
>
#{begCreditBal,jdbcType=DECIMAL},
</if>
<if
test=
"begBal != null"
>
#{begBal,jdbcType=DECIMAL},
</if>
<if
test=
"endBal != null"
>
#{endBal,jdbcType=DECIMAL},
</if>
<if
test=
"endDebitBal != null"
>
#{endDebitBal,jdbcType=DECIMAL},
</if>
<if
test=
"endCreditBal != null"
>
#{endCreditBal,jdbcType=DECIMAL},
</if>
<if
test=
"debitBal != null"
>
#{debitBal,jdbcType=DECIMAL},
</if>
<if
test=
"creditBal != null"
>
#{creditBal,jdbcType=DECIMAL},
</if>
<if
test=
"monthId != null"
>
#{monthId,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalanceExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from CompanyBalance
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update CompanyBalance
<set>
<if
test=
"record.balanceId != null"
>
BalanceId = #{record.balanceId,jdbcType=VARCHAR},
</if>
<if
test=
"record.periodId != null"
>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update CompanyBalance
set BalanceId = #{record.balanceId,jdbcType=VARCHAR},
PeriodId = #{record.periodId,jdbcType=INTEGER},
</if>
<if
test=
"record.acctCode != null"
>
AcctCode = #{record.acctCode,jdbcType=VARCHAR},
</if>
<if
test=
"record.customerCode != null"
>
CustomerCode = #{record.customerCode,jdbcType=VARCHAR},
</if>
<if
test=
"record.begDebitBal != null"
>
BegDebitBal = #{record.begDebitBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.begCreditBal != null"
>
BegCreditBal = #{record.begCreditBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.begBal != null"
>
BegBal = #{record.begBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.endBal != null"
>
EndBal = #{record.endBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.endDebitBal != null"
>
EndDebitBal = #{record.endDebitBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.endCreditBal != null"
>
EndCreditBal = #{record.endCreditBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.debitBal != null"
>
DebitBal = #{record.debitBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.creditBal != null"
>
CreditBal = #{record.creditBal,jdbcType=DECIMAL},
</if>
<if
test=
"record.monthId != null"
>
MonthId = #{record.monthId,jdbcType=INTEGER},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update CompanyBalance
set BalanceId = #{record.balanceId,jdbcType=VARCHAR},
PeriodId = #{record.periodId,jdbcType=INTEGER},
AcctCode = #{record.acctCode,jdbcType=VARCHAR},
CustomerCode = #{record.customerCode,jdbcType=VARCHAR},
BegDebitBal = #{record.begDebitBal,jdbcType=DECIMAL},
BegCreditBal = #{record.begCreditBal,jdbcType=DECIMAL},
BegBal = #{record.begBal,jdbcType=DECIMAL},
EndBal = #{record.endBal,jdbcType=DECIMAL},
EndDebitBal = #{record.endDebitBal,jdbcType=DECIMAL},
EndCreditBal = #{record.endCreditBal,jdbcType=DECIMAL},
DebitBal = #{record.debitBal,jdbcType=DECIMAL},
CreditBal = #{record.creditBal,jdbcType=DECIMAL},
MonthId = #{record.monthId,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalance"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update CompanyBalance
<set>
<if
test=
"periodId != null"
>
PeriodId = #{periodId,jdbcType=INTEGER},
</if>
<if
test=
"acctCode != null"
>
MonthId = #{record.monthId,jdbcType=INTEGER}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalance"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update CompanyBalance
<set>
<if
test=
"periodId != null"
>
PeriodId = #{periodId,jdbcType=INTEGER},
</if>
<if
test=
"acctCode != null"
>
AcctCode = #{acctCode,jdbcType=VARCHAR},
</if>
<if
test=
"customerCode != null"
>
CustomerCode = #{customerCode,jdbcType=VARCHAR},
</if>
<if
test=
"begDebitBal != null"
>
BegDebitBal = #{begDebitBal,jdbcType=DECIMAL},
</if>
<if
test=
"begCreditBal != null"
>
BegCreditBal = #{begCreditBal,jdbcType=DECIMAL},
</if>
<if
test=
"begBal != null"
>
BegBal = #{begBal,jdbcType=DECIMAL},
</if>
<if
test=
"endBal != null"
>
EndBal = #{endBal,jdbcType=DECIMAL},
</if>
<if
test=
"endDebitBal != null"
>
EndDebitBal = #{endDebitBal,jdbcType=DECIMAL},
</if>
<if
test=
"endCreditBal != null"
>
EndCreditBal = #{endCreditBal,jdbcType=DECIMAL},
</if>
<if
test=
"debitBal != null"
>
DebitBal = #{debitBal,jdbcType=DECIMAL},
</if>
<if
test=
"creditBal != null"
>
CreditBal = #{creditBal,jdbcType=DECIMAL},
</if>
<if
test=
"monthId != null"
>
MonthId = #{monthId,jdbcType=INTEGER},
</if>
</set>
where BalanceId = #{balanceId,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalance"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update CompanyBalance
set PeriodId = #{periodId,jdbcType=INTEGER},
AcctCode = #{acctCode,jdbcType=VARCHAR},
</if>
<if
test=
"customerCode != null"
>
CustomerCode = #{customerCode,jdbcType=VARCHAR},
</if>
<if
test=
"begDebitBal != null"
>
BegDebitBal = #{begDebitBal,jdbcType=DECIMAL},
</if>
<if
test=
"begCreditBal != null"
>
BegCreditBal = #{begCreditBal,jdbcType=DECIMAL},
</if>
<if
test=
"begBal != null"
>
BegBal = #{begBal,jdbcType=DECIMAL},
</if>
<if
test=
"endBal != null"
>
EndBal = #{endBal,jdbcType=DECIMAL},
</if>
<if
test=
"endDebitBal != null"
>
EndDebitBal = #{endDebitBal,jdbcType=DECIMAL},
</if>
<if
test=
"endCreditBal != null"
>
EndCreditBal = #{endCreditBal,jdbcType=DECIMAL},
</if>
<if
test=
"debitBal != null"
>
DebitBal = #{debitBal,jdbcType=DECIMAL},
</if>
<if
test=
"creditBal != null"
>
CreditBal = #{creditBal,jdbcType=DECIMAL},
</if>
<if
test=
"monthId != null"
>
MonthId = #{monthId,jdbcType=INTEGER},
</if>
</set>
where BalanceId = #{balanceId,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalance"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update CompanyBalance
set PeriodId = #{periodId,jdbcType=INTEGER},
AcctCode = #{acctCode,jdbcType=VARCHAR},
CustomerCode = #{customerCode,jdbcType=VARCHAR},
BegDebitBal = #{begDebitBal,jdbcType=DECIMAL},
BegCreditBal = #{begCreditBal,jdbcType=DECIMAL},
BegBal = #{begBal,jdbcType=DECIMAL},
EndBal = #{endBal,jdbcType=DECIMAL},
EndDebitBal = #{endDebitBal,jdbcType=DECIMAL},
EndCreditBal = #{endCreditBal,jdbcType=DECIMAL},
DebitBal = #{debitBal,jdbcType=DECIMAL},
CreditBal = #{creditBal,jdbcType=DECIMAL},
MonthId = #{monthId,jdbcType=INTEGER}
where BalanceId = #{balanceId,jdbcType=VARCHAR}
</update>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalanceExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from CompanyBalance
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
MonthId = #{monthId,jdbcType=INTEGER}
where BalanceId = #{balanceId,jdbcType=VARCHAR}
</update>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.vatEntitiy.CompanyBalanceExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from CompanyBalance
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<resultMap
id=
"TrialBalanceDto"
type=
"pwc.taxtech.atms.dto.vatdto.TrialBalanceDto"
>
<id
column=
"BalanceId"
jdbcType=
"VARCHAR"
property=
"balanceId"
/>
<result
column=
"PeriodId"
jdbcType=
"INTEGER"
property=
"periodId"
/>
<result
column=
"AcctCode"
jdbcType=
"VARCHAR"
property=
"acctCode"
/>
<result
column=
"CustomerCode"
jdbcType=
"VARCHAR"
property=
"customerCode"
/>
<result
column=
"BegDebitBal"
jdbcType=
"DECIMAL"
property=
"begDebitBal"
/>
<result
column=
"BegCreditBal"
jdbcType=
"DECIMAL"
property=
"begCreditBal"
/>
<result
column=
"BegBal"
jdbcType=
"DECIMAL"
property=
"begBal"
/>
<result
column=
"EndBal"
jdbcType=
"DECIMAL"
property=
"endBal"
/>
<result
column=
"EndDebitBal"
jdbcType=
"DECIMAL"
property=
"endDebitBal"
/>
<result
column=
"EndCreditBal"
jdbcType=
"DECIMAL"
property=
"endCreditBal"
/>
<result
column=
"DebitBal"
jdbcType=
"DECIMAL"
property=
"debitBal"
/>
<result
column=
"CreditBal"
jdbcType=
"DECIMAL"
property=
"creditBal"
/>
<result
column=
"MonthId"
jdbcType=
"INTEGER"
property=
"monthId"
/>
<result
column=
"AccountName"
jdbcType=
"VARCHAR"
property=
"accountName"
/>
</resultMap>
<select
id=
"CompanyBalanceLeftJoinEnterpriseAccount"
resultMap=
"TrialBalanceDto"
>
SELECT DISTINCT
b.BalanceId,
b.PeriodId,
b.AcctCode,
b.CustomerCode,
b.BegDebitBal,
b.BegCreditBal,
b.BegBal,
b.EndBal,
b.EndDebitBal,
b.EndCreditBal,
b.DebitBal,
b.CreditBal,
b.MonthId,
a.`Name` AS AccountName
FROM
CompanyBalance b
LEFT JOIN EnterpriseAccount a ON b.AcctCode = a.AcctCode
WHERE 1=1
<if
test=
"fromMonth!=null"
>
AND b.PeriodID
>
= #{fromMonth,jdbcType=VARCHAR}
</if>
<if
test=
"toMonth!=null"
>
AND b.PeriodID
<
= #{toMonth,jdbcType=VARCHAR}
</if>
ORDER BY
b.PeriodID
</select>
</mapper>
\ No newline at end of file
atms-api/src/main/resources/pwc/taxtech/atms/vatDao/VatStandardAccountMapper.xml
View file @
7dfa62f2
<?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.vatDao.VatStandardAccountMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccount"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"ID"
jdbcType=
"VARCHAR"
property=
"ID"
/>
<result
column=
"Code"
jdbcType=
"VARCHAR"
property=
"code"
/>
<result
column=
"Name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"ParentCode"
jdbcType=
"VARCHAR"
property=
"parentCode"
/>
<result
column=
"FullName"
jdbcType=
"VARCHAR"
property=
"fullName"
/>
<result
column=
"AcctProp"
jdbcType=
"INTEGER"
property=
"acctProp"
/>
<result
column=
"SubProp"
jdbcType=
"INTEGER"
property=
"subProp"
/>
<result
column=
"AcctLevel"
jdbcType=
"INTEGER"
property=
"acctLevel"
/>
<result
column=
"Direction"
jdbcType=
"INTEGER"
property=
"direction"
/>
<result
column=
"IsLeaf"
jdbcType=
"SMALLINT"
property=
"isLeaf"
/>
<result
column=
"RuleType"
jdbcType=
"INTEGER"
property=
"ruleType"
/>
<result
column=
"IsActive"
jdbcType=
"SMALLINT"
property=
"isActive"
/>
<result
column=
"EnglishName"
jdbcType=
"VARCHAR"
property=
"englishName"
/>
<result
column=
"IndustryID"
jdbcType=
"VARCHAR"
property=
"industryID"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccount"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"ID"
jdbcType=
"VARCHAR"
property=
"ID"
/>
<result
column=
"Code"
jdbcType=
"VARCHAR"
property=
"code"
/>
<result
column=
"Name"
jdbcType=
"VARCHAR"
property=
"name"
/>
<result
column=
"ParentCode"
jdbcType=
"VARCHAR"
property=
"parentCode"
/>
<result
column=
"FullName"
jdbcType=
"VARCHAR"
property=
"fullName"
/>
<result
column=
"AcctProp"
jdbcType=
"INTEGER"
property=
"acctProp"
/>
<result
column=
"SubProp"
jdbcType=
"INTEGER"
property=
"subProp"
/>
<result
column=
"AcctLevel"
jdbcType=
"INTEGER"
property=
"acctLevel"
/>
<result
column=
"Direction"
jdbcType=
"INTEGER"
property=
"direction"
/>
<result
column=
"IsLeaf"
jdbcType=
"SMALLINT"
property=
"isLeaf"
/>
<result
column=
"RuleType"
jdbcType=
"INTEGER"
property=
"ruleType"
/>
<result
column=
"IsActive"
jdbcType=
"SMALLINT"
property=
"isActive"
/>
<result
column=
"EnglishName"
jdbcType=
"VARCHAR"
property=
"englishName"
/>
<result
column=
"IndustryID"
jdbcType=
"VARCHAR"
property=
"industryID"
/>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</where>
</sql>
<sql
id=
"Update_By_Example_Where_Clause"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<where>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<if
test=
"criteria.valid"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<choose>
<when
test=
"criterion.noValue"
>
and ${criterion.condition}
</when>
<when
test=
"criterion.singleValue"
>
and ${criterion.condition} #{criterion.value}
</when>
<when
test=
"criterion.betweenValue"
>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when
test=
"criterion.listValue"
>
and ${criterion.condition}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</trim>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
ID, Code, Name, ParentCode, FullName, AcctProp, SubProp, AcctLevel, Direction, IsLeaf,
RuleType, IsActive, EnglishName, IndustryID
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccountExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from StandardAccount
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from StandardAccount
where ID = #{ID,jdbcType=VARCHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from StandardAccount
where ID = #{ID,jdbcType=VARCHAR}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccountExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from StandardAccount
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccount"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into StandardAccount (ID, Code, Name,
ParentCode, FullName, AcctProp,
SubProp, AcctLevel, Direction,
IsLeaf, RuleType, IsActive,
EnglishName, IndustryID)
values (#{ID,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{parentCode,jdbcType=VARCHAR}, #{fullName,jdbcType=VARCHAR}, #{acctProp,jdbcType=INTEGER},
#{subProp,jdbcType=INTEGER}, #{acctLevel,jdbcType=INTEGER}, #{direction,jdbcType=INTEGER},
#{isLeaf,jdbcType=SMALLINT}, #{ruleType,jdbcType=INTEGER}, #{isActive,jdbcType=SMALLINT},
#{englishName,jdbcType=VARCHAR}, #{industryID,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccount"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into StandardAccount
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"ID != null"
>
ID,
</if>
<if
test=
"code != null"
>
Code,
</if>
<if
test=
"name != null"
>
Name,
</if>
<if
test=
"parentCode != null"
>
ParentCode,
</if>
<if
test=
"fullName != null"
>
FullName,
</if>
<if
test=
"acctProp != null"
>
AcctProp,
</if>
<if
test=
"subProp != null"
>
SubProp,
</if>
<if
test=
"acctLevel != null"
>
AcctLevel,
</if>
<if
test=
"direction != null"
>
Direction,
</if>
<if
test=
"isLeaf != null"
>
IsLeaf,
</if>
<if
test=
"ruleType != null"
>
RuleType,
</if>
<if
test=
"isActive != null"
>
IsActive,
</if>
<if
test=
"englishName != null"
>
EnglishName,
</if>
<if
test=
"industryID != null"
>
IndustryID,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"ID != null"
>
#{ID,jdbcType=VARCHAR},
</if>
<if
test=
"code != null"
>
#{code,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"parentCode != null"
>
#{parentCode,jdbcType=VARCHAR},
</if>
<if
test=
"fullName != null"
>
#{fullName,jdbcType=VARCHAR},
</if>
<if
test=
"acctProp != null"
>
#{acctProp,jdbcType=INTEGER},
</if>
<if
test=
"subProp != null"
>
#{subProp,jdbcType=INTEGER},
</if>
<if
test=
"acctLevel != null"
>
#{acctLevel,jdbcType=INTEGER},
</if>
<if
test=
"direction != null"
>
#{direction,jdbcType=INTEGER},
</if>
<if
test=
"isLeaf != null"
>
#{isLeaf,jdbcType=SMALLINT},
</if>
<if
test=
"ruleType != null"
>
#{ruleType,jdbcType=INTEGER},
</if>
<if
test=
"isActive != null"
>
#{isActive,jdbcType=SMALLINT},
</if>
<if
test=
"englishName != null"
>
#{englishName,jdbcType=VARCHAR},
</if>
<if
test=
"industryID != null"
>
#{industryID,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccountExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from StandardAccount
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update StandardAccount
<set>
<if
test=
"record.ID != null"
>
ID = #{record.ID,jdbcType=VARCHAR},
</if>
<if
test=
"record.code != null"
>
Code = #{record.code,jdbcType=VARCHAR},
</if>
<if
test=
"record.name != null"
>
Name = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.parentCode != null"
>
ParentCode = #{record.parentCode,jdbcType=VARCHAR},
</if>
<if
test=
"record.fullName != null"
>
FullName = #{record.fullName,jdbcType=VARCHAR},
</if>
<if
test=
"record.acctProp != null"
>
AcctProp = #{record.acctProp,jdbcType=INTEGER},
</if>
<if
test=
"record.subProp != null"
>
SubProp = #{record.subProp,jdbcType=INTEGER},
</if>
<if
test=
"record.acctLevel != null"
>
AcctLevel = #{record.acctLevel,jdbcType=INTEGER},
</if>
<if
test=
"record.direction != null"
>
Direction = #{record.direction,jdbcType=INTEGER},
</if>
<if
test=
"record.isLeaf != null"
>
IsLeaf = #{record.isLeaf,jdbcType=SMALLINT},
</if>
<if
test=
"record.ruleType != null"
>
RuleType = #{record.ruleType,jdbcType=INTEGER},
</if>
<if
test=
"record.isActive != null"
>
IsActive = #{record.isActive,jdbcType=SMALLINT},
</if>
<if
test=
"record.englishName != null"
>
EnglishName = #{record.englishName,jdbcType=VARCHAR},
</if>
<if
test=
"record.industryID != null"
>
IndustryID = #{record.industryID,jdbcType=VARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</foreach>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
ID, Code, Name, ParentCode, FullName, AcctProp, SubProp, AcctLevel, Direction, IsLeaf,
RuleType, IsActive, EnglishName, IndustryID
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccountExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from StandardAccount
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from StandardAccount
where ID = #{ID,jdbcType=VARCHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from StandardAccount
where ID = #{ID,jdbcType=VARCHAR}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccountExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from StandardAccount
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccount"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into StandardAccount (ID, Code, Name,
ParentCode, FullName, AcctProp,
SubProp, AcctLevel, Direction,
IsLeaf, RuleType, IsActive,
EnglishName, IndustryID)
values (#{ID,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{parentCode,jdbcType=VARCHAR}, #{fullName,jdbcType=VARCHAR}, #{acctProp,jdbcType=INTEGER},
#{subProp,jdbcType=INTEGER}, #{acctLevel,jdbcType=INTEGER}, #{direction,jdbcType=INTEGER},
#{isLeaf,jdbcType=SMALLINT}, #{ruleType,jdbcType=INTEGER}, #{isActive,jdbcType=SMALLINT},
#{englishName,jdbcType=VARCHAR}, #{industryID,jdbcType=VARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccount"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into StandardAccount
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"ID != null"
>
ID,
</if>
<if
test=
"code != null"
>
Code,
</if>
<if
test=
"name != null"
>
Name,
</if>
<if
test=
"parentCode != null"
>
ParentCode,
</if>
<if
test=
"fullName != null"
>
FullName,
</if>
<if
test=
"acctProp != null"
>
AcctProp,
</if>
<if
test=
"subProp != null"
>
SubProp,
</if>
<if
test=
"acctLevel != null"
>
AcctLevel,
</if>
<if
test=
"direction != null"
>
Direction,
</if>
<if
test=
"isLeaf != null"
>
IsLeaf,
</if>
<if
test=
"ruleType != null"
>
RuleType,
</if>
<if
test=
"isActive != null"
>
IsActive,
</if>
<if
test=
"englishName != null"
>
EnglishName,
</if>
<if
test=
"industryID != null"
>
IndustryID,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"ID != null"
>
#{ID,jdbcType=VARCHAR},
</if>
<if
test=
"code != null"
>
#{code,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
#{name,jdbcType=VARCHAR},
</if>
<if
test=
"parentCode != null"
>
#{parentCode,jdbcType=VARCHAR},
</if>
<if
test=
"fullName != null"
>
#{fullName,jdbcType=VARCHAR},
</if>
<if
test=
"acctProp != null"
>
#{acctProp,jdbcType=INTEGER},
</if>
<if
test=
"subProp != null"
>
#{subProp,jdbcType=INTEGER},
</if>
<if
test=
"acctLevel != null"
>
#{acctLevel,jdbcType=INTEGER},
</if>
<if
test=
"direction != null"
>
#{direction,jdbcType=INTEGER},
</if>
<if
test=
"isLeaf != null"
>
#{isLeaf,jdbcType=SMALLINT},
</if>
<if
test=
"ruleType != null"
>
#{ruleType,jdbcType=INTEGER},
</if>
<if
test=
"isActive != null"
>
#{isActive,jdbcType=SMALLINT},
</if>
<if
test=
"englishName != null"
>
#{englishName,jdbcType=VARCHAR},
</if>
<if
test=
"industryID != null"
>
#{industryID,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccountExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from StandardAccount
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update StandardAccount
<set>
<if
test=
"record.ID != null"
>
ID = #{record.ID,jdbcType=VARCHAR},
</if>
<if
test=
"record.code != null"
>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update StandardAccount
set ID = #{record.ID,jdbcType=VARCHAR},
Code = #{record.code,jdbcType=VARCHAR},
</if>
<if
test=
"record.name != null"
>
Name = #{record.name,jdbcType=VARCHAR},
</if>
<if
test=
"record.parentCode != null"
>
ParentCode = #{record.parentCode,jdbcType=VARCHAR},
</if>
<if
test=
"record.fullName != null"
>
FullName = #{record.fullName,jdbcType=VARCHAR},
</if>
<if
test=
"record.acctProp != null"
>
AcctProp = #{record.acctProp,jdbcType=INTEGER},
</if>
<if
test=
"record.subProp != null"
>
SubProp = #{record.subProp,jdbcType=INTEGER},
</if>
<if
test=
"record.acctLevel != null"
>
AcctLevel = #{record.acctLevel,jdbcType=INTEGER},
</if>
<if
test=
"record.direction != null"
>
Direction = #{record.direction,jdbcType=INTEGER},
</if>
<if
test=
"record.isLeaf != null"
>
IsLeaf = #{record.isLeaf,jdbcType=SMALLINT},
</if>
<if
test=
"record.ruleType != null"
>
RuleType = #{record.ruleType,jdbcType=INTEGER},
</if>
<if
test=
"record.isActive != null"
>
IsActive = #{record.isActive,jdbcType=SMALLINT},
</if>
<if
test=
"record.englishName != null"
>
EnglishName = #{record.englishName,jdbcType=VARCHAR},
</if>
<if
test=
"record.industryID != null"
>
IndustryID = #{record.industryID,jdbcType=VARCHAR},
</if>
</set>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update StandardAccount
set ID = #{record.ID,jdbcType=VARCHAR},
Code = #{record.code,jdbcType=VARCHAR},
Name = #{record.name,jdbcType=VARCHAR},
ParentCode = #{record.parentCode,jdbcType=VARCHAR},
FullName = #{record.fullName,jdbcType=VARCHAR},
AcctProp = #{record.acctProp,jdbcType=INTEGER},
SubProp = #{record.subProp,jdbcType=INTEGER},
AcctLevel = #{record.acctLevel,jdbcType=INTEGER},
Direction = #{record.direction,jdbcType=INTEGER},
IsLeaf = #{record.isLeaf,jdbcType=SMALLINT},
RuleType = #{record.ruleType,jdbcType=INTEGER},
IsActive = #{record.isActive,jdbcType=SMALLINT},
EnglishName = #{record.englishName,jdbcType=VARCHAR},
IndustryID = #{record.industryID,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccount"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update StandardAccount
<set>
<if
test=
"code != null"
>
Code = #{code,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
IndustryID = #{record.industryID,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccount"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update StandardAccount
<set>
<if
test=
"code != null"
>
Code = #{code,jdbcType=VARCHAR},
</if>
<if
test=
"name != null"
>
Name = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"parentCode != null"
>
ParentCode = #{parentCode,jdbcType=VARCHAR},
</if>
<if
test=
"fullName != null"
>
FullName = #{fullName,jdbcType=VARCHAR},
</if>
<if
test=
"acctProp != null"
>
AcctProp = #{acctProp,jdbcType=INTEGER},
</if>
<if
test=
"subProp != null"
>
SubProp = #{subProp,jdbcType=INTEGER},
</if>
<if
test=
"acctLevel != null"
>
AcctLevel = #{acctLevel,jdbcType=INTEGER},
</if>
<if
test=
"direction != null"
>
Direction = #{direction,jdbcType=INTEGER},
</if>
<if
test=
"isLeaf != null"
>
IsLeaf = #{isLeaf,jdbcType=SMALLINT},
</if>
<if
test=
"ruleType != null"
>
RuleType = #{ruleType,jdbcType=INTEGER},
</if>
<if
test=
"isActive != null"
>
IsActive = #{isActive,jdbcType=SMALLINT},
</if>
<if
test=
"englishName != null"
>
EnglishName = #{englishName,jdbcType=VARCHAR},
</if>
<if
test=
"industryID != null"
>
IndustryID = #{industryID,jdbcType=VARCHAR},
</if>
</set>
where ID = #{ID,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccount"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update StandardAccount
set Code = #{code,jdbcType=VARCHAR},
Name = #{name,jdbcType=VARCHAR},
</if>
<if
test=
"parentCode != null"
>
ParentCode = #{parentCode,jdbcType=VARCHAR},
</if>
<if
test=
"fullName != null"
>
FullName = #{fullName,jdbcType=VARCHAR},
</if>
<if
test=
"acctProp != null"
>
AcctProp = #{acctProp,jdbcType=INTEGER},
</if>
<if
test=
"subProp != null"
>
SubProp = #{subProp,jdbcType=INTEGER},
</if>
<if
test=
"acctLevel != null"
>
AcctLevel = #{acctLevel,jdbcType=INTEGER},
</if>
<if
test=
"direction != null"
>
Direction = #{direction,jdbcType=INTEGER},
</if>
<if
test=
"isLeaf != null"
>
IsLeaf = #{isLeaf,jdbcType=SMALLINT},
</if>
<if
test=
"ruleType != null"
>
RuleType = #{ruleType,jdbcType=INTEGER},
</if>
<if
test=
"isActive != null"
>
IsActive = #{isActive,jdbcType=SMALLINT},
</if>
<if
test=
"englishName != null"
>
EnglishName = #{englishName,jdbcType=VARCHAR},
</if>
<if
test=
"industryID != null"
>
IndustryID = #{industryID,jdbcType=VARCHAR},
</if>
</set>
where ID = #{ID,jdbcType=VARCHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccount"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update StandardAccount
set Code = #{code,jdbcType=VARCHAR},
Name = #{name,jdbcType=VARCHAR},
ParentCode = #{parentCode,jdbcType=VARCHAR},
FullName = #{fullName,jdbcType=VARCHAR},
AcctProp = #{acctProp,jdbcType=INTEGER},
SubProp = #{subProp,jdbcType=INTEGER},
AcctLevel = #{acctLevel,jdbcType=INTEGER},
Direction = #{direction,jdbcType=INTEGER},
IsLeaf = #{isLeaf,jdbcType=SMALLINT},
RuleType = #{ruleType,jdbcType=INTEGER},
IsActive = #{isActive,jdbcType=SMALLINT},
EnglishName = #{englishName,jdbcType=VARCHAR},
IndustryID = #{industryID,jdbcType=VARCHAR}
where ID = #{ID,jdbcType=VARCHAR}
</update>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccountExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from StandardAccount
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
IndustryID = #{industryID,jdbcType=VARCHAR}
where ID = #{ID,jdbcType=VARCHAR}
</update>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.vatEntitiy.VatStandardAccountExample"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<if
test=
"distinct"
>
distinct
</if>
<include
refid=
"Base_Column_List"
/>
from StandardAccount
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
<resultMap
id=
"TrialBalanceDto"
type=
"pwc.taxtech.atms.dto.vatdto.TrialBalanceDto"
>
<id
column=
"BalanceId"
jdbcType=
"VARCHAR"
property=
"balanceId"
/>
<result
column=
"PeriodId"
jdbcType=
"INTEGER"
property=
"periodId"
/>
<result
column=
"AcctCode"
jdbcType=
"VARCHAR"
property=
"acctCode"
/>
<result
column=
"CustomerCode"
jdbcType=
"VARCHAR"
property=
"customerCode"
/>
<result
column=
"BegDebitBal"
jdbcType=
"DECIMAL"
property=
"begDebitBal"
/>
<result
column=
"BegBal"
jdbcType=
"DECIMAL"
property=
"begBal"
/>
<result
column=
"EndBal"
jdbcType=
"DECIMAL"
property=
"endBal"
/>
<result
column=
"EndDebitBal"
jdbcType=
"DECIMAL"
property=
"endDebitBal"
/>
<result
column=
"EndCreditBal"
jdbcType=
"DECIMAL"
property=
"endCreditBal"
/>
<result
column=
"DebitBal"
jdbcType=
"DECIMAL"
property=
"debitBal"
/>
<result
column=
"CreditBal"
jdbcType=
"DECIMAL"
property=
"creditBal"
/>
<result
column=
"MonthId"
jdbcType=
"INTEGER"
property=
"monthId"
/>
<result
column=
"YearDebitBal"
jdbcType=
"DECIMAL"
property=
"yearDebitBal"
/>
<result
column=
"ParentCode"
jdbcType=
"VARCHAR"
property=
"parentCode"
/>
<result
column=
"AccountName"
jdbcType=
"VARCHAR"
property=
"accountName"
/>
<result
column=
"IsDuplicate"
jdbcType=
"SMALLINT"
property=
"isDuplicate"
/>
<result
column=
"AcctProp"
jdbcType=
"INTEGER"
property=
"acctProp"
/>
<result
column=
"Direction"
jdbcType=
"INTEGER"
property=
"direction"
/>
</resultMap>
<select
id=
"selectProjectStandardAccountLeftJoinBalanceStdManual"
resultMap=
"TrialBalanceDto"
parameterType=
"map"
>
SELECT DISTINCT
b.PeriodID,
b.AcctCode,
'' AS CustomerCode,
b.BegDebitBal,
b.BegCreditBal,
b.BegBal,
b.EndBal,
b.EndDebitBal,
b.EndCreditBal,
b.DebitBal,
b.CreditBal,
b.PeriodID AS MonthId,
b.YearDebitBal,
b.YearCreditBal,
IF (
ISNULL(a.ParentCode) || a.ParentCode = '',
'0',
a.ParentCode
) AS ParentCode,
a.`Name` AS AccountName,
a.AcctProp,
a.Direction
FROM
StandardAccount a
JOIN BalanceStdManual b ON a.`Code` = b.AcctCode
WHERE 1=1
<if
test=
"fromMonth!=null"
>
AND b.PeriodID
>
= #{fromMonth,jdbcType=VARCHAR}
</if>
<if
test=
"toMonth!=null"
>
AND b.PeriodID
<
= #{toMonth,jdbcType=VARCHAR}
</if>
ORDER BY
b.PeriodID
</select>
</mapper>
\ No newline at end of file
atms-web/src/main/webapp/app/framework/utils/vatSessionService.js
View file @
7dfa62f2
...
...
@@ -47,15 +47,15 @@
}
var
setProperty
=
function
(
propertyName
,
propertyValue
)
{
cacheObj
[
propertyName
]
=
propertyValue
cacheObj
[
propertyName
]
=
propertyValue
;
//$cookieStore.put('tesla-cache', JSON.stringify(apiTokenObj));
localStorageService
.
set
(
'tesla-cache'
,
cacheObj
);
}
}
;
var
getProperty
=
function
(
propertyName
)
{
//console.log($cookieStore.get('tesla-cache'));
return
cacheObj
[
propertyName
];
}
}
;
// 跳转到admin或者outputinvoice management 需要清空所选择的project,不然会影响权限
var
clearSelectProject
=
function
()
{
...
...
@@ -76,6 +76,6 @@
queryDto
:
queryDto
,
setProperty
:
setProperty
,
getProperty
:
getProperty
,
clearSelectProject
:
clearSelectProject
,
clearSelectProject
:
clearSelectProject
}
}]);
\ No newline at end of file
atms-web/src/main/webapp/app/framework/utils/webservice.js
View file @
7dfa62f2
...
...
@@ -169,11 +169,11 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService',
cfg
.
isWebApiRequest
=
true
;
if
(
config
&&
config
.
dbName
)
{
//TODO:from is not allowed ,future should open (neo)
//
cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
cfg
.
headers
=
{
'from'
:
config
.
dbName
+
'@cn.pwc.com'
};
}
else
{
if
(
vatSessionService
.
project
&&
vatSessionService
.
project
.
dbName
)
{
//
cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' };
cfg
.
headers
=
{
'from'
:
vatSessionService
.
project
.
dbName
+
'@cn.pwc.com'
};
}
}
return
cfg
;
...
...
@@ -189,10 +189,10 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService',
cfg
.
isWebApiRequest
=
true
;
if
(
config
&&
config
.
dbName
)
{
//
cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
cfg
.
headers
=
{
'from'
:
config
.
dbName
+
'@cn.pwc.com'
};
}
else
{
//
cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' };
cfg
.
headers
=
{
'from'
:
vatSessionService
.
project
.
dbName
+
'@cn.pwc.com'
};
}
//$httpProvider.defaults.headers.common['from'] = vatSessionService.project.dbName + '@cn.pwc.com';
//cfg.headers.from = vatSessionService.project.dbName+'@cn.pwc.com';
...
...
atms-web/src/main/webapp/bundles/framework.js
View file @
7dfa62f2
...
...
@@ -4398,15 +4398,15 @@ webservices.factory('vatSessionService', ['$log', 'localStorageService', functio
}
var
setProperty
=
function
(
propertyName
,
propertyValue
)
{
cacheObj
[
propertyName
]
=
propertyValue
cacheObj
[
propertyName
]
=
propertyValue
;
//$cookieStore.put('tesla-cache', JSON.stringify(apiTokenObj));
localStorageService
.
set
(
'tesla-cache'
,
cacheObj
);
}
}
;
var
getProperty
=
function
(
propertyName
)
{
//console.log($cookieStore.get('tesla-cache'));
return
cacheObj
[
propertyName
];
}
}
;
// 跳转到admin或者outputinvoice management 需要清空所选择的project,不然会影响权限
var
clearSelectProject
=
function
()
{
...
...
@@ -4427,7 +4427,7 @@ webservices.factory('vatSessionService', ['$log', 'localStorageService', functio
queryDto
:
queryDto
,
setProperty
:
setProperty
,
getProperty
:
getProperty
,
clearSelectProject
:
clearSelectProject
,
clearSelectProject
:
clearSelectProject
}
}]);
/// <reference path="../../app.js" />
...
...
@@ -4601,11 +4601,11 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService',
cfg
.
isWebApiRequest
=
true
;
if
(
config
&&
config
.
dbName
)
{
//TODO:from is not allowed ,future should open (neo)
//
cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
cfg
.
headers
=
{
'from'
:
config
.
dbName
+
'@cn.pwc.com'
};
}
else
{
if
(
vatSessionService
.
project
&&
vatSessionService
.
project
.
dbName
)
{
//
cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' };
cfg
.
headers
=
{
'from'
:
vatSessionService
.
project
.
dbName
+
'@cn.pwc.com'
};
}
}
return
cfg
;
...
...
@@ -4621,10 +4621,10 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService',
cfg
.
isWebApiRequest
=
true
;
if
(
config
&&
config
.
dbName
)
{
//
cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
cfg
.
headers
=
{
'from'
:
config
.
dbName
+
'@cn.pwc.com'
};
}
else
{
//
cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' };
cfg
.
headers
=
{
'from'
:
vatSessionService
.
project
.
dbName
+
'@cn.pwc.com'
};
}
//$httpProvider.defaults.headers.common['from'] = vatSessionService.project.dbName + '@cn.pwc.com';
//cfg.headers.from = vatSessionService.project.dbName+'@cn.pwc.com';
...
...
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