Commit 943fbc69 authored by frank.xa.zhang's avatar frank.xa.zhang

fixed shareholder structure -- frank

parent bdfa65ae
...@@ -279,7 +279,7 @@ public class OrganizationHKServiceImpl { ...@@ -279,7 +279,7 @@ public class OrganizationHKServiceImpl {
.collect(Collectors.toList()).get(0); .collect(Collectors.toList()).get(0);
parentOrg.setParentName(organization == null ? null : organization.getName()); parentOrg.setParentName(organization == null ? null : organization.getName());
} }
List<OrganizationHK> subOrgs = null; List<OrganizationHK> subOrgs;
if (useType == 1) { if (useType == 1) {
subOrgs = orgs.stream().filter(x -> parentOrg.getId().equals(x.getParentId())).collect(Collectors.toList()); subOrgs = orgs.stream().filter(x -> parentOrg.getId().equals(x.getParentId())).collect(Collectors.toList());
} else { } else {
...@@ -297,15 +297,14 @@ public class OrganizationHKServiceImpl { ...@@ -297,15 +297,14 @@ public class OrganizationHKServiceImpl {
return parentOrg; return parentOrg;
} }
public List<OrganizationHK> findAllOrganizations() { private List<OrganizationHK> findAllOrganizations() {
OrganizationHKExample organizationExample = new OrganizationHKExample(); OrganizationHKExample organizationExample = new OrganizationHKExample();
return organizationHKMapper.selectByExample(organizationExample); return organizationHKMapper.selectByExample(organizationExample);
} }
public OrganizationHKDto getSingleOrgByOrgId(Long orgId) { public OrganizationHKDto getSingleOrgByOrgId(Long orgId) {
OrganizationHK organizationHK = organizationHKMapper.selectByPrimaryKey(orgId); OrganizationHK organizationHK = organizationHKMapper.selectByPrimaryKey(orgId);
OrganizationHKDto result = new OrganizationHKDto(); OrganizationHKDto result =organizationHKTMapper.toOrganizationHKDto(organizationHK);
CommonUtils.copyProperties(organizationHK, result);
Assert.notNull(result, "result is null"); Assert.notNull(result, "result is null");
result.setLevel(result.getLevel() == null ? 0 : result.getLevel()); result.setLevel(result.getLevel() == null ? 0 : result.getLevel());
result.setParentName(""); result.setParentName("");
...@@ -393,7 +392,7 @@ public class OrganizationHKServiceImpl { ...@@ -393,7 +392,7 @@ public class OrganizationHKServiceImpl {
private OperationResultDto checkExist(OrganizationHKDto orgDto) { private OperationResultDto checkExist(OrganizationHKDto orgDto) {
Assert.notNull(orgDto, "orgDto null point error"); Assert.notNull(orgDto, "orgDto null point error");
OrganizationHK queryRoot = null; OrganizationHK queryRoot;
OrganizationHKExample example = new OrganizationHKExample(); OrganizationHKExample example = new OrganizationHKExample();
OrganizationHKExample.Criteria criteria = example.createCriteria(); OrganizationHKExample.Criteria criteria = example.createCriteria();
criteria.andCodeEqualTo(orgDto.getCode()); criteria.andCodeEqualTo(orgDto.getCode());
......
...@@ -11,9 +11,13 @@ import pwc.taxtech.atms.organization.entity.OrganizationHK; ...@@ -11,9 +11,13 @@ import pwc.taxtech.atms.organization.entity.OrganizationHK;
public interface OrganizationHKTMapper { public interface OrganizationHKTMapper {
OrganizationHKTMapper ORGANIZATION_HK_MAPPER = Mappers.getMapper(OrganizationHKTMapper.class); OrganizationHKTMapper ORGANIZATION_HK_MAPPER = Mappers.getMapper(OrganizationHKTMapper.class);
@Mapping(source = "createTime", target = "createTime" ,dateFormat = "yyyy/MM/dd") @Mapping(source = "createTime", target = "createTime", dateFormat = "yyyy/MM/dd")
@Mapping(source = "updateTime", target = "updateTime" ,dateFormat = "yyyy/MM/dd") @Mapping(source = "updateTime", target = "updateTime", dateFormat = "yyyy/MM/dd")
@Mapping(source = "dateOfIncorporation", target = "dateOfIncorporation" ,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")
OrganizationHKDto toOrganizationHKDto(OrganizationHK organizationHK); OrganizationHKDto toOrganizationHKDto(OrganizationHK organizationHK);
OrgInfoDto toOrgInfoDto(OrganizationHK organizationHK); OrgInfoDto toOrgInfoDto(OrganizationHK organizationHK);
......
...@@ -332,8 +332,7 @@ ...@@ -332,8 +332,7 @@
</div> </div>
<div class="right-option"> <div class="right-option">
<button type="button" class="btn btn-in-grid" style="width: 117px;" <button type="button" class="btn btn-in-grid" style="width: 117px;"
ng-click="addDirector()"><i ng-click="addDirector()"><i class="material-icons middle">create</i>{{'Create' | translate}}
class="material-icons middle">create</i>{{'Create' | translate}}
</button> </button>
</div> </div>
<div class="current-holding-info"> <div class="current-holding-info">
...@@ -353,7 +352,7 @@ ...@@ -353,7 +352,7 @@
<span class="compliance-lable">{{'ComplianceCheckList'|translate}}</span> <span class="compliance-lable">{{'ComplianceCheckList'|translate}}</span>
</div> </div>
<div class="org-compliance-info-body"> <div class="org-compliance-info-body">
<!-- <div id="ComplianceGridContainer" dx-data-grid="complianceGridOptions" style="margin-top: 10px;"></div>--> <!-- <div id="ComplianceGridContainer" dx-data-grid="complianceGridOptions" style="margin-top: 10px;"></div>-->
<div id="data-grid-compliance"> <div id="data-grid-compliance">
<div style="color: red;float: left;margin: 10px 20px;">+ New Action Item</div> <div style="color: red;float: left;margin: 10px 20px;">+ New Action Item</div>
<div class="complianceSaveSelected" dx-button="complianceRevertButtonOptions"></div> <div class="complianceSaveSelected" dx-button="complianceRevertButtonOptions"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment