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
e7c526d4
Commit
e7c526d4
authored
Mar 28, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CIT分配表的生成,固资的生成
parent
b3f395d4
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
3189 additions
and
207 deletions
+3189
-207
JxlsUtils.java
...src/main/java/pwc/taxtech/atms/common/util/JxlsUtils.java
+3
-2
CitReportController.java
...java/pwc/taxtech/atms/controller/CitReportController.java
+20
-0
CitDistributionDto.java
...rc/main/java/pwc/taxtech/atms/dto/CitDistributionDto.java
+31
-0
TableRule.java
atms-api/src/main/java/pwc/taxtech/atms/dto/TableRule.java
+1
-0
CitReportServiceImpl.java
...a/pwc/taxtech/atms/service/impl/CitReportServiceImpl.java
+162
-145
A202000.xlsx
atms-api/src/main/resources/cit_excel_template/A202000.xlsx
+0
-0
assetEamMapping.xlsx
...rc/main/resources/cit_excel_template/assetEamMapping.xlsx
+0
-0
generatorConfig.xml
atms-dao/etc/generator-mysql/generatorConfig.xml
+11
-1
CitAssetEamMappingMapper.java
...n/java/pwc/taxtech/atms/dao/CitAssetEamMappingMapper.java
+112
-0
CitAssetsListMapper.java
...c/main/java/pwc/taxtech/atms/dao/CitAssetsListMapper.java
+2
-2
CitAssetEamMappingDto.java
...main/java/pwc/taxtech/atms/dpo/CitAssetEamMappingDto.java
+0
-23
CitAssetEamMapping.java
...main/java/pwc/taxtech/atms/entity/CitAssetEamMapping.java
+1621
-0
CitAssetEamMappingExample.java
...va/pwc/taxtech/atms/entity/CitAssetEamMappingExample.java
+0
-0
CitAssetEamMappingMapper.xml
...sources/pwc/taxtech/atms/dao/CitAssetEamMappingMapper.xml
+916
-0
CitAssetEamMappingExtendsMapper.xml
...tech/atms/dao/extends/CitAssetEamMappingExtendsMapper.xml
+193
-0
CitAssetsListExtendsMapper.xml
...c/taxtech/atms/dao/extends/CitAssetsListExtendsMapper.xml
+3
-2
cit.json
atms-web/src/main/webapp/app-resources/i18n/en-us/cit.json
+3
-1
cit.json
atms-web/src/main/webapp/app-resources/i18n/zh-CN/cit.json
+2
-1
cit-asset-eam-mapping.ctrl.js
...ction/cit-asset-eam-mapping/cit-asset-eam-mapping.ctrl.js
+12
-0
cit-asset-eam-mapping.html
...eduction/cit-asset-eam-mapping/cit-asset-eam-mapping.html
+8
-1
cit-asset-eam-mapping.less
...eduction/cit-asset-eam-mapping/cit-asset-eam-mapping.less
+38
-0
cit-distribution-table.ctrl.js
...ion/cit-distribution-table/cit-distribution-table.ctrl.js
+44
-29
citReport.svc.js
...b/src/main/webapp/app/common/webservices/citReport.svc.js
+7
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/util/JxlsUtils.java
View file @
e7c526d4
...
...
@@ -27,6 +27,7 @@ import java.util.*;
*/
public
class
JxlsUtils
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
JxlsUtils
.
class
);
public
static
String
sheetName
=
"汇总表"
;
public
static
void
toPackageOs
(
HttpServletResponse
response
,
String
fileName
)
{
ResponseUtil
.
response
(
response
,
fileName
,
null
);
...
...
@@ -81,8 +82,8 @@ public class JxlsUtils {
AreaBuilder
areaBuilder
=
new
XlsCommentAreaBuilder
(
trans
);
List
<
Area
>
areaList
=
areaBuilder
.
build
();
areaList
.
get
(
0
).
applyAt
(
new
CellRef
(
"汇总表
!A1"
),
context
);
//"汇总表!A1"
areaList
.
get
(
0
).
applyAt
(
new
CellRef
(
sheetName
+
"
!A1"
),
context
);
try
{
trans
.
write
();
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/CitReportController.java
View file @
e7c526d4
...
...
@@ -86,6 +86,26 @@ public class CitReportController {
}
}
/**
* 生成CIT固资损失计算
* @return
*/
@RequestMapping
(
value
=
"generateAssetEamMapping"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
ApiResultDto
generateAssetEamMapping
(
@RequestBody
CitAssetsListDto
citAssetsListDto
)
{
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
try
{
apiResultDto
.
setCode
(
1
);
apiResultDto
.
setMessage
(
"生成成功"
);
apiResultDto
.
setData
(
citReportService
.
generateAssetEamMapping
(
citAssetsListDto
));
return
apiResultDto
;
}
catch
(
Exception
e
){
e
.
printStackTrace
();
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setMessage
(
"生成失败"
);
return
apiResultDto
;
}
}
/**
* 获取当前卡片所拥有的模板
* @param projectId
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/CitDistributionDto.java
View file @
e7c526d4
...
...
@@ -229,6 +229,37 @@ public class CitDistributionDto implements Serializable {
private
PagingDto
pageInfo
;
//营业收入合计变量
private
BigDecimal
totalBusinessIncome
;
//职工薪酬合计变量
private
BigDecimal
totalEmployeeRemuneration
;
//资产总额合计变量
private
BigDecimal
totalTotalAssets
;
public
BigDecimal
getTotalBusinessIncome
()
{
return
totalBusinessIncome
;
}
public
void
setTotalBusinessIncome
(
BigDecimal
totalBusinessIncome
)
{
this
.
totalBusinessIncome
=
totalBusinessIncome
;
}
public
BigDecimal
getTotalEmployeeRemuneration
()
{
return
totalEmployeeRemuneration
;
}
public
void
setTotalEmployeeRemuneration
(
BigDecimal
totalEmployeeRemuneration
)
{
this
.
totalEmployeeRemuneration
=
totalEmployeeRemuneration
;
}
public
BigDecimal
getTotalTotalAssets
()
{
return
totalTotalAssets
;
}
public
void
setTotalTotalAssets
(
BigDecimal
totalTotalAssets
)
{
this
.
totalTotalAssets
=
totalTotalAssets
;
}
public
PagingDto
getPageInfo
()
{
return
pageInfo
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/TableRule.java
View file @
e7c526d4
...
...
@@ -28,6 +28,7 @@ public class TableRule {
map
.
put
(
"CITZCFZB"
,
"cit_balance_sheet_prc_adjust"
);
map
.
put
(
"CITLRB"
,
"cit_profit_prc_adjust"
);
map
.
put
(
"CIT_TBAM"
,
"cit_tbam"
);
map
.
put
(
"cit_asset_eam_mapping"
,
"cit_asset_eam_mapping"
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CitReportServiceImpl.java
View file @
e7c526d4
...
...
@@ -16,17 +16,14 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.web.multipart.MultipartFile
;
import
pwc.taxtech.atms.common.CommonUtils
;
import
pwc.taxtech.atms.common.util.DataUtil
;
import
pwc.taxtech.atms.common.util.FileUploadUtil
;
import
pwc.taxtech.atms.common.util.JxlsUtils
;
import
pwc.taxtech.atms.common.util.MyAsserts
;
import
pwc.taxtech.atms.common.util.SpringContextUtil
;
import
pwc.taxtech.atms.constant.Constant
;
import
pwc.taxtech.atms.constant.enums.*
;
import
pwc.taxtech.atms.dao.*
;
import
pwc.taxtech.atms.dpo.CitAssetEamMappingDto
;
import
pwc.taxtech.atms.dpo.ReportDto
;
import
pwc.taxtech.atms.dto.*
;
import
pwc.taxtech.atms.dto.export.ExportDto
;
...
...
@@ -44,12 +41,8 @@ import pwc.taxtech.atms.vat.service.impl.report.functions.FormulaHelper;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.File
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
java.util.concurrent.BlockingQueue
;
import
java.util.concurrent.LinkedBlockingQueue
;
import
java.util.concurrent.locks.LockSupport
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
java.util.stream.Collectors
;
...
...
@@ -131,6 +124,10 @@ public class CitReportServiceImpl extends BaseService {
private
CitDistributionMapper
citDistributionMapper
;
@Autowired
private
CitTbamMapper
citTbamMapper
;
@Autowired
private
ReportAnalysisService
reportAnalysisService
;
@Autowired
private
CitAssetEamMappingMapper
citAssetEamMappingMapper
;
public
OperationResultDto
<
List
<
ReportDto
>>
getReportTemplate
(
String
projectId
,
EnumServiceType
serviceType
,
Integer
period
)
{
...
...
@@ -735,30 +732,53 @@ public class CitReportServiceImpl extends BaseService {
public
PageInfo
<
CitAssetsListDto
>
getAssetEamMappingPage
(
CitAssetsListDto
citAssetsListDto
)
throws
Exception
{
logger
.
debug
(
"获取固定资产及EAM Mapping的数据"
);
Page
page
=
PageHelper
.
startPage
(
citAssetsListDto
.
getPageInfo
().
getPageIndex
(),
citAssetsListDto
.
getPageInfo
().
getPageSize
());
CitAsset
sList
citAssetsList
=
new
CitAssetsList
();
BeanUtils
.
copyProperties
(
citAssetsListDto
,
citAssetsList
);
List
<
CitAssetEamMapping
Dto
>
citAssetsLists
=
assetsListMapper
.
getAssetEamMapping
(
citAssetsList
);
CitAsset
EamMappingExample
example
=
new
CitAssetEamMappingExample
();
example
.
createCriteria
().
andProjectIdEqualTo
(
citAssetsListDto
.
getProjectId
()
);
List
<
CitAssetEamMapping
>
citAssetEamMappings
=
citAssetEamMappingMapper
.
selectByExample
(
example
);
List
<
CitAssetsListDto
>
citAssetsListDtos
=
new
ArrayList
<>();
citAssetsListDtos
=
assetToAssetEamMapping
(
citAssetsListDtos
,
citAssetsLists
);
// for (CitAssetsList citAssetsListTemp:citAssetsLists){
// CitAssetsListDto temp = new CitAssetsListDto();
// BeanUtils.copyProperties(citAssetsListTemp,temp);
//
// //计算处置损益 处置/赔偿收入-账面净值(年终剩余价值)
// temp.setDisposalProfitAndLoss(temp.getCompensationSaleAmount().subtract(temp.getYearEndValue()));
// //计算资产的税务净值 taxNetValue 原值-累计税务折旧/摊销
// temp.setTaxNetValue(temp.getAcquisitionValue().subtract(temp.getTaxToCurrentYearDepreciationAmount()));
// //处置的税收损益 处置/赔偿收入-资产的税务净值
// temp.setDisposalTaxBenefit(temp.getCompensationSaleAmount().subtract(temp.getTaxNetValue()));
// citAssetsListDtos.add(temp);
// }
for
(
CitAssetEamMapping
citAssetEamMapping
:
citAssetEamMappings
)
{
CitAssetsListDto
citAssetsListDtoTemp
=
new
CitAssetsListDto
();
BeanUtils
.
copyProperties
(
citAssetEamMapping
,
citAssetsListDtoTemp
);
citAssetsListDtos
.
add
(
citAssetsListDtoTemp
);
}
PageInfo
<
CitAssetsListDto
>
pageInfo
=
new
PageInfo
<>(
citAssetsListDtos
);
pageInfo
.
setTotal
(
page
.
getTotal
());
pageInfo
.
setPageNum
(
citAssetsListDto
.
getPageInfo
().
getPageIndex
());
return
pageInfo
;
}
/**
* 固资申报表导出(第二种方式)--正在使用
*
* @param citAssetsListDto
* @param response
* @return
*/
public
int
exportAEMData2
(
CitAssetsListDto
citAssetsListDto
,
HttpServletResponse
response
)
{
CitAssetEamMappingExample
example
=
new
CitAssetEamMappingExample
();
example
.
createCriteria
().
andProjectIdEqualTo
(
citAssetsListDto
.
getProjectId
());
List
<
CitAssetEamMapping
>
citAssetEamMappings
=
citAssetEamMappingMapper
.
selectByExample
(
example
);
if
(
citAssetEamMappings
.
size
()
==
0
)
{
return
0
;
}
List
<
CitAssetsListDto
>
citAssetsListDtos
=
new
ArrayList
<>();
for
(
CitAssetEamMapping
citAssetEamMapping
:
citAssetEamMappings
)
{
CitAssetsListDto
citAssetsListDtoTemp
=
new
CitAssetsListDto
();
BeanUtils
.
copyProperties
(
citAssetEamMapping
,
citAssetsListDtoTemp
);
citAssetsListDtos
.
add
(
citAssetsListDtoTemp
);
}
ExportDto
exportDto
=
new
ExportDto
();
exportDto
.
setFileName
(
"固资申报表"
);
exportDto
.
setTemplateUrl
(
Constant
.
citTemplateUrl
+
"/assetEamMapping.xlsx"
);
exportDto
.
setResponse
(
response
);
exportDto
.
setList
(
citAssetsListDtos
);
exportDto
.
setRelation
(
null
);
JxlsUtils
.
sheetName
=
"固资申报表"
;
JxlsUtils
.
export
(
exportDto
);
return
1
;
}
/**
* 获取分配表的数据
*/
...
...
@@ -767,6 +787,7 @@ public class CitReportServiceImpl extends BaseService {
Page
page
=
PageHelper
.
startPage
(
citDistributionDto
.
getPageInfo
().
getPageIndex
(),
citDistributionDto
.
getPageInfo
().
getPageSize
());
CitDistributionExample
example
=
new
CitDistributionExample
();
example
.
createCriteria
().
andProjectIdEqualTo
(
citDistributionDto
.
getProjectId
());
example
.
setOrderByClause
(
"code ASC"
);
List
<
CitDistribution
>
citDistributionList
=
citDistributionMapper
.
selectByExample
(
example
);
List
<
CitDistributionDto
>
citDistributionDtos
=
new
ArrayList
<>();
citDistributionList
.
stream
().
forEach
(
citDistribution
->
{
...
...
@@ -791,6 +812,7 @@ public class CitReportServiceImpl extends BaseService {
public
int
exportDTData2
(
CitDistributionDto
citDistributionDto
,
HttpServletResponse
response
)
{
CitDistributionExample
example
=
new
CitDistributionExample
();
example
.
createCriteria
().
andProjectIdEqualTo
(
citDistributionDto
.
getProjectId
());
example
.
setOrderByClause
(
"code ASC"
);
List
<
CitDistribution
>
citDistributionList
=
citDistributionMapper
.
selectByExample
(
example
);
List
<
CitDistributionDto
>
citDistributionDtos
=
new
ArrayList
<>();
citDistributionList
.
stream
().
forEach
(
citDistribution
->
{
...
...
@@ -803,53 +825,12 @@ public class CitReportServiceImpl extends BaseService {
exportDto
.
setTemplateUrl
(
Constant
.
citTemplateUrl
+
"/A202000.xlsx"
);
exportDto
.
setResponse
(
response
);
exportDto
.
setList
(
citDistributionDtos
);
exportDto
.
setRelation
(
null
);
JxlsUtils
.
export
(
exportDto
);
return
1
;
}
/**
* 固资申报表导出(第二种方式)--正在使用
*
* @param citAssetsListDto
* @param response
* @return
*/
public
int
exportAEMData2
(
CitAssetsListDto
citAssetsListDto
,
HttpServletResponse
response
)
{
CitAssetsList
citAssetsList
=
new
CitAssetsList
();
BeanUtils
.
copyProperties
(
citAssetsListDto
,
citAssetsList
);
List
<
CitAssetEamMappingDto
>
citAssetsLists
=
assetsListMapper
.
getAssetEamMapping
(
citAssetsList
);
if
(
citAssetsLists
.
size
()
==
0
)
{
return
0
;
}
List
<
CitAssetsListDto
>
citAssetsListDtos
=
new
ArrayList
<>();
assetToAssetEamMapping
(
citAssetsListDtos
,
citAssetsLists
);
ExportDto
exportDto
=
new
ExportDto
();
exportDto
.
setFileName
(
"固资申报表"
);
exportDto
.
setTemplateUrl
(
Constant
.
citTemplateUrl
+
"/assetEamMapping.xlsx"
);
exportDto
.
setResponse
(
response
);
exportDto
.
setList
(
citAssetsListDtos
);
exportDto
.
setRelation
(
null
);
exportDto
.
setRelation
(
citDistributionDto
);
JxlsUtils
.
sheetName
=
"A202000"
;
JxlsUtils
.
export
(
exportDto
);
return
1
;
}
public
List
<
CitAssetsListDto
>
assetToAssetEamMapping
(
List
<
CitAssetsListDto
>
citAssetsListDtos
,
List
<
CitAssetEamMappingDto
>
citAssetsLists
)
{
for
(
CitAssetsList
citAssetsListTemp
:
citAssetsLists
)
{
CitAssetsListDto
temp
=
new
CitAssetsListDto
();
BeanUtils
.
copyProperties
(
citAssetsListTemp
,
temp
);
//计算处置损益 处置/赔偿收入-账面净值(年终剩余价值)
temp
.
setDisposalProfitAndLoss
(
temp
.
getCompensationSaleAmount
().
subtract
(
temp
.
getYearEndValue
()));
//计算资产的税务净值 taxNetValue 原值-累计税务折旧/摊销
temp
.
setTaxNetValue
(
temp
.
getAcquisitionValue
().
subtract
(
temp
.
getTaxToCurrentYearDepreciationAmount
()));
//处置的税收损益 处置/赔偿收入-资产的税务净值
temp
.
setDisposalTaxBenefit
(
temp
.
getCompensationSaleAmount
().
subtract
(
temp
.
getTaxNetValue
()));
citAssetsListDtos
.
add
(
temp
);
}
return
citAssetsListDtos
;
}
public
OperationResultDto
<
ReportDataDto
>
getCellData
(
Long
reportId
,
String
projectId
)
{
OperationResultDto
resultDto
=
new
OperationResultDto
();
ReportDataDto
dataDto
=
new
ReportDataDto
();
...
...
@@ -1374,31 +1355,53 @@ public class CitReportServiceImpl extends BaseService {
}
/**
* 通过卡片主键(projectId)获取总分机构相关信息
*
* @param projectId
* @return
* 生成固资损失计算
* @param citAssetsListDto
*/
private
List
<
Organization
>
getTotalBranchByProjectId
(
String
projectId
)
{
return
null
;
public
int
generateAssetEamMapping
(
CitAssetsListDto
citAssetsListDto
){
CitAssetEamMappingExample
example
=
new
CitAssetEamMappingExample
();
example
.
createCriteria
().
andProjectIdEqualTo
(
citAssetsListDto
.
getProjectId
());
citAssetEamMappingMapper
.
deleteByExample
(
example
);
CitAssetsList
citAssetsList
=
new
CitAssetsList
();
BeanUtils
.
copyProperties
(
citAssetsListDto
,
citAssetsList
);
List
<
CitAssetEamMapping
>
citAssetEamMappings
=
assetsListMapper
.
getAssetEamMapping
(
citAssetsList
);
for
(
CitAssetEamMapping
temp
:
citAssetEamMappings
)
{
//计算处置损益 处置/赔偿收入-账面净值(年终剩余价值)
temp
.
setDisposalProfitAndLoss
(
temp
.
getCompensationSaleAmount
().
subtract
(
temp
.
getYearEndValue
()));
//计算资产的税务净值 taxNetValue 原值-累计税务折旧/摊销
temp
.
setTaxNetValue
(
temp
.
getAcquisitionValue
().
subtract
(
temp
.
getTaxToCurrentYearDepreciationAmount
()));
//处置的税收损益 处置/赔偿收入-资产的税务净值
temp
.
setDisposalTaxBenefit
(
temp
.
getCompensationSaleAmount
().
subtract
(
temp
.
getTaxNetValue
()));
temp
.
setId
(
idService
.
nextId
());
temp
.
setCreateTime
(
null
);
temp
.
setUpdateTime
(
null
);
// citAssetEamMappingMapper.insertSelective(temp);
}
citAssetEamMappingMapper
.
insertBatch
(
citAssetEamMappings
);
return
0
;
}
/**
* 生成总分机构分配表
*/
public
Integer
generateTotalBranchOrgDisTable
(
String
projectId
)
{
public
CitDistributionDto
generateTotalBranchOrgDisTable
(
String
projectId
)
{
CitDistributionDto
citDistributionDto
=
new
CitDistributionDto
();
Project
project
=
projectMapper
.
selectByPrimaryKey
(
projectId
);
//判断是不是总机构,若机构代码最后两位是00代表是总机构
if
(
project
.
getCode
()
!=
null
&&
project
.
getCode
().
substring
(
project
.
getCode
().
length
()
-
2
,
project
.
getCode
().
length
()).
equals
(
"00"
))
{
CitDistributionExample
citDistributionExample
=
new
CitDistributionExample
();
citDistributionExample
.
createCriteria
().
andProjectIdEqualTo
(
projectId
);
citDistributionMapper
.
deleteByExample
(
citDistributionExample
);
//此时代表该机构为总机构,需要生成总分机构分配表
//获取当前卡片所在期间(就是年数)
Integer
period
=
project
.
getYear
();
//生成总分机构分配表 start
//1、查出所有所有分支机构
OrganizationExample
example
=
new
OrganizationExample
();
example
.
createCriteria
().
andCodeLike
(
project
.
getCode
().
substring
(
0
,
project
.
getCode
().
length
()
-
1
)+
"%"
);
example
.
createCriteria
().
andCodeLike
(
project
.
getCode
().
substring
(
0
,
project
.
getCode
().
length
()
-
2
)+
"%"
);
List
<
Organization
>
organizations
=
organizationMapper
.
selectByExample
(
example
);
//2、取出各个分支机构的三项因素,并算出各个三项因素的合计
//比较变量,其余值和该值进行比较,判断其余变量是否为0
...
...
@@ -1420,7 +1423,7 @@ public class CitReportServiceImpl extends BaseService {
ProjectExample
projectExample
=
new
ProjectExample
();
projectExample
.
createCriteria
().
andOrganizationIdEqualTo
(
org
.
getId
()).
andYearEqualTo
(
period
);
List
<
Project
>
projects
=
projectMapper
.
selectByExample
(
projectExample
);
if
(
projects
==
null
)
{
if
(
projects
==
null
||
projects
.
size
()
==
0
)
{
continue
;
}
...
...
@@ -1433,7 +1436,6 @@ public class CitReportServiceImpl extends BaseService {
citDistribution
.
setTaxPayerNumber
(
org
.
getTaxPayerNumber
());
citDistribution
.
setCode
(
org
.
getCode
());
//2.2 获取该机构该期间的营业收入--A101010《一版企业收入明细表》的营业收入金额C4抓取
// TODO 获取该机构该期间的营业收入
CitTbamExample
citTbamExample
=
new
CitTbamExample
();
...
...
@@ -1446,81 +1448,92 @@ public class CitReportServiceImpl extends BaseService {
totalBusinessIncome
.
add
(
businessIncome
);
citDistribution
.
setBusinessIncome
(
businessIncome
);
//2.3 获取该机构该期间的职工薪酬--WP008职工薪酬表的“职工薪酬”的小计项D20抓取
//2.3.1找出该卡片对应的模板组
OrganizationServiceTemplateGroupExample
oSTGExample
=
new
OrganizationServiceTemplateGroupExample
();
OrganizationServiceTemplateGroupExample
.
Criteria
oSTGCriteria
=
oSTGExample
.
createCriteria
();
oSTGCriteria
.
andOrganizationIdEqualTo
(
org
.
getId
());
oSTGCriteria
.
andServiceTypeIdEqualTo
(
"6"
);
List
<
OrganizationServiceTemplateGroup
>
currentOrgTemplateGroups
=
orgServiceTemplateGroupMapper
.
selectByExample
(
oSTGExample
);
if
(
currentOrgTemplateGroups
==
null
)
{
citDistribution
.
setEmployeeRemuneration
(
new
BigDecimal
(
"0.000000"
));
}
else
{
//查询出该机构对应的报表组ID
Long
templateGroupId
;
Optional
<
Long
>
tempVlaue
=
orgServiceTemplateGroupMapper
.
selectByExample
(
oSTGExample
).
stream
().
map
(
OrganizationServiceTemplateGroup:
:
getTemplateGroupId
).
findFirst
();
if
(
tempVlaue
.
isPresent
())
{
templateGroupId
=
tempVlaue
.
get
();
}
else
{
templateGroupId
=
0L
;
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"period"
,
0
);
map
.
put
(
"projectId"
,
project
.
getId
());
map
.
put
(
"templateGroupID"
,
templateGroupId
);
//根据条件获取到CIT.WP008报表相关信息
List
<
ReportDto
>
templateLeftJoinReport
=
templateMapper
.
getTemplateLeftJoinReport
(
map
);
citDistribution
.
setEmployeeRemuneration
(
new
BigDecimal
(
"0.000000"
));
for
(
ReportDto
reportDto
:
templateLeftJoinReport
)
{
if
(
reportDto
.
getTemplateCode
().
equals
(
"CIT.WP008"
)){
//根据报表主键和卡片查询出WP008的相关数据
PeriodCellDataExample
periodCellDataExample
=
new
PeriodCellDataExample
();
periodCellDataExample
.
createCriteria
().
andProjectIdEqualTo
(
projects
.
get
(
0
).
getId
()).
andReportIdEqualTo
(
Long
.
parseLong
(
reportDto
.
getId
())).
andFormulaExpEqualTo
(
"D16+D18"
).
andPeriodEqualTo
(
0
);
List
<
PeriodCellData
>
periodCellData
=
periodCellDataMapper
.
selectByExample
(
periodCellDataExample
);
if
(
periodCellData
==
null
)
{
citDistribution
.
setEmployeeRemuneration
(
new
BigDecimal
(
"0.000000"
));
}
else
{
citDistribution
.
setEmployeeRemuneration
(
new
BigDecimal
(
periodCellData
.
get
(
0
).
getData
()));
totalEmployeeRemuneration
.
add
(
citDistribution
.
getEmployeeRemuneration
());
}
}
else
if
(
org
.
getCode
().
equals
(
project
.
getCode
())
&&
reportDto
.
getTemplateCode
().
equals
(
"CIT.A200000"
))
{
//此时证明是总机构,要取总机构的A200000的15栏数据
//根据报表主键和卡片查询出CIT.A200000的相关数据
CellTemplateExample
cellTemplateExample
=
new
CellTemplateExample
();
cellTemplateExample
.
createCriteria
().
andRowIndexEqualTo
(
25
).
andColumnIndexEqualTo
(
3
).
andReportTemplateIdEqualTo
(
Long
.
parseLong
(
reportDto
.
getId
()));
List
<
CellTemplate
>
cellTemplates
=
cellTemplateMapper
.
selectByExample
(
cellTemplateExample
);
if
(
cellTemplates
!=
null
){
PeriodCellDataExample
periodCellDataExample
=
new
PeriodCellDataExample
();
periodCellDataExample
.
createCriteria
().
andProjectIdEqualTo
(
projects
.
get
(
0
).
getId
()).
andReportIdEqualTo
(
Long
.
parseLong
(
reportDto
.
getId
())).
andCellTemplateIdEqualTo
(
cellTemplates
.
get
(
0
).
getId
()).
andPeriodEqualTo
(
0
);
List
<
PeriodCellData
>
periodCellDatas
=
periodCellDataMapper
.
selectByExample
(
periodCellDataExample
);
if
(
periodCellDatas
!=
null
)
{
sixRowGCouValue
.
add
(
new
BigDecimal
(
periodCellDatas
.
get
(
0
).
getData
()));
}
}
}
}
// List<ReportDto> collect = templateLeftJoinReport.stream().
// filter(reportDto -> reportDto.getTemplateCode().equals("CIT.WP008")).collect(Collectors.toList());
// if (collect == null) {
//2.3 获取该机构该期间的职工薪酬--WP008职工薪酬表的“职工薪酬”的小计项D20抓取,系统原有的方法
BigDecimal
wp008CellValue
=
reportAnalysisService
.
getCellValue
(
projects
.
get
(
0
).
getId
(),
0
,
"CIT.WP008"
,
20
,
4
);
citDistribution
.
setEmployeeRemuneration
(
wp008CellValue
);
totalEmployeeRemuneration
.
add
(
wp008CellValue
);
//判断当前循环的机构是不是总机构,若是总机构要查找出A200000的15栏
if
(
org
.
getCode
().
equals
(
project
.
getCode
())){
BigDecimal
a200000CellValue
=
reportAnalysisService
.
getCellValue
(
projects
.
get
(
0
).
getId
(),
0
,
"CIT.A200000"
,
25
,
3
);
sixRowGCouValue
.
add
(
a200000CellValue
);
}
// //2.3 获取该机构该期间的职工薪酬--WP008职工薪酬表的“职工薪酬”的小计项D20抓取,create by zhikai.z.wei
// //2.3.1找出该卡片对应的模板组
// OrganizationServiceTemplateGroupExample oSTGExample = new OrganizationServiceTemplateGroupExample();
// OrganizationServiceTemplateGroupExample.Criteria oSTGCriteria = oSTGExample
// .createCriteria();
// oSTGCriteria.andOrganizationIdEqualTo(org.getId());
// oSTGCriteria.andServiceTypeIdEqualTo("6");
// List<OrganizationServiceTemplateGroup> currentOrgTemplateGroups = orgServiceTemplateGroupMapper.selectByExample(oSTGExample);
// if (currentOrgTemplateGroups == null) {
// citDistribution.setEmployeeRemuneration(new BigDecimal("0.000000"));
// } else {
// //查询出该机构对应的报表组ID
// Long templateGroupId;
// Optional<Long> tempVlaue = orgServiceTemplateGroupMapper.selectByExample(oSTGExample).stream().map(OrganizationServiceTemplateGroup::getTemplateGroupId).findFirst();
// if (tempVlaue.isPresent()) {
// templateGroupId = tempVlaue.get();
// } else {
// templateGroupId = 0L;
// }
//
// Map<String, Object> map = new HashMap<>();
// map.put("period", 0);
// map.put("projectId", project.getId());
// map.put("templateGroupID", templateGroupId);
// //根据条件获取到CIT.WP008报表相关信息
// List<ReportDto> templateLeftJoinReport = templateMapper.getTemplateLeftJoinReport(map);
// citDistribution.setEmployeeRemuneration(new BigDecimal("0.000000"));
// for (ReportDto reportDto :templateLeftJoinReport) {
// if(reportDto.getTemplateCode().equals("CIT.WP008")){
// //根据报表主键和卡片查询出WP008的相关数据
// PeriodCellDataExample periodCellDataExample = new PeriodCellDataExample();
// periodCellDataExample.createCriteria().andProjectIdEqualTo(projects.get(0).getId()).
// andReportIdEqualTo(Long.parseLong(reportDto.getId())).andFormulaExpEqualTo("D16+D18").
// andPeriodEqualTo(0);
// List<PeriodCellData> periodCellData = periodCellDataMapper.selectByExample(periodCellDataExample);
// if (periodCellData == null) {
// citDistribution.setEmployeeRemuneration(new BigDecimal("0.000000"));
// } else {
// citDistribution.setEmployeeRemuneration(new BigDecimal(periodCellData.get(0).getData()));
// totalEmployeeRemuneration.add(citDistribution.getEmployeeRemuneration());
// }
// } else if (org.getCode().equals(project.getCode()) && reportDto.getTemplateCode().equals("CIT.A200000")) {
// //此时证明是总机构,要取总机构的A200000的15栏数据
// //根据报表主键和卡片查询出CIT.A200000的相关数据
// CellTemplateExample cellTemplateExample = new CellTemplateExample();
// cellTemplateExample.createCriteria().andRowIndexEqualTo(25).andColumnIndexEqualTo(3).
// andReportTemplateIdEqualTo(Long.parseLong(reportDto.getId()));
// List<CellTemplate> cellTemplates = cellTemplateMapper.selectByExample(cellTemplateExample);
// if(cellTemplates != null){
// PeriodCellDataExample periodCellDataExample = new PeriodCellDataExample();
// periodCellDataExample.createCriteria().andProjectIdEqualTo(projects.get(0).getId()).
// andReportIdEqualTo(Long.parseLong(reportDto.getId())).andCellTemplateIdEqualTo(cellTemplates.get(0).getId()).
// andPeriodEqualTo(0);
// List<PeriodCellData> periodCellDatas = periodCellDataMapper.selectByExample(periodCellDataExample);
// if (periodCellDatas != null) {
// sixRowGCouValue.add(new BigDecimal(periodCellDatas.get(0).getData()));
// }
// }
// }
// }
//
//// List<ReportDto> collect = templateLeftJoinReport.stream().
//// filter(reportDto -> reportDto.getTemplateCode().equals("CIT.WP008")).collect(Collectors.toList());
//// if (collect == null) {
//// citDistribution.setEmployeeRemuneration(new BigDecimal("0.000000"));
//// } else {
////
//// }
// }
}
//2.4 获取该机构该期间的资产总额--取该机构该期间的卡片的利润表(cit_profit_prc_adjust)中的数据
CitBalanceSheetPrcAdjustExample
citBsExample
=
new
CitBalanceSheetPrcAdjustExample
();
citBsExample
.
createCriteria
().
andProjectIdEqualTo
(
projects
.
get
(
0
).
getId
()).
andItemNameEqualTo
(
"非流动资产合计"
);
List
<
CitBalanceSheetPrcAdjust
>
citBalanceSheetPrcAdjusts
=
citBsPrcAdjustMapper
.
selectByExample
(
citBsExample
);
citDistribution
.
setTotalAssets
(
citBalanceSheetPrcAdjusts
==
null
?
new
BigDecimal
(
0.000000
):
citBalanceSheetPrcAdjusts
.
get
(
0
).
getBegBal
());
totalTotalAssets
.
add
(
cit
BalanceSheetPrcAdjusts
.
get
(
0
).
getBegBal
());
citDistribution
.
setTotalAssets
(
citBalanceSheetPrcAdjusts
==
null
||
citBalanceSheetPrcAdjusts
.
size
()==
0
?
new
BigDecimal
(
0.000000
):
citBalanceSheetPrcAdjusts
.
get
(
0
).
getBegBal
());
totalTotalAssets
.
add
(
cit
Distribution
.
getTotalAssets
());
citDistributionList
.
add
(
citDistribution
);
}
...
...
@@ -1560,7 +1573,11 @@ public class CitReportServiceImpl extends BaseService {
citDistributionList
.
stream
().
forEach
(
citDistribution
->
{
int
insert
=
citDistributionMapper
.
insertSelective
(
citDistribution
);
});
citDistributionDto
.
setTotalBusinessIncome
(
totalBusinessIncome
);
citDistributionDto
.
setTotalEmployeeRemuneration
(
totalEmployeeRemuneration
);
citDistributionDto
.
setTotalTotalAssets
(
totalTotalAssets
);
}
return
null
;
return
citDistributionDto
;
}
}
atms-api/src/main/resources/cit_excel_template/A202000.xlsx
View file @
e7c526d4
No preview for this file type
atms-api/src/main/resources/cit_excel_template/assetEamMapping.xlsx
View file @
e7c526d4
No preview for this file type
atms-dao/etc/generator-mysql/generatorConfig.xml
View file @
e7c526d4
...
...
@@ -41,11 +41,21 @@
<property
name=
"rootInterface"
value=
"pwc.taxtech.atms.MyMapper"
/>
</javaClientGenerator>
<table
tableName=
"
operation_log_entry_log"
domainObjectName=
"OperationLogEntryLo
g"
>
<table
tableName=
"
cit_asset_eam_mapping"
domainObjectName=
"CitAssetEamMappin
g"
>
<property
name=
"useActualColumnNames"
value=
"false"
/>
<property
name=
"ignoreQualifiersAtRuntime"
value=
"true"
/>
</table>
<!--<table tableName="cit_distribution" domainObjectName="CitDistribution">-->
<!--<property name="useActualColumnNames" value="false"/>-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="operation_log_entry_log" domainObjectName="OperationLogEntryLog">-->
<!--<property name="useActualColumnNames" value="false"/>-->
<!--<property name="ignoreQualifiersAtRuntime" value="true"/>-->
<!--</table>-->
<!--<table tableName="organization" domainObjectName="Organization">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dao/CitAssetEamMappingMapper.java
0 → 100644
View file @
e7c526d4
package
pwc
.
taxtech
.
atms
.
dao
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.session.RowBounds
;
import
pwc.taxtech.atms.MyMapper
;
import
pwc.taxtech.atms.entity.CitAssetEamMapping
;
import
pwc.taxtech.atms.entity.CitAssetEamMappingExample
;
@Mapper
public
interface
CitAssetEamMappingMapper
extends
MyMapper
{
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
long
countByExample
(
CitAssetEamMappingExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
int
deleteByExample
(
CitAssetEamMappingExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
int
deleteByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
int
insert
(
CitAssetEamMapping
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
int
insertSelective
(
CitAssetEamMapping
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
List
<
CitAssetEamMapping
>
selectByExampleWithRowbounds
(
CitAssetEamMappingExample
example
,
RowBounds
rowBounds
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
List
<
CitAssetEamMapping
>
selectByExample
(
CitAssetEamMappingExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
CitAssetEamMapping
selectByPrimaryKey
(
Long
id
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
int
updateByExampleSelective
(
@Param
(
"record"
)
CitAssetEamMapping
record
,
@Param
(
"example"
)
CitAssetEamMappingExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
int
updateByExample
(
@Param
(
"record"
)
CitAssetEamMapping
record
,
@Param
(
"example"
)
CitAssetEamMappingExample
example
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
int
updateByPrimaryKeySelective
(
CitAssetEamMapping
record
);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
int
updateByPrimaryKey
(
CitAssetEamMapping
record
);
int
insertBatch
(
List
<
CitAssetEamMapping
>
citAssetEamMappings
);
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/dao/CitAssetsListMapper.java
View file @
e7c526d4
...
...
@@ -6,8 +6,8 @@ import org.apache.ibatis.annotations.Param;
import
org.apache.ibatis.session.RowBounds
;
import
pwc.taxtech.atms.MyMapper
;
import
pwc.taxtech.atms.dpo.CitAssetDetailResultDto
;
import
pwc.taxtech.atms.dpo.CitAssetEamMappingDto
;
import
pwc.taxtech.atms.dpo.CitAssetSumDataDto
;
import
pwc.taxtech.atms.entity.CitAssetEamMapping
;
import
pwc.taxtech.atms.entity.CitAssetsList
;
import
pwc.taxtech.atms.entity.CitAssetsListExample
;
...
...
@@ -117,7 +117,7 @@ public interface CitAssetsListMapper extends MyMapper {
* @param citAsset
* @return Result<XxxxDO>
*/
List
<
CitAssetEamMapping
Dto
>
getAssetEamMapping
(
CitAssetsList
citAsset
);
List
<
CitAssetEamMapping
>
getAssetEamMapping
(
CitAssetsList
citAsset
);
List
<
CitAssetDetailResultDto
>
getCitAssetDetialResult
(
@Param
(
"assetType"
)
Integer
assetType
,
@Param
(
"assetDetailType"
)
Integer
assetDetailType
);
...
...
atms-dao/src/main/java/pwc/taxtech/atms/dpo/CitAssetEamMappingDto.java
deleted
100644 → 0
View file @
b3f395d4
package
pwc
.
taxtech
.
atms
.
dpo
;
import
pwc.taxtech.atms.entity.CitAssetsList
;
import
java.math.BigDecimal
;
/**
* @author zhikai.z.wei
*/
public
class
CitAssetEamMappingDto
extends
CitAssetsList
{
/**
* EAM 资产里面的赔偿/变卖金额
*/
private
BigDecimal
compensationSaleAmount
;
public
BigDecimal
getCompensationSaleAmount
()
{
return
compensationSaleAmount
;
}
public
void
setCompensationSaleAmount
(
BigDecimal
compensationSaleAmount
)
{
this
.
compensationSaleAmount
=
compensationSaleAmount
;
}
}
atms-dao/src/main/java/pwc/taxtech/atms/entity/CitAssetEamMapping.java
0 → 100644
View file @
e7c526d4
package
pwc
.
taxtech
.
atms
.
entity
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated do_not_delete_during_merge
*/
public
class
CitAssetEamMapping
extends
BaseEntity
implements
Serializable
{
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.id
*
* @mbg.generated
*/
private
Long
id
;
/**
* Database Column Remarks:
* 表project主键
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.project_id
*
* @mbg.generated
*/
private
String
projectId
;
/**
* Database Column Remarks:
* 期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.period
*
* @mbg.generated
*/
private
Integer
period
;
/**
* Database Column Remarks:
* 资产编号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.asset_number
*
* @mbg.generated
*/
private
String
assetNumber
;
/**
* Database Column Remarks:
* 序列号
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.serial_number
*
* @mbg.generated
*/
private
String
serialNumber
;
/**
* Database Column Remarks:
* 资产类别-页面
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.asset_group_name
*
* @mbg.generated
*/
private
String
assetGroupName
;
/**
* Database Column Remarks:
* 资产二级分类主键
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.asset_detail_group_id
*
* @mbg.generated
*/
private
Long
assetDetailGroupId
;
/**
* Database Column Remarks:
* 资产说明
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.asset_description
*
* @mbg.generated
*/
private
String
assetDescription
;
/**
* Database Column Remarks:
* 购入日期
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.buy_date
*
* @mbg.generated
*/
private
Date
buyDate
;
/**
* Database Column Remarks:
* 开始折旧日期
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.depreciation_date
*
* @mbg.generated
*/
private
Date
depreciationDate
;
/**
* Database Column Remarks:
* 折旧期限
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.depreciation_period
*
* @mbg.generated
*/
private
Integer
depreciationPeriod
;
/**
* Database Column Remarks:
* 原值
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.acquisition_value
*
* @mbg.generated
*/
private
BigDecimal
acquisitionValue
;
/**
* Database Column Remarks:
* 调整值
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.adjustment_value
*
* @mbg.generated
*/
private
BigDecimal
adjustmentValue
;
/**
* Database Column Remarks:
* 报废日期
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.disposed_date
*
* @mbg.generated
*/
private
Date
disposedDate
;
/**
* Database Column Remarks:
* 残值率
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.residual_rate
*
* @mbg.generated
*/
private
BigDecimal
residualRate
;
/**
* Database Column Remarks:
* 本年折旧额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.year_depreciation_amount
*
* @mbg.generated
*/
private
BigDecimal
yearDepreciationAmount
;
/**
* Database Column Remarks:
* 本年调整额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.year_adjustment_amount
*
* @mbg.generated
*/
private
BigDecimal
yearAdjustmentAmount
;
/**
* Database Column Remarks:
* 年终剩余价值
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.year_end_value
*
* @mbg.generated
*/
private
BigDecimal
yearEndValue
;
/**
* Database Column Remarks:
* 状态
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.status
*
* @mbg.generated
*/
private
Integer
status
;
/**
* Database Column Remarks:
* 财务原值(按照文档所说:该值就是上面的原值加上调整值么)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.account_acquisition_value
*
* @mbg.generated
*/
private
BigDecimal
accountAcquisitionValue
;
/**
* Database Column Remarks:
* 财务每月折旧额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.account_month_depreciation_amount
*
* @mbg.generated
*/
private
BigDecimal
accountMonthDepreciationAmount
;
/**
* Database Column Remarks:
* 财务本年折旧额(上方的本年折旧额 + 本年折旧调整额)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.account_year_depreciation_amount
*
* @mbg.generated
*/
private
BigDecimal
accountYearDepreciationAmount
;
/**
* Database Column Remarks:
* 财务累计折旧额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.account_total_depreciation_amount
*
* @mbg.generated
*/
private
BigDecimal
accountTotalDepreciationAmount
;
/**
* Database Column Remarks:
* 税务折旧期限
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.tax_depreciation_period
*
* @mbg.generated
*/
private
Integer
taxDepreciationPeriod
;
/**
* Database Column Remarks:
* 截止去年累计折旧期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.tax_to_last_year_depreciation_period
*
* @mbg.generated
*/
private
Integer
taxToLastYearDepreciationPeriod
;
/**
* Database Column Remarks:
* 截止本年累计折旧期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.tax_to_current_year_depreciation_period
*
* @mbg.generated
*/
private
Integer
taxToCurrentYearDepreciationPeriod
;
/**
* Database Column Remarks:
* 本年折旧期间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.tax_year_depreciation_period
*
* @mbg.generated
*/
private
Integer
taxYearDepreciationPeriod
;
/**
* Database Column Remarks:
* 税务每月折旧额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.tax_month_depreciation_amount
*
* @mbg.generated
*/
private
BigDecimal
taxMonthDepreciationAmount
;
/**
* Database Column Remarks:
* 税务累计折旧额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.tax_to_current_year_depreciation_amount
*
* @mbg.generated
*/
private
BigDecimal
taxToCurrentYearDepreciationAmount
;
/**
* Database Column Remarks:
* 税务本年折旧额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.tax_current_year_depreciation_amount
*
* @mbg.generated
*/
private
BigDecimal
taxCurrentYearDepreciationAmount
;
/**
* Database Column Remarks:
* 累计差异
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.total_difference_amount
*
* @mbg.generated
*/
private
BigDecimal
totalDifferenceAmount
;
/**
* Database Column Remarks:
* 当年差异
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.year_difference_amount
*
* @mbg.generated
*/
private
BigDecimal
yearDifferenceAmount
;
/**
* Database Column Remarks:
* 保留差异
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.is_retain
*
* @mbg.generated
*/
private
Integer
isRetain
;
/**
* Database Column Remarks:
* 资产一级分类(固定资产、长期分摊、无形资产)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.asset_type
*
* @mbg.generated
*/
private
Integer
assetType
;
/**
* Database Column Remarks:
* 创建时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.create_time
*
* @mbg.generated
*/
private
Date
createTime
;
/**
* Database Column Remarks:
* 修改时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.update_time
*
* @mbg.generated
*/
private
Date
updateTime
;
/**
* Database Column Remarks:
* 税会折旧大小比较结果;1表示税大,2表示会大
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.tax_account_compare
*
* @mbg.generated
*/
private
Integer
taxAccountCompare
;
/**
* Database Column Remarks:
* 税法分类,也是资产二级分类(asset_detail_group表中的detailGroupName)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.tax_group_name
*
* @mbg.generated
*/
private
String
taxGroupName
;
/**
* Database Column Remarks:
* 报废类型
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.scrap_type
*
* @mbg.generated
*/
private
String
scrapType
;
/**
* Database Column Remarks:
* 处置赔偿收入--EAM 资产里面的赔偿/变卖金额
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.compensation_sale_amount
*
* @mbg.generated
*/
private
BigDecimal
compensationSaleAmount
;
/**
* Database Column Remarks:
* 赔偿收入
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.sale_amount
*
* @mbg.generated
*/
private
BigDecimal
saleAmount
;
/**
* Database Column Remarks:
* 处置损益 处置/赔偿收入-账面净值(年终剩余价值)
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.disposal_profit_and_loss
*
* @mbg.generated
*/
private
BigDecimal
disposalProfitAndLoss
;
/**
* Database Column Remarks:
* 资产的税务净值 taxNetValue 原值-累计税务折旧/摊销
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.tax_net_value
*
* @mbg.generated
*/
private
BigDecimal
taxNetValue
;
/**
* Database Column Remarks:
* 处置的税收损益 处置/赔偿收入-资产的税务净值
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column cit_asset_eam_mapping.disposal_tax_benefit
*
* @mbg.generated
*/
private
BigDecimal
disposalTaxBenefit
;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
private
static
final
long
serialVersionUID
=
1L
;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.id
*
* @return the value of cit_asset_eam_mapping.id
*
* @mbg.generated
*/
public
Long
getId
()
{
return
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.id
*
* @param id the value for cit_asset_eam_mapping.id
*
* @mbg.generated
*/
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.project_id
*
* @return the value of cit_asset_eam_mapping.project_id
*
* @mbg.generated
*/
public
String
getProjectId
()
{
return
projectId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.project_id
*
* @param projectId the value for cit_asset_eam_mapping.project_id
*
* @mbg.generated
*/
public
void
setProjectId
(
String
projectId
)
{
this
.
projectId
=
projectId
==
null
?
null
:
projectId
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.period
*
* @return the value of cit_asset_eam_mapping.period
*
* @mbg.generated
*/
public
Integer
getPeriod
()
{
return
period
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.period
*
* @param period the value for cit_asset_eam_mapping.period
*
* @mbg.generated
*/
public
void
setPeriod
(
Integer
period
)
{
this
.
period
=
period
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.asset_number
*
* @return the value of cit_asset_eam_mapping.asset_number
*
* @mbg.generated
*/
public
String
getAssetNumber
()
{
return
assetNumber
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.asset_number
*
* @param assetNumber the value for cit_asset_eam_mapping.asset_number
*
* @mbg.generated
*/
public
void
setAssetNumber
(
String
assetNumber
)
{
this
.
assetNumber
=
assetNumber
==
null
?
null
:
assetNumber
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.serial_number
*
* @return the value of cit_asset_eam_mapping.serial_number
*
* @mbg.generated
*/
public
String
getSerialNumber
()
{
return
serialNumber
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.serial_number
*
* @param serialNumber the value for cit_asset_eam_mapping.serial_number
*
* @mbg.generated
*/
public
void
setSerialNumber
(
String
serialNumber
)
{
this
.
serialNumber
=
serialNumber
==
null
?
null
:
serialNumber
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.asset_group_name
*
* @return the value of cit_asset_eam_mapping.asset_group_name
*
* @mbg.generated
*/
public
String
getAssetGroupName
()
{
return
assetGroupName
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.asset_group_name
*
* @param assetGroupName the value for cit_asset_eam_mapping.asset_group_name
*
* @mbg.generated
*/
public
void
setAssetGroupName
(
String
assetGroupName
)
{
this
.
assetGroupName
=
assetGroupName
==
null
?
null
:
assetGroupName
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.asset_detail_group_id
*
* @return the value of cit_asset_eam_mapping.asset_detail_group_id
*
* @mbg.generated
*/
public
Long
getAssetDetailGroupId
()
{
return
assetDetailGroupId
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.asset_detail_group_id
*
* @param assetDetailGroupId the value for cit_asset_eam_mapping.asset_detail_group_id
*
* @mbg.generated
*/
public
void
setAssetDetailGroupId
(
Long
assetDetailGroupId
)
{
this
.
assetDetailGroupId
=
assetDetailGroupId
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.asset_description
*
* @return the value of cit_asset_eam_mapping.asset_description
*
* @mbg.generated
*/
public
String
getAssetDescription
()
{
return
assetDescription
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.asset_description
*
* @param assetDescription the value for cit_asset_eam_mapping.asset_description
*
* @mbg.generated
*/
public
void
setAssetDescription
(
String
assetDescription
)
{
this
.
assetDescription
=
assetDescription
==
null
?
null
:
assetDescription
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.buy_date
*
* @return the value of cit_asset_eam_mapping.buy_date
*
* @mbg.generated
*/
public
Date
getBuyDate
()
{
return
buyDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.buy_date
*
* @param buyDate the value for cit_asset_eam_mapping.buy_date
*
* @mbg.generated
*/
public
void
setBuyDate
(
Date
buyDate
)
{
this
.
buyDate
=
buyDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.depreciation_date
*
* @return the value of cit_asset_eam_mapping.depreciation_date
*
* @mbg.generated
*/
public
Date
getDepreciationDate
()
{
return
depreciationDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.depreciation_date
*
* @param depreciationDate the value for cit_asset_eam_mapping.depreciation_date
*
* @mbg.generated
*/
public
void
setDepreciationDate
(
Date
depreciationDate
)
{
this
.
depreciationDate
=
depreciationDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.depreciation_period
*
* @return the value of cit_asset_eam_mapping.depreciation_period
*
* @mbg.generated
*/
public
Integer
getDepreciationPeriod
()
{
return
depreciationPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.depreciation_period
*
* @param depreciationPeriod the value for cit_asset_eam_mapping.depreciation_period
*
* @mbg.generated
*/
public
void
setDepreciationPeriod
(
Integer
depreciationPeriod
)
{
this
.
depreciationPeriod
=
depreciationPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.acquisition_value
*
* @return the value of cit_asset_eam_mapping.acquisition_value
*
* @mbg.generated
*/
public
BigDecimal
getAcquisitionValue
()
{
return
acquisitionValue
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.acquisition_value
*
* @param acquisitionValue the value for cit_asset_eam_mapping.acquisition_value
*
* @mbg.generated
*/
public
void
setAcquisitionValue
(
BigDecimal
acquisitionValue
)
{
this
.
acquisitionValue
=
acquisitionValue
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.adjustment_value
*
* @return the value of cit_asset_eam_mapping.adjustment_value
*
* @mbg.generated
*/
public
BigDecimal
getAdjustmentValue
()
{
return
adjustmentValue
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.adjustment_value
*
* @param adjustmentValue the value for cit_asset_eam_mapping.adjustment_value
*
* @mbg.generated
*/
public
void
setAdjustmentValue
(
BigDecimal
adjustmentValue
)
{
this
.
adjustmentValue
=
adjustmentValue
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.disposed_date
*
* @return the value of cit_asset_eam_mapping.disposed_date
*
* @mbg.generated
*/
public
Date
getDisposedDate
()
{
return
disposedDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.disposed_date
*
* @param disposedDate the value for cit_asset_eam_mapping.disposed_date
*
* @mbg.generated
*/
public
void
setDisposedDate
(
Date
disposedDate
)
{
this
.
disposedDate
=
disposedDate
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.residual_rate
*
* @return the value of cit_asset_eam_mapping.residual_rate
*
* @mbg.generated
*/
public
BigDecimal
getResidualRate
()
{
return
residualRate
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.residual_rate
*
* @param residualRate the value for cit_asset_eam_mapping.residual_rate
*
* @mbg.generated
*/
public
void
setResidualRate
(
BigDecimal
residualRate
)
{
this
.
residualRate
=
residualRate
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.year_depreciation_amount
*
* @return the value of cit_asset_eam_mapping.year_depreciation_amount
*
* @mbg.generated
*/
public
BigDecimal
getYearDepreciationAmount
()
{
return
yearDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.year_depreciation_amount
*
* @param yearDepreciationAmount the value for cit_asset_eam_mapping.year_depreciation_amount
*
* @mbg.generated
*/
public
void
setYearDepreciationAmount
(
BigDecimal
yearDepreciationAmount
)
{
this
.
yearDepreciationAmount
=
yearDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.year_adjustment_amount
*
* @return the value of cit_asset_eam_mapping.year_adjustment_amount
*
* @mbg.generated
*/
public
BigDecimal
getYearAdjustmentAmount
()
{
return
yearAdjustmentAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.year_adjustment_amount
*
* @param yearAdjustmentAmount the value for cit_asset_eam_mapping.year_adjustment_amount
*
* @mbg.generated
*/
public
void
setYearAdjustmentAmount
(
BigDecimal
yearAdjustmentAmount
)
{
this
.
yearAdjustmentAmount
=
yearAdjustmentAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.year_end_value
*
* @return the value of cit_asset_eam_mapping.year_end_value
*
* @mbg.generated
*/
public
BigDecimal
getYearEndValue
()
{
return
yearEndValue
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.year_end_value
*
* @param yearEndValue the value for cit_asset_eam_mapping.year_end_value
*
* @mbg.generated
*/
public
void
setYearEndValue
(
BigDecimal
yearEndValue
)
{
this
.
yearEndValue
=
yearEndValue
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.status
*
* @return the value of cit_asset_eam_mapping.status
*
* @mbg.generated
*/
public
Integer
getStatus
()
{
return
status
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.status
*
* @param status the value for cit_asset_eam_mapping.status
*
* @mbg.generated
*/
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.account_acquisition_value
*
* @return the value of cit_asset_eam_mapping.account_acquisition_value
*
* @mbg.generated
*/
public
BigDecimal
getAccountAcquisitionValue
()
{
return
accountAcquisitionValue
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.account_acquisition_value
*
* @param accountAcquisitionValue the value for cit_asset_eam_mapping.account_acquisition_value
*
* @mbg.generated
*/
public
void
setAccountAcquisitionValue
(
BigDecimal
accountAcquisitionValue
)
{
this
.
accountAcquisitionValue
=
accountAcquisitionValue
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.account_month_depreciation_amount
*
* @return the value of cit_asset_eam_mapping.account_month_depreciation_amount
*
* @mbg.generated
*/
public
BigDecimal
getAccountMonthDepreciationAmount
()
{
return
accountMonthDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.account_month_depreciation_amount
*
* @param accountMonthDepreciationAmount the value for cit_asset_eam_mapping.account_month_depreciation_amount
*
* @mbg.generated
*/
public
void
setAccountMonthDepreciationAmount
(
BigDecimal
accountMonthDepreciationAmount
)
{
this
.
accountMonthDepreciationAmount
=
accountMonthDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.account_year_depreciation_amount
*
* @return the value of cit_asset_eam_mapping.account_year_depreciation_amount
*
* @mbg.generated
*/
public
BigDecimal
getAccountYearDepreciationAmount
()
{
return
accountYearDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.account_year_depreciation_amount
*
* @param accountYearDepreciationAmount the value for cit_asset_eam_mapping.account_year_depreciation_amount
*
* @mbg.generated
*/
public
void
setAccountYearDepreciationAmount
(
BigDecimal
accountYearDepreciationAmount
)
{
this
.
accountYearDepreciationAmount
=
accountYearDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.account_total_depreciation_amount
*
* @return the value of cit_asset_eam_mapping.account_total_depreciation_amount
*
* @mbg.generated
*/
public
BigDecimal
getAccountTotalDepreciationAmount
()
{
return
accountTotalDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.account_total_depreciation_amount
*
* @param accountTotalDepreciationAmount the value for cit_asset_eam_mapping.account_total_depreciation_amount
*
* @mbg.generated
*/
public
void
setAccountTotalDepreciationAmount
(
BigDecimal
accountTotalDepreciationAmount
)
{
this
.
accountTotalDepreciationAmount
=
accountTotalDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.tax_depreciation_period
*
* @return the value of cit_asset_eam_mapping.tax_depreciation_period
*
* @mbg.generated
*/
public
Integer
getTaxDepreciationPeriod
()
{
return
taxDepreciationPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.tax_depreciation_period
*
* @param taxDepreciationPeriod the value for cit_asset_eam_mapping.tax_depreciation_period
*
* @mbg.generated
*/
public
void
setTaxDepreciationPeriod
(
Integer
taxDepreciationPeriod
)
{
this
.
taxDepreciationPeriod
=
taxDepreciationPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.tax_to_last_year_depreciation_period
*
* @return the value of cit_asset_eam_mapping.tax_to_last_year_depreciation_period
*
* @mbg.generated
*/
public
Integer
getTaxToLastYearDepreciationPeriod
()
{
return
taxToLastYearDepreciationPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.tax_to_last_year_depreciation_period
*
* @param taxToLastYearDepreciationPeriod the value for cit_asset_eam_mapping.tax_to_last_year_depreciation_period
*
* @mbg.generated
*/
public
void
setTaxToLastYearDepreciationPeriod
(
Integer
taxToLastYearDepreciationPeriod
)
{
this
.
taxToLastYearDepreciationPeriod
=
taxToLastYearDepreciationPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.tax_to_current_year_depreciation_period
*
* @return the value of cit_asset_eam_mapping.tax_to_current_year_depreciation_period
*
* @mbg.generated
*/
public
Integer
getTaxToCurrentYearDepreciationPeriod
()
{
return
taxToCurrentYearDepreciationPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.tax_to_current_year_depreciation_period
*
* @param taxToCurrentYearDepreciationPeriod the value for cit_asset_eam_mapping.tax_to_current_year_depreciation_period
*
* @mbg.generated
*/
public
void
setTaxToCurrentYearDepreciationPeriod
(
Integer
taxToCurrentYearDepreciationPeriod
)
{
this
.
taxToCurrentYearDepreciationPeriod
=
taxToCurrentYearDepreciationPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.tax_year_depreciation_period
*
* @return the value of cit_asset_eam_mapping.tax_year_depreciation_period
*
* @mbg.generated
*/
public
Integer
getTaxYearDepreciationPeriod
()
{
return
taxYearDepreciationPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.tax_year_depreciation_period
*
* @param taxYearDepreciationPeriod the value for cit_asset_eam_mapping.tax_year_depreciation_period
*
* @mbg.generated
*/
public
void
setTaxYearDepreciationPeriod
(
Integer
taxYearDepreciationPeriod
)
{
this
.
taxYearDepreciationPeriod
=
taxYearDepreciationPeriod
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.tax_month_depreciation_amount
*
* @return the value of cit_asset_eam_mapping.tax_month_depreciation_amount
*
* @mbg.generated
*/
public
BigDecimal
getTaxMonthDepreciationAmount
()
{
return
taxMonthDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.tax_month_depreciation_amount
*
* @param taxMonthDepreciationAmount the value for cit_asset_eam_mapping.tax_month_depreciation_amount
*
* @mbg.generated
*/
public
void
setTaxMonthDepreciationAmount
(
BigDecimal
taxMonthDepreciationAmount
)
{
this
.
taxMonthDepreciationAmount
=
taxMonthDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.tax_to_current_year_depreciation_amount
*
* @return the value of cit_asset_eam_mapping.tax_to_current_year_depreciation_amount
*
* @mbg.generated
*/
public
BigDecimal
getTaxToCurrentYearDepreciationAmount
()
{
return
taxToCurrentYearDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.tax_to_current_year_depreciation_amount
*
* @param taxToCurrentYearDepreciationAmount the value for cit_asset_eam_mapping.tax_to_current_year_depreciation_amount
*
* @mbg.generated
*/
public
void
setTaxToCurrentYearDepreciationAmount
(
BigDecimal
taxToCurrentYearDepreciationAmount
)
{
this
.
taxToCurrentYearDepreciationAmount
=
taxToCurrentYearDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.tax_current_year_depreciation_amount
*
* @return the value of cit_asset_eam_mapping.tax_current_year_depreciation_amount
*
* @mbg.generated
*/
public
BigDecimal
getTaxCurrentYearDepreciationAmount
()
{
return
taxCurrentYearDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.tax_current_year_depreciation_amount
*
* @param taxCurrentYearDepreciationAmount the value for cit_asset_eam_mapping.tax_current_year_depreciation_amount
*
* @mbg.generated
*/
public
void
setTaxCurrentYearDepreciationAmount
(
BigDecimal
taxCurrentYearDepreciationAmount
)
{
this
.
taxCurrentYearDepreciationAmount
=
taxCurrentYearDepreciationAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.total_difference_amount
*
* @return the value of cit_asset_eam_mapping.total_difference_amount
*
* @mbg.generated
*/
public
BigDecimal
getTotalDifferenceAmount
()
{
return
totalDifferenceAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.total_difference_amount
*
* @param totalDifferenceAmount the value for cit_asset_eam_mapping.total_difference_amount
*
* @mbg.generated
*/
public
void
setTotalDifferenceAmount
(
BigDecimal
totalDifferenceAmount
)
{
this
.
totalDifferenceAmount
=
totalDifferenceAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.year_difference_amount
*
* @return the value of cit_asset_eam_mapping.year_difference_amount
*
* @mbg.generated
*/
public
BigDecimal
getYearDifferenceAmount
()
{
return
yearDifferenceAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.year_difference_amount
*
* @param yearDifferenceAmount the value for cit_asset_eam_mapping.year_difference_amount
*
* @mbg.generated
*/
public
void
setYearDifferenceAmount
(
BigDecimal
yearDifferenceAmount
)
{
this
.
yearDifferenceAmount
=
yearDifferenceAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.is_retain
*
* @return the value of cit_asset_eam_mapping.is_retain
*
* @mbg.generated
*/
public
Integer
getIsRetain
()
{
return
isRetain
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.is_retain
*
* @param isRetain the value for cit_asset_eam_mapping.is_retain
*
* @mbg.generated
*/
public
void
setIsRetain
(
Integer
isRetain
)
{
this
.
isRetain
=
isRetain
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.asset_type
*
* @return the value of cit_asset_eam_mapping.asset_type
*
* @mbg.generated
*/
public
Integer
getAssetType
()
{
return
assetType
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.asset_type
*
* @param assetType the value for cit_asset_eam_mapping.asset_type
*
* @mbg.generated
*/
public
void
setAssetType
(
Integer
assetType
)
{
this
.
assetType
=
assetType
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.create_time
*
* @return the value of cit_asset_eam_mapping.create_time
*
* @mbg.generated
*/
public
Date
getCreateTime
()
{
return
createTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.create_time
*
* @param createTime the value for cit_asset_eam_mapping.create_time
*
* @mbg.generated
*/
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.update_time
*
* @return the value of cit_asset_eam_mapping.update_time
*
* @mbg.generated
*/
public
Date
getUpdateTime
()
{
return
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.update_time
*
* @param updateTime the value for cit_asset_eam_mapping.update_time
*
* @mbg.generated
*/
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.tax_account_compare
*
* @return the value of cit_asset_eam_mapping.tax_account_compare
*
* @mbg.generated
*/
public
Integer
getTaxAccountCompare
()
{
return
taxAccountCompare
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.tax_account_compare
*
* @param taxAccountCompare the value for cit_asset_eam_mapping.tax_account_compare
*
* @mbg.generated
*/
public
void
setTaxAccountCompare
(
Integer
taxAccountCompare
)
{
this
.
taxAccountCompare
=
taxAccountCompare
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.tax_group_name
*
* @return the value of cit_asset_eam_mapping.tax_group_name
*
* @mbg.generated
*/
public
String
getTaxGroupName
()
{
return
taxGroupName
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.tax_group_name
*
* @param taxGroupName the value for cit_asset_eam_mapping.tax_group_name
*
* @mbg.generated
*/
public
void
setTaxGroupName
(
String
taxGroupName
)
{
this
.
taxGroupName
=
taxGroupName
==
null
?
null
:
taxGroupName
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.scrap_type
*
* @return the value of cit_asset_eam_mapping.scrap_type
*
* @mbg.generated
*/
public
String
getScrapType
()
{
return
scrapType
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.scrap_type
*
* @param scrapType the value for cit_asset_eam_mapping.scrap_type
*
* @mbg.generated
*/
public
void
setScrapType
(
String
scrapType
)
{
this
.
scrapType
=
scrapType
==
null
?
null
:
scrapType
.
trim
();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.compensation_sale_amount
*
* @return the value of cit_asset_eam_mapping.compensation_sale_amount
*
* @mbg.generated
*/
public
BigDecimal
getCompensationSaleAmount
()
{
return
compensationSaleAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.compensation_sale_amount
*
* @param compensationSaleAmount the value for cit_asset_eam_mapping.compensation_sale_amount
*
* @mbg.generated
*/
public
void
setCompensationSaleAmount
(
BigDecimal
compensationSaleAmount
)
{
this
.
compensationSaleAmount
=
compensationSaleAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.sale_amount
*
* @return the value of cit_asset_eam_mapping.sale_amount
*
* @mbg.generated
*/
public
BigDecimal
getSaleAmount
()
{
return
saleAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.sale_amount
*
* @param saleAmount the value for cit_asset_eam_mapping.sale_amount
*
* @mbg.generated
*/
public
void
setSaleAmount
(
BigDecimal
saleAmount
)
{
this
.
saleAmount
=
saleAmount
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.disposal_profit_and_loss
*
* @return the value of cit_asset_eam_mapping.disposal_profit_and_loss
*
* @mbg.generated
*/
public
BigDecimal
getDisposalProfitAndLoss
()
{
return
disposalProfitAndLoss
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.disposal_profit_and_loss
*
* @param disposalProfitAndLoss the value for cit_asset_eam_mapping.disposal_profit_and_loss
*
* @mbg.generated
*/
public
void
setDisposalProfitAndLoss
(
BigDecimal
disposalProfitAndLoss
)
{
this
.
disposalProfitAndLoss
=
disposalProfitAndLoss
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.tax_net_value
*
* @return the value of cit_asset_eam_mapping.tax_net_value
*
* @mbg.generated
*/
public
BigDecimal
getTaxNetValue
()
{
return
taxNetValue
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.tax_net_value
*
* @param taxNetValue the value for cit_asset_eam_mapping.tax_net_value
*
* @mbg.generated
*/
public
void
setTaxNetValue
(
BigDecimal
taxNetValue
)
{
this
.
taxNetValue
=
taxNetValue
;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column cit_asset_eam_mapping.disposal_tax_benefit
*
* @return the value of cit_asset_eam_mapping.disposal_tax_benefit
*
* @mbg.generated
*/
public
BigDecimal
getDisposalTaxBenefit
()
{
return
disposalTaxBenefit
;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column cit_asset_eam_mapping.disposal_tax_benefit
*
* @param disposalTaxBenefit the value for cit_asset_eam_mapping.disposal_tax_benefit
*
* @mbg.generated
*/
public
void
setDisposalTaxBenefit
(
BigDecimal
disposalTaxBenefit
)
{
this
.
disposalTaxBenefit
=
disposalTaxBenefit
;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cit_asset_eam_mapping
*
* @mbg.generated
*/
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
getClass
().
getSimpleName
());
sb
.
append
(
" ["
);
sb
.
append
(
"Hash = "
).
append
(
hashCode
());
sb
.
append
(
", id="
).
append
(
id
);
sb
.
append
(
", projectId="
).
append
(
projectId
);
sb
.
append
(
", period="
).
append
(
period
);
sb
.
append
(
", assetNumber="
).
append
(
assetNumber
);
sb
.
append
(
", serialNumber="
).
append
(
serialNumber
);
sb
.
append
(
", assetGroupName="
).
append
(
assetGroupName
);
sb
.
append
(
", assetDetailGroupId="
).
append
(
assetDetailGroupId
);
sb
.
append
(
", assetDescription="
).
append
(
assetDescription
);
sb
.
append
(
", buyDate="
).
append
(
buyDate
);
sb
.
append
(
", depreciationDate="
).
append
(
depreciationDate
);
sb
.
append
(
", depreciationPeriod="
).
append
(
depreciationPeriod
);
sb
.
append
(
", acquisitionValue="
).
append
(
acquisitionValue
);
sb
.
append
(
", adjustmentValue="
).
append
(
adjustmentValue
);
sb
.
append
(
", disposedDate="
).
append
(
disposedDate
);
sb
.
append
(
", residualRate="
).
append
(
residualRate
);
sb
.
append
(
", yearDepreciationAmount="
).
append
(
yearDepreciationAmount
);
sb
.
append
(
", yearAdjustmentAmount="
).
append
(
yearAdjustmentAmount
);
sb
.
append
(
", yearEndValue="
).
append
(
yearEndValue
);
sb
.
append
(
", status="
).
append
(
status
);
sb
.
append
(
", accountAcquisitionValue="
).
append
(
accountAcquisitionValue
);
sb
.
append
(
", accountMonthDepreciationAmount="
).
append
(
accountMonthDepreciationAmount
);
sb
.
append
(
", accountYearDepreciationAmount="
).
append
(
accountYearDepreciationAmount
);
sb
.
append
(
", accountTotalDepreciationAmount="
).
append
(
accountTotalDepreciationAmount
);
sb
.
append
(
", taxDepreciationPeriod="
).
append
(
taxDepreciationPeriod
);
sb
.
append
(
", taxToLastYearDepreciationPeriod="
).
append
(
taxToLastYearDepreciationPeriod
);
sb
.
append
(
", taxToCurrentYearDepreciationPeriod="
).
append
(
taxToCurrentYearDepreciationPeriod
);
sb
.
append
(
", taxYearDepreciationPeriod="
).
append
(
taxYearDepreciationPeriod
);
sb
.
append
(
", taxMonthDepreciationAmount="
).
append
(
taxMonthDepreciationAmount
);
sb
.
append
(
", taxToCurrentYearDepreciationAmount="
).
append
(
taxToCurrentYearDepreciationAmount
);
sb
.
append
(
", taxCurrentYearDepreciationAmount="
).
append
(
taxCurrentYearDepreciationAmount
);
sb
.
append
(
", totalDifferenceAmount="
).
append
(
totalDifferenceAmount
);
sb
.
append
(
", yearDifferenceAmount="
).
append
(
yearDifferenceAmount
);
sb
.
append
(
", isRetain="
).
append
(
isRetain
);
sb
.
append
(
", assetType="
).
append
(
assetType
);
sb
.
append
(
", createTime="
).
append
(
createTime
);
sb
.
append
(
", updateTime="
).
append
(
updateTime
);
sb
.
append
(
", taxAccountCompare="
).
append
(
taxAccountCompare
);
sb
.
append
(
", taxGroupName="
).
append
(
taxGroupName
);
sb
.
append
(
", scrapType="
).
append
(
scrapType
);
sb
.
append
(
", compensationSaleAmount="
).
append
(
compensationSaleAmount
);
sb
.
append
(
", saleAmount="
).
append
(
saleAmount
);
sb
.
append
(
", disposalProfitAndLoss="
).
append
(
disposalProfitAndLoss
);
sb
.
append
(
", taxNetValue="
).
append
(
taxNetValue
);
sb
.
append
(
", disposalTaxBenefit="
).
append
(
disposalTaxBenefit
);
sb
.
append
(
"]"
);
return
sb
.
toString
();
}
}
\ No newline at end of file
atms-dao/src/main/java/pwc/taxtech/atms/entity/CitAssetEamMappingExample.java
0 → 100644
View file @
e7c526d4
This source diff could not be displayed because it is too large. You can
view the blob
instead.
atms-dao/src/main/resources/pwc/taxtech/atms/dao/CitAssetEamMappingMapper.xml
0 → 100644
View file @
e7c526d4
<?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.dao.CitAssetEamMappingMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.entity.CitAssetEamMapping"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"project_id"
jdbcType=
"VARCHAR"
property=
"projectId"
/>
<result
column=
"period"
jdbcType=
"INTEGER"
property=
"period"
/>
<result
column=
"asset_number"
jdbcType=
"VARCHAR"
property=
"assetNumber"
/>
<result
column=
"serial_number"
jdbcType=
"VARCHAR"
property=
"serialNumber"
/>
<result
column=
"asset_group_name"
jdbcType=
"VARCHAR"
property=
"assetGroupName"
/>
<result
column=
"asset_detail_group_id"
jdbcType=
"BIGINT"
property=
"assetDetailGroupId"
/>
<result
column=
"asset_description"
jdbcType=
"VARCHAR"
property=
"assetDescription"
/>
<result
column=
"buy_date"
jdbcType=
"TIMESTAMP"
property=
"buyDate"
/>
<result
column=
"depreciation_date"
jdbcType=
"TIMESTAMP"
property=
"depreciationDate"
/>
<result
column=
"depreciation_period"
jdbcType=
"INTEGER"
property=
"depreciationPeriod"
/>
<result
column=
"acquisition_value"
jdbcType=
"DECIMAL"
property=
"acquisitionValue"
/>
<result
column=
"adjustment_value"
jdbcType=
"DECIMAL"
property=
"adjustmentValue"
/>
<result
column=
"disposed_date"
jdbcType=
"TIMESTAMP"
property=
"disposedDate"
/>
<result
column=
"residual_rate"
jdbcType=
"DECIMAL"
property=
"residualRate"
/>
<result
column=
"year_depreciation_amount"
jdbcType=
"DECIMAL"
property=
"yearDepreciationAmount"
/>
<result
column=
"year_adjustment_amount"
jdbcType=
"DECIMAL"
property=
"yearAdjustmentAmount"
/>
<result
column=
"year_end_value"
jdbcType=
"DECIMAL"
property=
"yearEndValue"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"account_acquisition_value"
jdbcType=
"DECIMAL"
property=
"accountAcquisitionValue"
/>
<result
column=
"account_month_depreciation_amount"
jdbcType=
"DECIMAL"
property=
"accountMonthDepreciationAmount"
/>
<result
column=
"account_year_depreciation_amount"
jdbcType=
"DECIMAL"
property=
"accountYearDepreciationAmount"
/>
<result
column=
"account_total_depreciation_amount"
jdbcType=
"DECIMAL"
property=
"accountTotalDepreciationAmount"
/>
<result
column=
"tax_depreciation_period"
jdbcType=
"INTEGER"
property=
"taxDepreciationPeriod"
/>
<result
column=
"tax_to_last_year_depreciation_period"
jdbcType=
"INTEGER"
property=
"taxToLastYearDepreciationPeriod"
/>
<result
column=
"tax_to_current_year_depreciation_period"
jdbcType=
"INTEGER"
property=
"taxToCurrentYearDepreciationPeriod"
/>
<result
column=
"tax_year_depreciation_period"
jdbcType=
"INTEGER"
property=
"taxYearDepreciationPeriod"
/>
<result
column=
"tax_month_depreciation_amount"
jdbcType=
"DECIMAL"
property=
"taxMonthDepreciationAmount"
/>
<result
column=
"tax_to_current_year_depreciation_amount"
jdbcType=
"DECIMAL"
property=
"taxToCurrentYearDepreciationAmount"
/>
<result
column=
"tax_current_year_depreciation_amount"
jdbcType=
"DECIMAL"
property=
"taxCurrentYearDepreciationAmount"
/>
<result
column=
"total_difference_amount"
jdbcType=
"DECIMAL"
property=
"totalDifferenceAmount"
/>
<result
column=
"year_difference_amount"
jdbcType=
"DECIMAL"
property=
"yearDifferenceAmount"
/>
<result
column=
"is_retain"
jdbcType=
"INTEGER"
property=
"isRetain"
/>
<result
column=
"asset_type"
jdbcType=
"INTEGER"
property=
"assetType"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"tax_account_compare"
jdbcType=
"INTEGER"
property=
"taxAccountCompare"
/>
<result
column=
"tax_group_name"
jdbcType=
"VARCHAR"
property=
"taxGroupName"
/>
<result
column=
"scrap_type"
jdbcType=
"VARCHAR"
property=
"scrapType"
/>
<result
column=
"compensation_sale_amount"
jdbcType=
"DECIMAL"
property=
"compensationSaleAmount"
/>
<result
column=
"sale_amount"
jdbcType=
"DECIMAL"
property=
"saleAmount"
/>
<result
column=
"disposal_profit_and_loss"
jdbcType=
"DECIMAL"
property=
"disposalProfitAndLoss"
/>
<result
column=
"tax_net_value"
jdbcType=
"DECIMAL"
property=
"taxNetValue"
/>
<result
column=
"disposal_tax_benefit"
jdbcType=
"DECIMAL"
property=
"disposalTaxBenefit"
/>
</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>
</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>
</where>
</sql>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
id, project_id, period, asset_number, serial_number, asset_group_name, asset_detail_group_id,
asset_description, buy_date, depreciation_date, depreciation_period, acquisition_value,
adjustment_value, disposed_date, residual_rate, year_depreciation_amount, year_adjustment_amount,
year_end_value, status, account_acquisition_value, account_month_depreciation_amount,
account_year_depreciation_amount, account_total_depreciation_amount, tax_depreciation_period,
tax_to_last_year_depreciation_period, tax_to_current_year_depreciation_period, tax_year_depreciation_period,
tax_month_depreciation_amount, tax_to_current_year_depreciation_amount, tax_current_year_depreciation_amount,
total_difference_amount, year_difference_amount, is_retain, asset_type, create_time,
update_time, tax_account_compare, tax_group_name, scrap_type, compensation_sale_amount,
sale_amount, disposal_profit_and_loss, tax_net_value, disposal_tax_benefit
</sql>
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.entity.CitAssetEamMappingExample"
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 cit_asset_eam_mapping
<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.Long"
resultMap=
"BaseResultMap"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include
refid=
"Base_Column_List"
/>
from cit_asset_eam_mapping
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from cit_asset_eam_mapping
where id = #{id,jdbcType=BIGINT}
</delete>
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.entity.CitAssetEamMappingExample"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from cit_asset_eam_mapping
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
</delete>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.entity.CitAssetEamMapping"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into cit_asset_eam_mapping (id, project_id, period,
asset_number, serial_number, asset_group_name,
asset_detail_group_id, asset_description, buy_date,
depreciation_date, depreciation_period,
acquisition_value, adjustment_value, disposed_date,
residual_rate, year_depreciation_amount, year_adjustment_amount,
year_end_value, status, account_acquisition_value,
account_month_depreciation_amount, account_year_depreciation_amount,
account_total_depreciation_amount, tax_depreciation_period,
tax_to_last_year_depreciation_period, tax_to_current_year_depreciation_period,
tax_year_depreciation_period, tax_month_depreciation_amount,
tax_to_current_year_depreciation_amount, tax_current_year_depreciation_amount,
total_difference_amount, year_difference_amount,
is_retain, asset_type, create_time,
update_time, tax_account_compare, tax_group_name,
scrap_type, compensation_sale_amount, sale_amount,
disposal_profit_and_loss, tax_net_value, disposal_tax_benefit
)
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=VARCHAR}, #{period,jdbcType=INTEGER},
#{assetNumber,jdbcType=VARCHAR}, #{serialNumber,jdbcType=VARCHAR}, #{assetGroupName,jdbcType=VARCHAR},
#{assetDetailGroupId,jdbcType=BIGINT}, #{assetDescription,jdbcType=VARCHAR}, #{buyDate,jdbcType=TIMESTAMP},
#{depreciationDate,jdbcType=TIMESTAMP}, #{depreciationPeriod,jdbcType=INTEGER},
#{acquisitionValue,jdbcType=DECIMAL}, #{adjustmentValue,jdbcType=DECIMAL}, #{disposedDate,jdbcType=TIMESTAMP},
#{residualRate,jdbcType=DECIMAL}, #{yearDepreciationAmount,jdbcType=DECIMAL}, #{yearAdjustmentAmount,jdbcType=DECIMAL},
#{yearEndValue,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, #{accountAcquisitionValue,jdbcType=DECIMAL},
#{accountMonthDepreciationAmount,jdbcType=DECIMAL}, #{accountYearDepreciationAmount,jdbcType=DECIMAL},
#{accountTotalDepreciationAmount,jdbcType=DECIMAL}, #{taxDepreciationPeriod,jdbcType=INTEGER},
#{taxToLastYearDepreciationPeriod,jdbcType=INTEGER}, #{taxToCurrentYearDepreciationPeriod,jdbcType=INTEGER},
#{taxYearDepreciationPeriod,jdbcType=INTEGER}, #{taxMonthDepreciationAmount,jdbcType=DECIMAL},
#{taxToCurrentYearDepreciationAmount,jdbcType=DECIMAL}, #{taxCurrentYearDepreciationAmount,jdbcType=DECIMAL},
#{totalDifferenceAmount,jdbcType=DECIMAL}, #{yearDifferenceAmount,jdbcType=DECIMAL},
#{isRetain,jdbcType=INTEGER}, #{assetType,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{taxAccountCompare,jdbcType=INTEGER}, #{taxGroupName,jdbcType=VARCHAR},
#{scrapType,jdbcType=VARCHAR}, #{compensationSaleAmount,jdbcType=DECIMAL}, #{saleAmount,jdbcType=DECIMAL},
#{disposalProfitAndLoss,jdbcType=DECIMAL}, #{taxNetValue,jdbcType=DECIMAL}, #{disposalTaxBenefit,jdbcType=DECIMAL}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.entity.CitAssetEamMapping"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into cit_asset_eam_mapping
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"projectId != null"
>
project_id,
</if>
<if
test=
"period != null"
>
period,
</if>
<if
test=
"assetNumber != null"
>
asset_number,
</if>
<if
test=
"serialNumber != null"
>
serial_number,
</if>
<if
test=
"assetGroupName != null"
>
asset_group_name,
</if>
<if
test=
"assetDetailGroupId != null"
>
asset_detail_group_id,
</if>
<if
test=
"assetDescription != null"
>
asset_description,
</if>
<if
test=
"buyDate != null"
>
buy_date,
</if>
<if
test=
"depreciationDate != null"
>
depreciation_date,
</if>
<if
test=
"depreciationPeriod != null"
>
depreciation_period,
</if>
<if
test=
"acquisitionValue != null"
>
acquisition_value,
</if>
<if
test=
"adjustmentValue != null"
>
adjustment_value,
</if>
<if
test=
"disposedDate != null"
>
disposed_date,
</if>
<if
test=
"residualRate != null"
>
residual_rate,
</if>
<if
test=
"yearDepreciationAmount != null"
>
year_depreciation_amount,
</if>
<if
test=
"yearAdjustmentAmount != null"
>
year_adjustment_amount,
</if>
<if
test=
"yearEndValue != null"
>
year_end_value,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"accountAcquisitionValue != null"
>
account_acquisition_value,
</if>
<if
test=
"accountMonthDepreciationAmount != null"
>
account_month_depreciation_amount,
</if>
<if
test=
"accountYearDepreciationAmount != null"
>
account_year_depreciation_amount,
</if>
<if
test=
"accountTotalDepreciationAmount != null"
>
account_total_depreciation_amount,
</if>
<if
test=
"taxDepreciationPeriod != null"
>
tax_depreciation_period,
</if>
<if
test=
"taxToLastYearDepreciationPeriod != null"
>
tax_to_last_year_depreciation_period,
</if>
<if
test=
"taxToCurrentYearDepreciationPeriod != null"
>
tax_to_current_year_depreciation_period,
</if>
<if
test=
"taxYearDepreciationPeriod != null"
>
tax_year_depreciation_period,
</if>
<if
test=
"taxMonthDepreciationAmount != null"
>
tax_month_depreciation_amount,
</if>
<if
test=
"taxToCurrentYearDepreciationAmount != null"
>
tax_to_current_year_depreciation_amount,
</if>
<if
test=
"taxCurrentYearDepreciationAmount != null"
>
tax_current_year_depreciation_amount,
</if>
<if
test=
"totalDifferenceAmount != null"
>
total_difference_amount,
</if>
<if
test=
"yearDifferenceAmount != null"
>
year_difference_amount,
</if>
<if
test=
"isRetain != null"
>
is_retain,
</if>
<if
test=
"assetType != null"
>
asset_type,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"taxAccountCompare != null"
>
tax_account_compare,
</if>
<if
test=
"taxGroupName != null"
>
tax_group_name,
</if>
<if
test=
"scrapType != null"
>
scrap_type,
</if>
<if
test=
"compensationSaleAmount != null"
>
compensation_sale_amount,
</if>
<if
test=
"saleAmount != null"
>
sale_amount,
</if>
<if
test=
"disposalProfitAndLoss != null"
>
disposal_profit_and_loss,
</if>
<if
test=
"taxNetValue != null"
>
tax_net_value,
</if>
<if
test=
"disposalTaxBenefit != null"
>
disposal_tax_benefit,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=BIGINT},
</if>
<if
test=
"projectId != null"
>
#{projectId,jdbcType=VARCHAR},
</if>
<if
test=
"period != null"
>
#{period,jdbcType=INTEGER},
</if>
<if
test=
"assetNumber != null"
>
#{assetNumber,jdbcType=VARCHAR},
</if>
<if
test=
"serialNumber != null"
>
#{serialNumber,jdbcType=VARCHAR},
</if>
<if
test=
"assetGroupName != null"
>
#{assetGroupName,jdbcType=VARCHAR},
</if>
<if
test=
"assetDetailGroupId != null"
>
#{assetDetailGroupId,jdbcType=BIGINT},
</if>
<if
test=
"assetDescription != null"
>
#{assetDescription,jdbcType=VARCHAR},
</if>
<if
test=
"buyDate != null"
>
#{buyDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"depreciationDate != null"
>
#{depreciationDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"depreciationPeriod != null"
>
#{depreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"acquisitionValue != null"
>
#{acquisitionValue,jdbcType=DECIMAL},
</if>
<if
test=
"adjustmentValue != null"
>
#{adjustmentValue,jdbcType=DECIMAL},
</if>
<if
test=
"disposedDate != null"
>
#{disposedDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"residualRate != null"
>
#{residualRate,jdbcType=DECIMAL},
</if>
<if
test=
"yearDepreciationAmount != null"
>
#{yearDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"yearAdjustmentAmount != null"
>
#{yearAdjustmentAmount,jdbcType=DECIMAL},
</if>
<if
test=
"yearEndValue != null"
>
#{yearEndValue,jdbcType=DECIMAL},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
</if>
<if
test=
"accountAcquisitionValue != null"
>
#{accountAcquisitionValue,jdbcType=DECIMAL},
</if>
<if
test=
"accountMonthDepreciationAmount != null"
>
#{accountMonthDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"accountYearDepreciationAmount != null"
>
#{accountYearDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"accountTotalDepreciationAmount != null"
>
#{accountTotalDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"taxDepreciationPeriod != null"
>
#{taxDepreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"taxToLastYearDepreciationPeriod != null"
>
#{taxToLastYearDepreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"taxToCurrentYearDepreciationPeriod != null"
>
#{taxToCurrentYearDepreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"taxYearDepreciationPeriod != null"
>
#{taxYearDepreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"taxMonthDepreciationAmount != null"
>
#{taxMonthDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"taxToCurrentYearDepreciationAmount != null"
>
#{taxToCurrentYearDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"taxCurrentYearDepreciationAmount != null"
>
#{taxCurrentYearDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"totalDifferenceAmount != null"
>
#{totalDifferenceAmount,jdbcType=DECIMAL},
</if>
<if
test=
"yearDifferenceAmount != null"
>
#{yearDifferenceAmount,jdbcType=DECIMAL},
</if>
<if
test=
"isRetain != null"
>
#{isRetain,jdbcType=INTEGER},
</if>
<if
test=
"assetType != null"
>
#{assetType,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"taxAccountCompare != null"
>
#{taxAccountCompare,jdbcType=INTEGER},
</if>
<if
test=
"taxGroupName != null"
>
#{taxGroupName,jdbcType=VARCHAR},
</if>
<if
test=
"scrapType != null"
>
#{scrapType,jdbcType=VARCHAR},
</if>
<if
test=
"compensationSaleAmount != null"
>
#{compensationSaleAmount,jdbcType=DECIMAL},
</if>
<if
test=
"saleAmount != null"
>
#{saleAmount,jdbcType=DECIMAL},
</if>
<if
test=
"disposalProfitAndLoss != null"
>
#{disposalProfitAndLoss,jdbcType=DECIMAL},
</if>
<if
test=
"taxNetValue != null"
>
#{taxNetValue,jdbcType=DECIMAL},
</if>
<if
test=
"disposalTaxBenefit != null"
>
#{disposalTaxBenefit,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.entity.CitAssetEamMappingExample"
resultType=
"java.lang.Long"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from cit_asset_eam_mapping
<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 cit_asset_eam_mapping
<set>
<if
test=
"record.id != null"
>
id = #{record.id,jdbcType=BIGINT},
</if>
<if
test=
"record.projectId != null"
>
project_id = #{record.projectId,jdbcType=VARCHAR},
</if>
<if
test=
"record.period != null"
>
period = #{record.period,jdbcType=INTEGER},
</if>
<if
test=
"record.assetNumber != null"
>
asset_number = #{record.assetNumber,jdbcType=VARCHAR},
</if>
<if
test=
"record.serialNumber != null"
>
serial_number = #{record.serialNumber,jdbcType=VARCHAR},
</if>
<if
test=
"record.assetGroupName != null"
>
asset_group_name = #{record.assetGroupName,jdbcType=VARCHAR},
</if>
<if
test=
"record.assetDetailGroupId != null"
>
asset_detail_group_id = #{record.assetDetailGroupId,jdbcType=BIGINT},
</if>
<if
test=
"record.assetDescription != null"
>
asset_description = #{record.assetDescription,jdbcType=VARCHAR},
</if>
<if
test=
"record.buyDate != null"
>
buy_date = #{record.buyDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.depreciationDate != null"
>
depreciation_date = #{record.depreciationDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.depreciationPeriod != null"
>
depreciation_period = #{record.depreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"record.acquisitionValue != null"
>
acquisition_value = #{record.acquisitionValue,jdbcType=DECIMAL},
</if>
<if
test=
"record.adjustmentValue != null"
>
adjustment_value = #{record.adjustmentValue,jdbcType=DECIMAL},
</if>
<if
test=
"record.disposedDate != null"
>
disposed_date = #{record.disposedDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.residualRate != null"
>
residual_rate = #{record.residualRate,jdbcType=DECIMAL},
</if>
<if
test=
"record.yearDepreciationAmount != null"
>
year_depreciation_amount = #{record.yearDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.yearAdjustmentAmount != null"
>
year_adjustment_amount = #{record.yearAdjustmentAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.yearEndValue != null"
>
year_end_value = #{record.yearEndValue,jdbcType=DECIMAL},
</if>
<if
test=
"record.status != null"
>
status = #{record.status,jdbcType=INTEGER},
</if>
<if
test=
"record.accountAcquisitionValue != null"
>
account_acquisition_value = #{record.accountAcquisitionValue,jdbcType=DECIMAL},
</if>
<if
test=
"record.accountMonthDepreciationAmount != null"
>
account_month_depreciation_amount = #{record.accountMonthDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.accountYearDepreciationAmount != null"
>
account_year_depreciation_amount = #{record.accountYearDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.accountTotalDepreciationAmount != null"
>
account_total_depreciation_amount = #{record.accountTotalDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.taxDepreciationPeriod != null"
>
tax_depreciation_period = #{record.taxDepreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"record.taxToLastYearDepreciationPeriod != null"
>
tax_to_last_year_depreciation_period = #{record.taxToLastYearDepreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"record.taxToCurrentYearDepreciationPeriod != null"
>
tax_to_current_year_depreciation_period = #{record.taxToCurrentYearDepreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"record.taxYearDepreciationPeriod != null"
>
tax_year_depreciation_period = #{record.taxYearDepreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"record.taxMonthDepreciationAmount != null"
>
tax_month_depreciation_amount = #{record.taxMonthDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.taxToCurrentYearDepreciationAmount != null"
>
tax_to_current_year_depreciation_amount = #{record.taxToCurrentYearDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.taxCurrentYearDepreciationAmount != null"
>
tax_current_year_depreciation_amount = #{record.taxCurrentYearDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.totalDifferenceAmount != null"
>
total_difference_amount = #{record.totalDifferenceAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.yearDifferenceAmount != null"
>
year_difference_amount = #{record.yearDifferenceAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.isRetain != null"
>
is_retain = #{record.isRetain,jdbcType=INTEGER},
</if>
<if
test=
"record.assetType != null"
>
asset_type = #{record.assetType,jdbcType=INTEGER},
</if>
<if
test=
"record.createTime != null"
>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.updateTime != null"
>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"record.taxAccountCompare != null"
>
tax_account_compare = #{record.taxAccountCompare,jdbcType=INTEGER},
</if>
<if
test=
"record.taxGroupName != null"
>
tax_group_name = #{record.taxGroupName,jdbcType=VARCHAR},
</if>
<if
test=
"record.scrapType != null"
>
scrap_type = #{record.scrapType,jdbcType=VARCHAR},
</if>
<if
test=
"record.compensationSaleAmount != null"
>
compensation_sale_amount = #{record.compensationSaleAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.saleAmount != null"
>
sale_amount = #{record.saleAmount,jdbcType=DECIMAL},
</if>
<if
test=
"record.disposalProfitAndLoss != null"
>
disposal_profit_and_loss = #{record.disposalProfitAndLoss,jdbcType=DECIMAL},
</if>
<if
test=
"record.taxNetValue != null"
>
tax_net_value = #{record.taxNetValue,jdbcType=DECIMAL},
</if>
<if
test=
"record.disposalTaxBenefit != null"
>
disposal_tax_benefit = #{record.disposalTaxBenefit,jdbcType=DECIMAL},
</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 cit_asset_eam_mapping
set id = #{record.id,jdbcType=BIGINT},
project_id = #{record.projectId,jdbcType=VARCHAR},
period = #{record.period,jdbcType=INTEGER},
asset_number = #{record.assetNumber,jdbcType=VARCHAR},
serial_number = #{record.serialNumber,jdbcType=VARCHAR},
asset_group_name = #{record.assetGroupName,jdbcType=VARCHAR},
asset_detail_group_id = #{record.assetDetailGroupId,jdbcType=BIGINT},
asset_description = #{record.assetDescription,jdbcType=VARCHAR},
buy_date = #{record.buyDate,jdbcType=TIMESTAMP},
depreciation_date = #{record.depreciationDate,jdbcType=TIMESTAMP},
depreciation_period = #{record.depreciationPeriod,jdbcType=INTEGER},
acquisition_value = #{record.acquisitionValue,jdbcType=DECIMAL},
adjustment_value = #{record.adjustmentValue,jdbcType=DECIMAL},
disposed_date = #{record.disposedDate,jdbcType=TIMESTAMP},
residual_rate = #{record.residualRate,jdbcType=DECIMAL},
year_depreciation_amount = #{record.yearDepreciationAmount,jdbcType=DECIMAL},
year_adjustment_amount = #{record.yearAdjustmentAmount,jdbcType=DECIMAL},
year_end_value = #{record.yearEndValue,jdbcType=DECIMAL},
status = #{record.status,jdbcType=INTEGER},
account_acquisition_value = #{record.accountAcquisitionValue,jdbcType=DECIMAL},
account_month_depreciation_amount = #{record.accountMonthDepreciationAmount,jdbcType=DECIMAL},
account_year_depreciation_amount = #{record.accountYearDepreciationAmount,jdbcType=DECIMAL},
account_total_depreciation_amount = #{record.accountTotalDepreciationAmount,jdbcType=DECIMAL},
tax_depreciation_period = #{record.taxDepreciationPeriod,jdbcType=INTEGER},
tax_to_last_year_depreciation_period = #{record.taxToLastYearDepreciationPeriod,jdbcType=INTEGER},
tax_to_current_year_depreciation_period = #{record.taxToCurrentYearDepreciationPeriod,jdbcType=INTEGER},
tax_year_depreciation_period = #{record.taxYearDepreciationPeriod,jdbcType=INTEGER},
tax_month_depreciation_amount = #{record.taxMonthDepreciationAmount,jdbcType=DECIMAL},
tax_to_current_year_depreciation_amount = #{record.taxToCurrentYearDepreciationAmount,jdbcType=DECIMAL},
tax_current_year_depreciation_amount = #{record.taxCurrentYearDepreciationAmount,jdbcType=DECIMAL},
total_difference_amount = #{record.totalDifferenceAmount,jdbcType=DECIMAL},
year_difference_amount = #{record.yearDifferenceAmount,jdbcType=DECIMAL},
is_retain = #{record.isRetain,jdbcType=INTEGER},
asset_type = #{record.assetType,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
tax_account_compare = #{record.taxAccountCompare,jdbcType=INTEGER},
tax_group_name = #{record.taxGroupName,jdbcType=VARCHAR},
scrap_type = #{record.scrapType,jdbcType=VARCHAR},
compensation_sale_amount = #{record.compensationSaleAmount,jdbcType=DECIMAL},
sale_amount = #{record.saleAmount,jdbcType=DECIMAL},
disposal_profit_and_loss = #{record.disposalProfitAndLoss,jdbcType=DECIMAL},
tax_net_value = #{record.taxNetValue,jdbcType=DECIMAL},
disposal_tax_benefit = #{record.disposalTaxBenefit,jdbcType=DECIMAL}
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.entity.CitAssetEamMapping"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update cit_asset_eam_mapping
<set>
<if
test=
"projectId != null"
>
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if
test=
"period != null"
>
period = #{period,jdbcType=INTEGER},
</if>
<if
test=
"assetNumber != null"
>
asset_number = #{assetNumber,jdbcType=VARCHAR},
</if>
<if
test=
"serialNumber != null"
>
serial_number = #{serialNumber,jdbcType=VARCHAR},
</if>
<if
test=
"assetGroupName != null"
>
asset_group_name = #{assetGroupName,jdbcType=VARCHAR},
</if>
<if
test=
"assetDetailGroupId != null"
>
asset_detail_group_id = #{assetDetailGroupId,jdbcType=BIGINT},
</if>
<if
test=
"assetDescription != null"
>
asset_description = #{assetDescription,jdbcType=VARCHAR},
</if>
<if
test=
"buyDate != null"
>
buy_date = #{buyDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"depreciationDate != null"
>
depreciation_date = #{depreciationDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"depreciationPeriod != null"
>
depreciation_period = #{depreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"acquisitionValue != null"
>
acquisition_value = #{acquisitionValue,jdbcType=DECIMAL},
</if>
<if
test=
"adjustmentValue != null"
>
adjustment_value = #{adjustmentValue,jdbcType=DECIMAL},
</if>
<if
test=
"disposedDate != null"
>
disposed_date = #{disposedDate,jdbcType=TIMESTAMP},
</if>
<if
test=
"residualRate != null"
>
residual_rate = #{residualRate,jdbcType=DECIMAL},
</if>
<if
test=
"yearDepreciationAmount != null"
>
year_depreciation_amount = #{yearDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"yearAdjustmentAmount != null"
>
year_adjustment_amount = #{yearAdjustmentAmount,jdbcType=DECIMAL},
</if>
<if
test=
"yearEndValue != null"
>
year_end_value = #{yearEndValue,jdbcType=DECIMAL},
</if>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"accountAcquisitionValue != null"
>
account_acquisition_value = #{accountAcquisitionValue,jdbcType=DECIMAL},
</if>
<if
test=
"accountMonthDepreciationAmount != null"
>
account_month_depreciation_amount = #{accountMonthDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"accountYearDepreciationAmount != null"
>
account_year_depreciation_amount = #{accountYearDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"accountTotalDepreciationAmount != null"
>
account_total_depreciation_amount = #{accountTotalDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"taxDepreciationPeriod != null"
>
tax_depreciation_period = #{taxDepreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"taxToLastYearDepreciationPeriod != null"
>
tax_to_last_year_depreciation_period = #{taxToLastYearDepreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"taxToCurrentYearDepreciationPeriod != null"
>
tax_to_current_year_depreciation_period = #{taxToCurrentYearDepreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"taxYearDepreciationPeriod != null"
>
tax_year_depreciation_period = #{taxYearDepreciationPeriod,jdbcType=INTEGER},
</if>
<if
test=
"taxMonthDepreciationAmount != null"
>
tax_month_depreciation_amount = #{taxMonthDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"taxToCurrentYearDepreciationAmount != null"
>
tax_to_current_year_depreciation_amount = #{taxToCurrentYearDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"taxCurrentYearDepreciationAmount != null"
>
tax_current_year_depreciation_amount = #{taxCurrentYearDepreciationAmount,jdbcType=DECIMAL},
</if>
<if
test=
"totalDifferenceAmount != null"
>
total_difference_amount = #{totalDifferenceAmount,jdbcType=DECIMAL},
</if>
<if
test=
"yearDifferenceAmount != null"
>
year_difference_amount = #{yearDifferenceAmount,jdbcType=DECIMAL},
</if>
<if
test=
"isRetain != null"
>
is_retain = #{isRetain,jdbcType=INTEGER},
</if>
<if
test=
"assetType != null"
>
asset_type = #{assetType,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"taxAccountCompare != null"
>
tax_account_compare = #{taxAccountCompare,jdbcType=INTEGER},
</if>
<if
test=
"taxGroupName != null"
>
tax_group_name = #{taxGroupName,jdbcType=VARCHAR},
</if>
<if
test=
"scrapType != null"
>
scrap_type = #{scrapType,jdbcType=VARCHAR},
</if>
<if
test=
"compensationSaleAmount != null"
>
compensation_sale_amount = #{compensationSaleAmount,jdbcType=DECIMAL},
</if>
<if
test=
"saleAmount != null"
>
sale_amount = #{saleAmount,jdbcType=DECIMAL},
</if>
<if
test=
"disposalProfitAndLoss != null"
>
disposal_profit_and_loss = #{disposalProfitAndLoss,jdbcType=DECIMAL},
</if>
<if
test=
"taxNetValue != null"
>
tax_net_value = #{taxNetValue,jdbcType=DECIMAL},
</if>
<if
test=
"disposalTaxBenefit != null"
>
disposal_tax_benefit = #{disposalTaxBenefit,jdbcType=DECIMAL},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.entity.CitAssetEamMapping"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update cit_asset_eam_mapping
set project_id = #{projectId,jdbcType=VARCHAR},
period = #{period,jdbcType=INTEGER},
asset_number = #{assetNumber,jdbcType=VARCHAR},
serial_number = #{serialNumber,jdbcType=VARCHAR},
asset_group_name = #{assetGroupName,jdbcType=VARCHAR},
asset_detail_group_id = #{assetDetailGroupId,jdbcType=BIGINT},
asset_description = #{assetDescription,jdbcType=VARCHAR},
buy_date = #{buyDate,jdbcType=TIMESTAMP},
depreciation_date = #{depreciationDate,jdbcType=TIMESTAMP},
depreciation_period = #{depreciationPeriod,jdbcType=INTEGER},
acquisition_value = #{acquisitionValue,jdbcType=DECIMAL},
adjustment_value = #{adjustmentValue,jdbcType=DECIMAL},
disposed_date = #{disposedDate,jdbcType=TIMESTAMP},
residual_rate = #{residualRate,jdbcType=DECIMAL},
year_depreciation_amount = #{yearDepreciationAmount,jdbcType=DECIMAL},
year_adjustment_amount = #{yearAdjustmentAmount,jdbcType=DECIMAL},
year_end_value = #{yearEndValue,jdbcType=DECIMAL},
status = #{status,jdbcType=INTEGER},
account_acquisition_value = #{accountAcquisitionValue,jdbcType=DECIMAL},
account_month_depreciation_amount = #{accountMonthDepreciationAmount,jdbcType=DECIMAL},
account_year_depreciation_amount = #{accountYearDepreciationAmount,jdbcType=DECIMAL},
account_total_depreciation_amount = #{accountTotalDepreciationAmount,jdbcType=DECIMAL},
tax_depreciation_period = #{taxDepreciationPeriod,jdbcType=INTEGER},
tax_to_last_year_depreciation_period = #{taxToLastYearDepreciationPeriod,jdbcType=INTEGER},
tax_to_current_year_depreciation_period = #{taxToCurrentYearDepreciationPeriod,jdbcType=INTEGER},
tax_year_depreciation_period = #{taxYearDepreciationPeriod,jdbcType=INTEGER},
tax_month_depreciation_amount = #{taxMonthDepreciationAmount,jdbcType=DECIMAL},
tax_to_current_year_depreciation_amount = #{taxToCurrentYearDepreciationAmount,jdbcType=DECIMAL},
tax_current_year_depreciation_amount = #{taxCurrentYearDepreciationAmount,jdbcType=DECIMAL},
total_difference_amount = #{totalDifferenceAmount,jdbcType=DECIMAL},
year_difference_amount = #{yearDifferenceAmount,jdbcType=DECIMAL},
is_retain = #{isRetain,jdbcType=INTEGER},
asset_type = #{assetType,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
tax_account_compare = #{taxAccountCompare,jdbcType=INTEGER},
tax_group_name = #{taxGroupName,jdbcType=VARCHAR},
scrap_type = #{scrapType,jdbcType=VARCHAR},
compensation_sale_amount = #{compensationSaleAmount,jdbcType=DECIMAL},
sale_amount = #{saleAmount,jdbcType=DECIMAL},
disposal_profit_and_loss = #{disposalProfitAndLoss,jdbcType=DECIMAL},
tax_net_value = #{taxNetValue,jdbcType=DECIMAL},
disposal_tax_benefit = #{disposalTaxBenefit,jdbcType=DECIMAL}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.entity.CitAssetEamMappingExample"
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 cit_asset_eam_mapping
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/CitAssetEamMappingExtendsMapper.xml
0 → 100644
View file @
e7c526d4
<?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.dao.CitAssetEamMappingMapper"
>
<insert
id=
"insertBatch"
parameterType=
"java.util.List"
>
insert into cit_asset_eam_mapping
(
<include
refid=
"Base_Column_List"
/>
)
values
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<choose>
<when
test=
"item.id != null"
>
#{item.id,jdbcType=BIGINT},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.projectId != null"
>
#{item.projectId,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
</choose>
<choose>
<when
test=
"item.period != null"
>
#{item.period,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.assetNumber != null"
>
#{item.assetNumber,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
</choose>
<choose>
<when
test=
"item.serialNumber != null"
>
#{item.serialNumber,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
</choose>
<choose>
<when
test=
"item.assetGroupName != null"
>
#{item.assetGroupName,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
</choose>
<choose>
<when
test=
"item.assetDetailGroupId != null"
>
#{item.assetDetailGroupId,jdbcType=BIGINT},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.assetDescription != null"
>
#{item.assetDescription,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
</choose>
<choose>
<when
test=
"item.buyDate != null"
>
#{item.buyDate,jdbcType=TIMESTAMP},
</when>
<otherwise>
CURRENT_TIMESTAMP,
</otherwise>
</choose>
<choose>
<when
test=
"item.depreciationDate != null"
>
#{item.depreciationDate,jdbcType=TIMESTAMP},
</when>
<otherwise>
CURRENT_TIMESTAMP,
</otherwise>
</choose>
<choose>
<when
test=
"item.depreciationPeriod != null"
>
#{item.depreciationPeriod,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.acquisitionValue != null"
>
#{item.acquisitionValue,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.adjustmentValue != null"
>
#{item.adjustmentValue,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.disposedDate != null"
>
#{item.disposedDate,jdbcType=TIMESTAMP},
</when>
<otherwise>
CURRENT_TIMESTAMP,
</otherwise>
</choose>
<choose>
<when
test=
"item.residualRate != null"
>
#{item.residualRate,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.yearDepreciationAmount != null"
>
#{item.yearDepreciationAmount,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.yearAdjustmentAmount != null"
>
#{item.yearAdjustmentAmount,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.yearEndValue != null"
>
#{item.yearEndValue,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.status != null"
>
#{item.status,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.accountAcquisitionValue != null"
>
#{item.accountAcquisitionValue,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.accountMonthDepreciationAmount != null"
>
#{item.accountMonthDepreciationAmount,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.accountYearDepreciationAmount != null"
>
#{item.accountYearDepreciationAmount,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.accountTotalDepreciationAmount != null"
>
#{item.accountTotalDepreciationAmount,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.taxDepreciationPeriod != null"
>
#{item.taxDepreciationPeriod,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.taxToLastYearDepreciationPeriod != null"
>
#{item.taxToLastYearDepreciationPeriod,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.taxToCurrentYearDepreciationPeriod != null"
>
#{item.taxToCurrentYearDepreciationPeriod,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.taxYearDepreciationPeriod != null"
>
#{item.taxYearDepreciationPeriod,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.taxMonthDepreciationAmount != null"
>
#{item.taxMonthDepreciationAmount,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.taxToCurrentYearDepreciationAmount != null"
>
#{item.taxToCurrentYearDepreciationAmount,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.taxCurrentYearDepreciationAmount != null"
>
#{item.taxCurrentYearDepreciationAmount,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.totalDifferenceAmount != null"
>
#{item.totalDifferenceAmount,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.yearDifferenceAmount != null"
>
#{item.yearDifferenceAmount,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.isRetain != null"
>
#{item.isRetain,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.assetType != null"
>
#{item.assetType,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.createTime != null"
>
#{item.createTime,jdbcType=TIMESTAMP},
</when>
<otherwise>
CURRENT_TIMESTAMP,
</otherwise>
</choose>
<choose>
<when
test=
"item.updateTime != null"
>
#{item.updateTime,jdbcType=TIMESTAMP},
</when>
<otherwise>
CURRENT_TIMESTAMP,
</otherwise>
</choose>
<choose>
<when
test=
"item.taxAccountCompare != null"
>
#{item.taxAccountCompare,jdbcType=INTEGER},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.taxGroupName != null"
>
#{item.taxGroupName,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
</choose>
<choose>
<when
test=
"item.scrapType != null"
>
#{item.scrapType,jdbcType=VARCHAR},
</when>
<otherwise>
'',
</otherwise>
</choose>
<choose>
<when
test=
"item.compensationSaleAmount != null"
>
#{item.compensationSaleAmount,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.saleAmount != null"
>
#{item.saleAmount,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.disposalProfitAndLoss != null"
>
#{item.disposalProfitAndLoss,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.taxNetValue != null"
>
#{item.taxNetValue,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
<choose>
<when
test=
"item.disposalTaxBenefit != null"
>
#{item.disposalTaxBenefit,jdbcType=DECIMAL},
</when>
<otherwise>
0,
</otherwise>
</choose>
</trim>
</foreach>
;
SELECT 1 FROM DUAL;
</insert>
</mapper>
\ No newline at end of file
atms-dao/src/main/resources/pwc/taxtech/atms/dao/extends/CitAssetsListExtendsMapper.xml
View file @
e7c526d4
...
...
@@ -2,7 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"pwc.taxtech.atms.dao.CitAssetsListMapper"
>
<resultMap
id=
"assetEamMap"
type=
"pwc.taxtech.atms.
dpo.CitAssetEamMappingDto
"
>
<resultMap
id=
"assetEamMap"
type=
"pwc.taxtech.atms.
entity.CitAssetEamMapping
"
>
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
...
...
@@ -218,7 +218,8 @@
<select
id=
"getAssetEamMapping"
parameterType=
"map"
resultMap=
"assetEamMap"
>
select
assets_list.* , cit_eam_assets_disposal.compensation_sale_amount
from assets_list join cit_eam_assets_disposal on serial_number = asset_label_number where scrap_type='完全报废'
from assets_list join cit_eam_assets_disposal on serial_number = asset_label_number
where scrap_type='完全报废' and assets_list.project_id = #{projectId,jdbcType=VARCHAR}
</select>
<resultMap
id=
"citAssetDetailResultDto"
type=
"pwc.taxtech.atms.dpo.CitAssetDetailResultDto"
>
...
...
atms-web/src/main/webapp/app-resources/i18n/en-us/cit.json
View file @
e7c526d4
...
...
@@ -1148,5 +1148,6 @@
"TotalAssets"
:
"Total Assets"
,
"DistributionRatio"
:
"Distribution Ratio"
,
"DistributionAmount"
:
"Distribution Amount"
,
"Subtotal"
:
"Total"
"Subtotal"
:
"Total"
,
"AssetEamMapping"
:
"Asset Eam Mapping"
}
\ No newline at end of file
atms-web/src/main/webapp/app-resources/i18n/zh-CN/cit.json
View file @
e7c526d4
...
...
@@ -1201,7 +1201,8 @@
"EmployeeRemuneration"
:
"职工薪酬"
,
"TotalAssets"
:
"资产总额"
,
"DistributionRatio"
:
"分配比例"
,
"DistributionAmount"
:
"分配税额"
"DistributionAmount"
:
"分配税额"
,
"AssetEamMapping"
:
"固资损失计算"
...
...
atms-web/src/main/webapp/app/cit/reduction/cit-asset-eam-mapping/cit-asset-eam-mapping.ctrl.js
View file @
e7c526d4
...
...
@@ -245,6 +245,18 @@
});
};
$scope
.
startCalculateData
=
function
()
{
citReportService
.
generateAssetEamMapping
(
$scope
.
queryParams
).
success
(
function
(
data
)
{
debugger
;
loadJournalEntryDataFromDB
(
1
);
// if(status===204){
// SweetAlert.warning("没有数据可以下载");
// return;
// }
}).
error
(
function
()
{
SweetAlert
.
error
(
$translate
.
instant
(
'PleaseContactAdministrator'
));
});
};
(
function
initialize
()
{
$log
.
debug
(
'VatPreviewInputInvoiceController.ctor()...'
);
...
...
atms-web/src/main/webapp/app/cit/reduction/cit-asset-eam-mapping/cit-asset-eam-mapping.html
View file @
e7c526d4
<div
class=
"cit-asset-eam-mapping"
id=
"mainPreviewDiv"
>
<div
class=
"top-area-wrapper"
style=
"margin-top: 10px"
>
<div
class=
"nav-wrapper"
>
<div
class=
"nav-header"
>
{{'AssetEamMapping' | translate}}
</div>
<div
class=
"nav-tab"
>
<span
style=
"width: auto"
ng-click=
"startCalculateData()"
>
{{'startCaculateData' | translate}}
</span>
<span
ng-click=
"downloadJE()"
style=
"float: right;"
><i
class=
"fa fa-file-excel-o"
aria-hidden=
"true"
></i>
{{'ExportBtn' | translate}}
</span>
</div>
</div>
<div
class=
"top-area-wrapper"
style=
"margin-top: 10px;display: none"
>
<span
translate=
"JournalTitle"
class=
"text-bold"
></span>
|
<span
class=
"text-bold"
translate=
"InvoiceQJ"
style=
"display: none"
></span>
<input
type=
"text"
class=
"form-control input-width-middle periodInput"
style=
"position: relative; top: -30px; left: 180px;display: none"
id=
"input-invoice-period-picker"
/>
...
...
atms-web/src/main/webapp/app/cit/reduction/cit-asset-eam-mapping/cit-asset-eam-mapping.less
View file @
e7c526d4
...
...
@@ -163,3 +163,41 @@
width: 217px;
}
}
.nav-wrapper {
padding-bottom: 10px;
border-bottom: 1px solid #DBD8D3;
.nav-header {
height: 54px;
line-height: 54px;
font-family: "Microsoft YaHei Bold", "Microsoft YaHei Regular", "Microsoft YaHei";
font-weight: 700;
font-style: normal;
font-size: 15px;
color: #333;
}
.nav-tab {
/*display: inline-block;*/
span {
display: inline-block;
height: 34px;
width: 80px;
text-align: center;
line-height: 34px;
padding: 0 10px;
background-color: #B90808;
color: #FFF;
font-family: "Microsoft YaHei";
font-weight: 400;
font-style: normal;
font-size: 14px;
cursor: pointer;
}
.active {
background-color: #F91000;
}
}
}
atms-web/src/main/webapp/app/cit/reduction/cit-distribution-table/cit-distribution-table.ctrl.js
View file @
e7c526d4
...
...
@@ -9,6 +9,10 @@
$scope
.
endMonth
=
vatSessionService
.
month
;
$scope
.
totalMoneyAmount
=
0
;
$scope
.
totalTaxAmount
=
0
;
$scope
.
totalBusinessIncome
=
0
;
$scope
.
totalEmployeeRemuneration
=
0
;
$scope
.
totalTotalAssets
=
0
;
var
minDate
=
[
1
,
vatSessionService
.
project
.
year
];
// var minDate = moment().startOf('month').subtract(0, 'months');
...
...
@@ -25,11 +29,9 @@
pageInfo
:
{},
periodStart
:
''
,
periodEnd
:
''
,
subjectCode
:
null
,
subjectName
:
null
,
orgCode
:
null
,
orgName
:
null
,
documentDate
:
null
,
totalBusinessIncome
:
$scope
.
totalBusinessIncome
,
totalEmployeeRemuneration
:
$scope
.
totalEmployeeRemuneration
,
totalTotalAssets
:
$scope
.
totalEmployeeRemuneration
,
projectId
:
vatSessionService
.
project
.
id
};
};
...
...
@@ -40,12 +42,21 @@
$scope
.
curJournalEntryPage
=
pageIndex
;
//初始化查询信息
$scope
.
queryParams
.
pageInfo
=
{
$scope
.
queryParams
=
{
pageInfo
:
{
totalCount
:
$scope
.
queryJournalEntryResult
.
pageInfo
.
totalCount
,
pageIndex
:
pageIndex
,
pageSize
:
$scope
.
queryJournalEntryResult
.
pageInfo
.
pageSize
,
totalPage
:
0
},
periodStart
:
''
,
periodEnd
:
''
,
totalBusinessIncome
:
$scope
.
totalBusinessIncome
,
totalEmployeeRemuneration
:
$scope
.
totalEmployeeRemuneration
,
totalTotalAssets
:
$scope
.
totalEmployeeRemuneration
,
projectId
:
vatSessionService
.
project
.
id
};
$scope
.
getDataFromDatabase
(
$scope
.
queryParams
);
};
...
...
@@ -146,21 +157,21 @@
removeItem
.
forEach
(
function
(
v
)
{
$scope
.
queryParams
[
v
]
=
null
;
if
(
$scope
.
queryParams
.
subjectCode
===
null
)
{
$scope
.
queryParams
.
subjectCode
=
''
;
}
if
(
$scope
.
queryParams
.
subjectName
===
null
)
{
$scope
.
queryParams
.
subjectName
=
''
;
}
if
(
$scope
.
queryParams
.
orgCode
===
null
)
{
$scope
.
queryParams
.
orgCode
=
''
;
}
if
(
$scope
.
queryParams
.
orgName
===
null
)
{
$scope
.
queryParams
.
orgName
=
''
;
}
if
(
$scope
.
queryParams
.
documentDate
===
null
)
{
$scope
.
queryParams
.
documentDate
=
''
;
}
//
if ($scope.queryParams.subjectCode === null) {
//
$scope.queryParams.subjectCode = '';
//
}
//
if ($scope.queryParams.subjectName === null) {
//
$scope.queryParams.subjectName = '';
//
}
//
if ($scope.queryParams.orgCode === null) {
//
$scope.queryParams.orgCode = '';
//
}
//
if ($scope.queryParams.orgName === null) {
//
$scope.queryParams.orgName = '';
//
}
//
if ($scope.queryParams.documentDate === null) {
//
$scope.queryParams.documentDate = '';
//
}
});
}
...
...
@@ -247,6 +258,10 @@
$scope
.
startCalculateData
=
function
()
{
citReportService
.
generateDistributionTable
(
$scope
.
queryParams
).
success
(
function
(
data
)
{
debugger
;
$scope
.
totalBusinessIncome
=
data
.
data
.
totalBusinessIncome
;
$scope
.
totalEmployeeRemuneration
=
data
.
data
.
totalEmployeeRemuneration
;
$scope
.
totalTotalAssets
=
data
.
data
.
totalTotalAssets
;
loadJournalEntryDataFromDB
(
1
);
// if(status===204){
// SweetAlert.warning("没有数据可以下载");
...
...
@@ -283,7 +298,7 @@
loadJournalEntryDataFromDB
(
1
);
});
//格式化Grid
$scope
.
gridOptions
=
{
rowHeight
:
constant
.
UIGrid
.
rowHeight
,
showColumnFooter
:
true
,
...
...
@@ -296,17 +311,17 @@
columnDefs
:
[
{
name
:
$translate
.
instant
(
'TaxPayerNumber'
),
width
:
250
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.taxPayerNumber}}<span></div>'
},
{
name
:
$translate
.
instant
(
'OrgName'
),
width
:
350
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.orgName}}<span></div>'
,
footerCellTemplate
:
'<div class="ui-grid-cell-contents"
>$translate.instant("Subtotal"):
</div>'
},
,
footerCellTemplate
:
'<div class="ui-grid-cell-contents"
translate="Subtotal">
</div>'
},
{
name
:
$translate
.
instant
(
'BusinessIncome'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.businessIncome}}</span></div>'
,
footerCellTemplate
:
'<div class="ui-grid-cell-contents">
<span>{{row.entity.orgName}}<span>
</div>'
},
,
footerCellTemplate
:
'<div class="ui-grid-cell-contents">
'
+
$scope
.
totalBusinessIncome
+
'
</div>'
},
{
name
:
$translate
.
instant
(
'EmployeeRemuneration'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.employeeRemuneration}}</span></div>'
,
footerCellTemplate
:
'<div class="ui-grid-cell-contents">
<span>{{row.entity.orgName}}<span>
</div>'
},
,
footerCellTemplate
:
'<div class="ui-grid-cell-contents">
'
+
$scope
.
totalEmployeeRemuneration
+
'
</div>'
},
{
name
:
$translate
.
instant
(
'TotalAssets'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.totalAssets}}</span></div>'
,
footerCellTemplate
:
'<div class="ui-grid-cell-contents">
<span>{{row.entity.orgName}}<span>
</div>'
},
,
footerCellTemplate
:
'<div class="ui-grid-cell-contents">
'
+
$scope
.
totalTotalAssets
+
'
</div>'
},
{
name
:
$translate
.
instant
(
'DistributionRatio'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.distributionRatio}}</span></div>'
,
footerCellTemplate
:
'<div class="ui-grid-cell-contents"><span>
{{row.entity.orgName}}
<span></div>'
},
{
name
:
$translate
.
instant
(
'DistributionAmount'
),
width
:
200
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span >{{row.entity.distributionAmount}}</span></div>'
,
footerCellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.orgName}}<span></div>'
},
,
footerCellTemplate
:
'<div class="ui-grid-cell-contents"><span>
100
<span></div>'
},
//
{ name: $translate.instant('DistributionAmount'), width: 200,cellTemplate: '<div class="ui-grid-cell-contents"><span >{{row.entity.distributionAmount}}</span></div>'
//
, footerCellTemplate: '<div class="ui-grid-cell-contents"><span>{{row.entity.orgName}}<span></div>'},
]
};
...
...
atms-web/src/main/webapp/app/common/webservices/citReport.svc.js
View file @
e7c526d4
...
...
@@ -211,6 +211,13 @@
return
$http
.
get
(
'/Report/deleteAttach?id='
+
id
,
apiConfig
.
create
(
config
));
},
/**
生成固定资产及EAM对应的数据
*/
generateAssetEamMapping
:
function
(
citAssetsListDto
){
debugger
;
return
$http
.
post
(
'/citReport/generateAssetEamMapping'
,
citAssetsListDto
,
apiConfig
.
create
());
},
/**
获取固定资产及EAM对应的数据
*/
...
...
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