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
1516dded
Commit
1516dded
authored
Aug 02, 2019
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
batch upload for template download -- frank
parent
9c6f75c5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
230 additions
and
22 deletions
+230
-22
BoardMeetingRequirementEnum.java
...tech/atms/constant/enums/BoardMeetingRequirementEnum.java
+24
-0
ClassOfSharesEnum.java
...va/pwc/taxtech/atms/constant/enums/ClassOfSharesEnum.java
+22
-0
CommonOrPreferredEnum.java
...wc/taxtech/atms/constant/enums/CommonOrPreferredEnum.java
+22
-0
EntityLevelEnum.java
...java/pwc/taxtech/atms/constant/enums/EntityLevelEnum.java
+23
-0
ExecutiveEnum.java
...n/java/pwc/taxtech/atms/constant/enums/ExecutiveEnum.java
+22
-0
JurisdictionOfFormationEnum.java
...tech/atms/constant/enums/JurisdictionOfFormationEnum.java
+23
-0
LegalFormEnum.java
...n/java/pwc/taxtech/atms/constant/enums/LegalFormEnum.java
+23
-0
OwnershipFormEnum.java
...va/pwc/taxtech/atms/constant/enums/OwnershipFormEnum.java
+22
-0
RolesEnum.java
.../main/java/pwc/taxtech/atms/constant/enums/RolesEnum.java
+23
-0
DataImportController.java
...ava/pwc/taxtech/atms/controller/DataImportController.java
+7
-16
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+0
-0
OrganizationDirectorDto.java
...axtech/atms/organization/dpo/OrganizationDirectorDto.java
+2
-0
OrganizationHKDto.java
.../pwc/taxtech/atms/organization/dpo/OrganizationHKDto.java
+3
-3
OrganizationShareholderDto.java
...ech/atms/organization/dpo/OrganizationShareholderDto.java
+3
-0
OrganizationHKTMapper.java
...xtech/atms/organization/mapper/OrganizationHKTMapper.java
+9
-0
upload-org-modal.ctrl.js
...common/controls/upload-org-modal/upload-org-modal.ctrl.js
+2
-3
No files found.
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/BoardMeetingRequirementEnum.java
0 → 100644
View file @
1516dded
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
public
enum
BoardMeetingRequirementEnum
{
Annual
(
"Annual"
,
1
),
SemiQnnual
(
"Semi Qnnual"
,
2
),
Quarter
(
"Quarter"
,
3
),
Monthly
(
"Monthly"
,
3
);
private
String
name
;
private
Integer
value
;
BoardMeetingRequirementEnum
(
String
name
,
Integer
value
)
{
this
.
name
=
name
;
this
.
value
=
value
;
}
public
String
getName
()
{
return
name
;
}
public
Integer
getValue
()
{
return
value
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/ClassOfSharesEnum.java
0 → 100644
View file @
1516dded
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
public
enum
ClassOfSharesEnum
{
A
(
"A"
,
1
),
B
(
"B"
,
2
);
private
String
name
;
private
Integer
value
;
ClassOfSharesEnum
(
String
name
,
Integer
value
)
{
this
.
name
=
name
;
this
.
value
=
value
;
}
public
String
getName
()
{
return
name
;
}
public
Integer
getValue
()
{
return
value
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/CommonOrPreferredEnum.java
0 → 100644
View file @
1516dded
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
public
enum
CommonOrPreferredEnum
{
Common
(
"Common"
,
1
),
Preferred
(
"Preferred"
,
2
);
private
String
name
;
private
Integer
value
;
CommonOrPreferredEnum
(
String
name
,
Integer
value
)
{
this
.
name
=
name
;
this
.
value
=
value
;
}
public
String
getName
()
{
return
name
;
}
public
Integer
getValue
()
{
return
value
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/EntityLevelEnum.java
0 → 100644
View file @
1516dded
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
public
enum
EntityLevelEnum
{
InvestmentFund
(
"Investment Fund"
,
1
),
InvestmentHolding
(
"Investment Holding"
,
2
),
PortfolioCompany
(
"Portfolio Company"
,
3
);
private
String
name
;
private
Integer
value
;
EntityLevelEnum
(
String
name
,
Integer
value
)
{
this
.
name
=
name
;
this
.
value
=
value
;
}
public
String
getName
()
{
return
name
;
}
public
Integer
getValue
()
{
return
value
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/ExecutiveEnum.java
0 → 100644
View file @
1516dded
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
public
enum
ExecutiveEnum
{
Y
(
"Y"
,
1
),
N
(
"N"
,
2
);
private
String
name
;
private
Integer
value
;
ExecutiveEnum
(
String
name
,
Integer
value
)
{
this
.
name
=
name
;
this
.
value
=
value
;
}
public
String
getName
()
{
return
name
;
}
public
Integer
getValue
()
{
return
value
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/JurisdictionOfFormationEnum.java
0 → 100644
View file @
1516dded
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
public
enum
JurisdictionOfFormationEnum
{
HongKong
(
"Hong Kong"
,
1
),
BritishVirginIslands
(
"British Virgin Islands"
,
2
),
CaymanIslands
(
"Cayman Islands"
,
3
);
private
String
name
;
private
Integer
value
;
JurisdictionOfFormationEnum
(
String
name
,
Integer
value
)
{
this
.
name
=
name
;
this
.
value
=
value
;
}
public
String
getName
()
{
return
name
;
}
public
Integer
getValue
()
{
return
value
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/LegalFormEnum.java
0 → 100644
View file @
1516dded
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
public
enum
LegalFormEnum
{
LimitedPartnership
(
"Limited Partnership"
,
1
),
LimitedCompany
(
"Limited Company"
,
2
),
Trustee
(
"Trustee"
,
2
);
private
String
name
;
private
Integer
value
;
LegalFormEnum
(
String
name
,
Integer
value
)
{
this
.
name
=
name
;
this
.
value
=
value
;
}
public
String
getName
()
{
return
name
;
}
public
Integer
getValue
()
{
return
value
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/OwnershipFormEnum.java
0 → 100644
View file @
1516dded
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
public
enum
OwnershipFormEnum
{
OrdinaryShares
(
"Ordinary Shares"
,
1
),
PreferenceShares
(
"Preference Shares"
,
2
);
private
String
name
;
private
Integer
value
;
OwnershipFormEnum
(
String
name
,
Integer
value
)
{
this
.
name
=
name
;
this
.
value
=
value
;
}
public
String
getName
()
{
return
name
;
}
public
Integer
getValue
()
{
return
value
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/constant/enums/RolesEnum.java
0 → 100644
View file @
1516dded
package
pwc
.
taxtech
.
atms
.
constant
.
enums
;
public
enum
RolesEnum
{
CEO
(
"CEO"
,
1
),
CFO
(
"CFO"
,
2
),
NA
(
"NA"
,
3
);
private
String
name
;
private
Integer
value
;
RolesEnum
(
String
name
,
Integer
value
)
{
this
.
name
=
name
;
this
.
value
=
value
;
}
public
String
getName
()
{
return
name
;
}
public
Integer
getValue
()
{
return
value
;
}
}
atms-api/src/main/java/pwc/taxtech/atms/controller/DataImportController.java
View file @
1516dded
package
pwc
.
taxtech
.
atms
.
controller
;
import
com.alibaba.fastjson.JSONArray
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
...
...
@@ -10,7 +9,6 @@ import pwc.taxtech.atms.exception.ServiceException;
import
pwc.taxtech.atms.service.impl.DataImportService
;
import
javax.annotation.Resource
;
import
java.util.List
;
@RestController
@RequestMapping
(
"/api/v1/DataImport/"
)
...
...
@@ -20,33 +18,26 @@ public class DataImportController extends BaseController {
private
DataImportService
dataImportService
;
@ResponseBody
@RequestMapping
(
value
=
"
RLIT
ExcelFile"
,
method
=
RequestMethod
.
POST
)
public
OperationResultDto
importRLITExcelFile
(
@RequestParam
MultipartFile
file
,
@RequestParam
String
orgIds
,
@RequestParam
String
periodDate
,
@RequestParam
Integer
importType
)
{
@RequestMapping
(
value
=
"
Org
ExcelFile"
,
method
=
RequestMethod
.
POST
)
public
OperationResultDto
importRLITExcelFile
(
@RequestParam
MultipartFile
file
)
{
try
{
List
<
String
>
orgList
=
(
List
<
String
>)
JSONArray
.
parse
(
orgIds
);
String
valMsg
=
valParameter
(
file
,
orgList
,
periodDate
);
if
(
StringUtils
.
isNotEmpty
(
valMsg
)){
String
valMsg
=
valParameter
(
file
);
if
(
StringUtils
.
isNotEmpty
(
valMsg
))
{
return
OperationResultDto
.
error
(
valMsg
);
}
return
dataImportService
.
import
RLITExcelFile
(
file
,
orgList
,
periodDate
,
importTyp
e
);
return
dataImportService
.
import
OrgExcelFile
(
fil
e
);
}
catch
(
ServiceException
e
)
{
return
OperationResultDto
.
error
(
e
.
getMessage
());
}
catch
(
Exception
e
)
{
logger
.
error
(
"
importRLIT
ExcelFile error."
,
e
);
logger
.
error
(
"
Org
ExcelFile error."
,
e
);
return
OperationResultDto
.
error
(
ErrorMessage
.
SystemError
);
}
}
private
String
valParameter
(
MultipartFile
file
,
List
<
String
>
orgList
,
String
periodDate
)
{
private
String
valParameter
(
MultipartFile
file
)
{
if
(
null
==
file
)
{
return
ErrorMessage
.
NoFile
;
}
if
(
orgList
.
size
()<
1
){
return
ErrorMessage
.
DidntSelectedCompany
;
}
if
(
StringUtils
.
isEmpty
(
periodDate
)){
return
ErrorMessage
.
DidntSelectedPeriod
;
}
return
null
;
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
1516dded
This diff is collapsed.
Click to expand it.
atms-dao/src/main/java/pwc/taxtech/atms/organization/dpo/OrganizationDirectorDto.java
View file @
1516dded
...
...
@@ -19,4 +19,6 @@ public class OrganizationDirectorDto {
Integer
isExecutive
;
Integer
otherRoles
;
String
isDelete
;
String
internalEntityCode
;
String
companyName
;
}
atms-dao/src/main/java/pwc/taxtech/atms/organization/dpo/OrganizationHKDto.java
View file @
1516dded
...
...
@@ -20,7 +20,7 @@ public class OrganizationHKDto {
private
String
code
;
private
Boolean
isActive
;
private
Long
parentId
;
private
String
legalForm
;
private
Integer
legalForm
;
private
String
registerAddress
;
private
Float
authorisedCapital
;
private
Float
issuedCapital
;
...
...
@@ -30,9 +30,9 @@ public class OrganizationHKDto {
private
String
boardMeetingRequirement
;
private
String
businessLicense
;
private
String
renewalOfBusinessLicense
;
private
String
entityLevel
;
private
Integer
entityLevel
;
private
String
dateOfIncorporation
;
private
String
jurisdictionOfFormation
;
private
Integer
jurisdictionOfFormation
;
private
String
financialYearEnd
;
private
String
annualAuditRequirement
;
private
String
registeredAgent
;
...
...
atms-dao/src/main/java/pwc/taxtech/atms/organization/dpo/OrganizationShareholderDto.java
View file @
1516dded
...
...
@@ -17,4 +17,7 @@ public class OrganizationShareholderDto {
Integer
commonPreferred
;
Integer
classOfShares
;
String
votingPercentage
;
String
internalEntityCode
;
String
companyName
;
String
shareholderName
;
}
atms-dao/src/main/java/pwc/taxtech/atms/organization/mapper/OrganizationHKTMapper.java
View file @
1516dded
...
...
@@ -21,4 +21,13 @@ public interface OrganizationHKTMapper {
OrganizationHKDto
toOrganizationHKDto
(
OrganizationHK
organizationHK
);
OrgInfoDto
toOrgInfoDto
(
OrganizationHK
organizationHK
);
@Mapping
(
source
=
"createTime"
,
target
=
"createTime"
,
dateFormat
=
"yyyy/MM/dd"
)
@Mapping
(
source
=
"updateTime"
,
target
=
"updateTime"
,
dateFormat
=
"yyyy/MM/dd"
)
@Mapping
(
source
=
"dateOfIncorporation"
,
target
=
"dateOfIncorporation"
,
dateFormat
=
"yyyy/MM/dd"
)
@Mapping
(
source
=
"paymentOfAnnualGovernmentFee"
,
target
=
"paymentOfAnnualGovernmentFee"
,
dateFormat
=
"yyyy/MM/dd"
)
@Mapping
(
source
=
"annualReturnFillings"
,
target
=
"annualReturnFillings"
,
dateFormat
=
"yyyy/MM/dd"
)
@Mapping
(
source
=
"renewalOfBusinessLicense"
,
target
=
"renewalOfBusinessLicense"
,
dateFormat
=
"yyyy/MM/dd"
)
@Mapping
(
source
=
"annualAuditRequirement"
,
target
=
"annualAuditRequirement"
,
dateFormat
=
"yyyy/MM/dd"
)
OrganizationHK
toOrganiztionHK
(
OrganizationHKDto
organizationHKDto
);
}
atms-web/src/main/webapp/app/common/controls/upload-org-modal/upload-org-modal.ctrl.js
View file @
1516dded
...
...
@@ -29,7 +29,7 @@ commonModule.controller('uploadOrgModalController', ['$scope', '$log', '$transla
importExcelF
:
null
};
$scope
.
import
RLITExcelFile
=
apiInterceptor
.
webApiHostUrl
+
'/DataImport/RLIT
ExcelFile'
;
$scope
.
import
OrgExcelFile
=
apiInterceptor
.
webApiHostUrl
+
'/DataImport/Org
ExcelFile'
;
$scope
.
downloadTemplate
=
function
()
{
templateService
.
downloadTemplate
().
success
(
function
(
data
,
status
,
headers
)
{
var
octetStreamMime
=
'application/octet-stream'
;
...
...
@@ -81,9 +81,8 @@ commonModule.controller('uploadOrgModalController', ['$scope', '$log', '$transla
Upload
.
upload
({
url
:
$scope
.
import
RLIT
ExcelFile
,
url
:
$scope
.
import
Org
ExcelFile
,
data
:
{
importType
:
importType
},
file
:
impExl
,
headers
:
{
...
...
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