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
18602f5c
Commit
18602f5c
authored
Apr 30, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、更改机构账套要更换卡片对应的账套;2、EBS抽取汇率表状态设置;3、CIT导出报表bug;4、预提更改下载的模板
parent
abda5873
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
17 deletions
+30
-17
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+4
-3
OrganizationServiceImpl.java
...wc/taxtech/atms/service/impl/OrganizationServiceImpl.java
+11
-0
SalaryAdvance.xlsx
...src/main/resources/Document/DataImport/SalaryAdvance.xlsx
+0
-0
cit-report-view.ctrl.js
...pp/app/cit/report/cit-report-view/cit-report-view.ctrl.js
+15
-14
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
18602f5c
...
...
@@ -2522,6 +2522,9 @@ public class DataImportService extends BaseService {
log
.
setImportResult
(
false
);
log
.
setErrorMsg
(
String
.
format
(
EnumApiCodeMsg
.
CALLFAILED
.
getMsg
(),
resp
.
getTaskDesc
()));
}
else
{
log
.
setId
(
taskId
);
log
.
setImportResult
(
true
);
log
.
setErrorMsg
(
String
.
format
(
EnumApiCodeMsg
.
CALLSUCCESS
.
getMsg
(),
resp
.
getTaskDesc
()));
if
(
EbsExtractTypeConstant
.
JE
==
type
)
{
resp
.
setCompanyCode
(
null
!=
resp
.
getSegment1
()
?
resp
.
getSegment1
()
:
""
);
}
else
if
(
EbsExtractTypeConstant
.
RATE
==
type
){
...
...
@@ -2534,10 +2537,8 @@ public class DataImportService extends BaseService {
List
<
OrganizationAccountingRate
>
itemList
=
organizationAccountingRateMapper
.
selectByExample
(
example
);
logger
.
info
(
"查询的汇率条数:"
+
itemList
.
size
());
log
.
setRecordSize
(
itemList
.
size
());
log
.
setErrorMsg
(
resp
.
getTaskDesc
());
}
log
.
setId
(
taskId
);
log
.
setImportResult
(
true
);
log
.
setErrorMsg
(
String
.
format
(
EnumApiCodeMsg
.
CALLSUCCESS
.
getMsg
(),
resp
.
getTaskDesc
()));
}
}
dataImportLogMapper
.
insertSelective
(
log
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OrganizationServiceImpl.java
View file @
18602f5c
...
...
@@ -179,6 +179,9 @@ public class OrganizationServiceImpl extends BaseService{
@Resource
private
UserMapper
userMapper
;
@Resource
private
ProjectMapper
projectMapper
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ProjectServiceImpl
.
class
);
public
boolean
isOrganizationStructureExists
(
String
organizationStructureId
)
{
...
...
@@ -2457,6 +2460,14 @@ public class OrganizationServiceImpl extends BaseService{
tempDto
.
setEnterpriseAccountSetId
(
p
.
getEnterpriseAccountSetId
());
tempDto
.
setExpiredDate
(
p
.
getExpiredDate
());
enterpriseAccountSetOrgMapper
.
updateByPrimaryKey
(
tempDto
);
//若为更新匹配账套,则要检查是否已经生成卡片并更新卡片里面的卡套ID create by zhikai.z.wei start
ProjectExample
projectExample
=
new
ProjectExample
();
projectExample
.
createCriteria
().
andOrganizationIdEqualTo
(
p
.
getOrganizationId
());
Project
project
=
new
Project
();
project
.
setEnterpriseAccountSetId
(
p
.
getEnterpriseAccountSetId
());
project
.
setUpdateTime
(
new
Date
());
projectMapper
.
updateByExampleSelective
(
project
,
projectExample
);
//若为更新匹配账套,则要检查是否已经生成卡片并更新卡片里面的卡套ID create by zhikai.z.wei end
}
else
{
EnterpriseAccountSetOrg
temp
=
new
EnterpriseAccountSetOrg
();
temp
.
setId
(
CommonUtils
.
getUUID
());
...
...
atms-api/src/main/resources/Document/DataImport/SalaryAdvance.xlsx
View file @
18602f5c
No preview for this file type
atms-web/src/main/webapp/app/cit/report/cit-report-view/cit-report-view.ctrl.js
View file @
18602f5c
...
...
@@ -928,27 +928,27 @@
return
g
.
name
==
'TaxReturnType'
;
});
if
(
!
grp
||
!
grp
.
children
)
{
return
;
}
if
(
grp
&&
grp
.
children
)
{
$scope
.
exportReportTreeOptions
.
dataSource
[
0
].
items
=
[];
$scope
.
exportReportTreeOptions
.
dataSource
[
0
].
items
=
_
.
map
(
grp
.
children
,
function
(
item
)
{
return
{
id
:
item
.
reportId
,
templateId
:
item
.
id
,
name
:
item
.
name
,
parentId
:
'0'
};
});
}
var
grp2
=
_
.
find
(
$scope
.
$parent
.
$parent
.
groups
,
function
(
g
)
{
return
g
.
name
==
'WorkingPaperType'
});
if
(
!
grp2
||
!
grp2
.
children
)
{
return
;
}
if
(
grp2
&&
grp2
.
children
)
{
$scope
.
exportReportTreeOptions
.
dataSource
[
1
].
items
=
[];
$scope
.
exportReportTreeOptions
.
dataSource
[
1
].
items
=
_
.
map
(
grp2
.
children
,
function
(
item
)
{
return
{
id
:
item
.
reportId
,
templateId
:
item
.
id
,
name
:
item
.
name
,
parentId
:
'0'
};
});
}
if
((
!
grp
||
!
grp
.
children
)
&&
(
!
grp2
||
!
grp2
.
children
))
{
return
;
}
var
parentElem
=
angular
.
element
(
$
(
'#exportReportFilesContainer'
));
$scope
.
exportReportInstance
=
$uibModal
.
open
({
...
...
@@ -985,15 +985,11 @@
return
g
.
name
==
'TaxReturnType'
;
});
if
(
!
grp
||
!
grp
.
children
)
{
return
;
}
var
grp2
=
_
.
find
(
$scope
.
$parent
.
$parent
.
groups
,
function
(
g
)
{
return
g
.
name
==
'WorkingPaperType'
});
if
(
!
grp2
||
!
grp2
.
children
)
{
if
(
(
!
grp
||
!
grp
.
children
)
&&
(
!
grp2
||
!
grp2
.
children
)
)
{
return
;
}
...
...
@@ -1003,11 +999,16 @@
}
var
reportIds
=
[];
angular
.
forEach
(
$scope
.
selectedReportIds
,
function
(
reportId
)
{
var
node
=
_
.
first
(
_
.
where
(
grp
.
children
,
{
reportId
:
reportId
}));
var
node
;
if
(
grp
&&
grp
.
children
)
{
node
=
_
.
first
(
_
.
where
(
grp
.
children
,
{
reportId
:
reportId
}));
}
if
(
node
)
{
reportIds
.
push
(
node
.
reportId
);
}
else
{
if
(
grp2
&&
grp2
.
children
)
{
node
=
_
.
first
(
_
.
where
(
grp2
.
children
,
{
reportId
:
reportId
}));
}
if
(
node
)
{
reportIds
.
push
(
node
.
reportId
);
}
...
...
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