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
ebc495dd
Commit
ebc495dd
authored
Apr 11, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、BB公式修改;2、CIT-固定资产导入部分性能优化;3、CIT-数据处理增加CIT的正则表达式
parent
428577c0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
7 deletions
+30
-7
AssetListServiceImpl.java
...a/pwc/taxtech/atms/service/impl/AssetListServiceImpl.java
+3
-4
CitReportServiceImpl.java
...a/pwc/taxtech/atms/service/impl/CitReportServiceImpl.java
+1
-1
FormulaAgent.java
.../java/pwc/taxtech/atms/vat/service/impl/FormulaAgent.java
+15
-0
ReportGeneratorImpl.java
...wc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
+0
-0
BB.java
...wc/taxtech/atms/vat/service/impl/report/functions/BB.java
+10
-2
cit-report-sheet.js
...ebapp/app/cit/report/cit-report-sheet/cit-report-sheet.js
+1
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/AssetListServiceImpl.java
View file @
ebc495dd
...
...
@@ -254,9 +254,6 @@ public class AssetListServiceImpl extends BaseService {
}
//循环存储新的资产
int
insertBatch
=
assetListMapper
.
insertBatch
(
citAssetsLists
);
// for (CitAssetsList citAsset : citAssetsLists){
// assetListMapper.insertSelective(citAsset);
// }
//处理资产类别
//1、根据projectId查询数据库中已有的资产类别,并和新导入的资产类别进行比较
// for (CitAssetGroupResult groupResult : citAssetGroupResults) {
...
...
@@ -428,6 +425,8 @@ public class AssetListServiceImpl extends BaseService {
List
<
CitAssetsList
>
citAssetsLists
=
selectAssetsList
(
projectId
,
assetGroupResult
.
getAssetName
(),
saveGroupType
);
citAssetsLists
.
stream
().
forEach
(
citAsset
->
{
setCitAssetTaxData
(
citAsset
,
assetGroupResult
,
assetDetailGroup
);
//根据主键修改资产清单数据
assetListMapper
.
updateByPrimaryKeySelective
(
citAsset
);
});
}
...
...
@@ -494,7 +493,7 @@ public class AssetListServiceImpl extends BaseService {
//更改资产状态,已进行分类并有效
citAsset
.
setStatus
(
1
);
//根据主键修改资产清单数据
assetListMapper
.
updateByPrimaryKeySelective
(
citAsset
);
//
assetListMapper.updateByPrimaryKeySelective(citAsset);
}
public
ApiResultDto
updateAssetResultList
(
List
<
CitAssetsList
>
assetsLists
,
String
projectId
){
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CitReportServiceImpl.java
View file @
ebc495dd
...
...
@@ -234,7 +234,7 @@ public class CitReportServiceImpl extends BaseService {
setStatus
(
genJob
,
STATUS_END
);
periodJobMapper
.
updateByPrimaryKey
(
genJob
);
reportGenerator
.
u
pdateWorkbookCaclsValueToDb
(
projectId
,
periodParam
,
workbook
,
resources
,
isMergeManualData
,
genJob
);
reportGenerator
.
citU
pdateWorkbookCaclsValueToDb
(
projectId
,
periodParam
,
workbook
,
resources
,
isMergeManualData
,
genJob
);
//===============================================start validation compute==========================================================
//todo: 1.get the data from workbook, then put the data into new workbook
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/FormulaAgent.java
View file @
ebc495dd
...
...
@@ -108,6 +108,21 @@ public class FormulaAgent {
}
/**
* 查询所有的数据源,来用作判断当前单元格是只有手工数据源还是还有别的数据源 create by zhikai.z.wei at 20190411 20:44
* @param templateId
* @param projectId
* @param period
* @return
*/
public
List
<
PeriodDataSource
>
queryNoManualDataSource
(
Long
templateId
,
String
projectId
,
Integer
period
)
{
PeriodDataSourceExample
example
=
new
PeriodDataSourceExample
();
example
.
createCriteria
().
andProjectIdEqualTo
(
projectId
).
andPeriodEqualTo
(
period
)
.
andCellTemplateIdEqualTo
(
templateId
);
return
periodDataSourceMapper
.
selectByExample
(
example
);
}
private
PeriodReport
getReportByTemplate
(
String
templateId
,
Integer
periodId
,
String
projectId
)
{
PeriodReportExample
example
=
new
PeriodReportExample
();
example
.
createCriteria
().
andProjectIdEqualTo
(
projectId
).
andTemplateIdEqualTo
(
Long
.
valueOf
(
templateId
))
...
...
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/ReportGeneratorImpl.java
View file @
ebc495dd
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/report/functions/BB.java
View file @
ebc495dd
...
...
@@ -125,8 +125,16 @@ public class BB extends FunctionBase implements FreeRefFunction {
cellValue
=
new
BigDecimal
(
cellData
.
getData
()).
setScale
(
4
,
BigDecimal
.
ROUND_HALF_DOWN
);
}
else
if
(
cellData
.
getData
()
!=
null
&&
!
dss
.
isEmpty
())
{
cellValue
=
dss
.
get
(
0
).
getAmount
().
add
(
new
BigDecimal
(
cellData
.
getData
()).
setScale
(
4
,
BigDecimal
.
ROUND_HALF_DOWN
));
//查询所有的数据源,来用作判断当前单元格是只有手工数据源还是还有别的数据源 create by zhikai.z.wei at 20190411 20:44
List
<
PeriodDataSource
>
allDataSource
=
agent
.
queryNoManualDataSource
(
Long
.
parseLong
(
cellTemplateData
.
getCellTemplateId
()),
project
==
null
?
formulaContext
.
getProjectId
()
:
project
.
getId
(),
curPeriod
.
getCurPeriod
());
if
(!
allDataSource
.
isEmpty
()
&&
allDataSource
.
size
()>
1
){
cellValue
=
dss
.
get
(
0
).
getAmount
().
add
(
new
BigDecimal
(
cellData
.
getData
()).
setScale
(
4
,
BigDecimal
.
ROUND_HALF_DOWN
));
}
else
{
cellValue
=
new
BigDecimal
(
cellData
.
getData
()).
setScale
(
4
,
BigDecimal
.
ROUND_HALF_DOWN
);
}
}
else
throw
Exceptions
.
BB_CELL_DATA_NULL
;
nullCellDto
.
setAmount
(
cellValue
);
if
(
rootBo
!=
null
)
{
...
...
atms-web/src/main/webapp/app/cit/report/cit-report-sheet/cit-report-sheet.js
View file @
ebc495dd
...
...
@@ -504,6 +504,7 @@
// 根据已有信息通过spreadJS计算各单元格的值
var
setData
=
function
()
{
debugger
;
var
sheet
=
scope
.
spread
.
sheets
[
0
];
var
isExportData
=
false
;
if
(
angular
.
isArray
(
scope
.
reportSource
))
{
...
...
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