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
44ad4bf0
Commit
44ad4bf0
authored
Oct 09, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEL] delete organization service interface
parent
0a050f4a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
27 additions
and
149 deletions
+27
-149
OrganizationController.java
...a/pwc/taxtech/atms/controller/OrganizationController.java
+2
-2
OrganizationService.java
...in/java/pwc/taxtech/atms/service/OrganizationService.java
+0
-89
AreaServiceImpl.java
...n/java/pwc/taxtech/atms/service/impl/AreaServiceImpl.java
+12
-14
BusinessUnitServiceImpl.java
...wc/taxtech/atms/service/impl/BusinessUnitServiceImpl.java
+8
-10
OrganizationServiceImpl.java
...wc/taxtech/atms/service/impl/OrganizationServiceImpl.java
+1
-26
OrganizationStructureServiceImpl.java
...h/atms/service/impl/OrganizationStructureServiceImpl.java
+1
-2
RoleServiceImpl.java
...n/java/pwc/taxtech/atms/service/impl/RoleServiceImpl.java
+1
-2
UserRoleServiceImpl.java
...va/pwc/taxtech/atms/service/impl/UserRoleServiceImpl.java
+1
-2
UserServiceImpl.java
...n/java/pwc/taxtech/atms/service/impl/UserServiceImpl.java
+1
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/OrganizationController.java
View file @
44ad4bf0
...
@@ -25,7 +25,7 @@ import pwc.taxtech.atms.dto.organization.DimensionRoleDto;
...
@@ -25,7 +25,7 @@ import pwc.taxtech.atms.dto.organization.DimensionRoleDto;
import
pwc.taxtech.atms.dto.organization.OrgDto
;
import
pwc.taxtech.atms.dto.organization.OrgDto
;
import
pwc.taxtech.atms.dto.organization.OrgGeneralInfoDto
;
import
pwc.taxtech.atms.dto.organization.OrgGeneralInfoDto
;
import
pwc.taxtech.atms.dto.organization.UpdateOrgDimensionDto
;
import
pwc.taxtech.atms.dto.organization.UpdateOrgDimensionDto
;
import
pwc.taxtech.atms.service.
OrganizationService
;
import
pwc.taxtech.atms.service.
impl.OrganizationServiceImpl
;
import
pwc.taxtech.atms.service.impl.UserRoleServiceImpl
;
import
pwc.taxtech.atms.service.impl.UserRoleServiceImpl
;
import
pwc.taxtech.atms.service.impl.UserServiceImpl
;
import
pwc.taxtech.atms.service.impl.UserServiceImpl
;
...
@@ -38,7 +38,7 @@ public class OrganizationController {
...
@@ -38,7 +38,7 @@ public class OrganizationController {
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
OrganizationController
.
class
);
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
OrganizationController
.
class
);
@Autowired
@Autowired
OrganizationService
organizationService
;
OrganizationService
Impl
organizationService
;
@Autowired
@Autowired
UserRoleServiceImpl
userRoleService
;
UserRoleServiceImpl
userRoleService
;
@Autowired
@Autowired
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/OrganizationService.java
deleted
100644 → 0
View file @
0a050f4a
package
pwc
.
taxtech
.
atms
.
service
;
import
java.util.List
;
import
pwc.taxtech.atms.dpo.DimensionValueOrgDto
;
import
pwc.taxtech.atms.dpo.OrgBasicDto
;
import
pwc.taxtech.atms.dpo.OrganizationDto
;
import
pwc.taxtech.atms.dto.AreaOrganizationStatistics
;
import
pwc.taxtech.atms.dto.IndustryDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.OrganizationValidateDto
;
import
pwc.taxtech.atms.dto.dimension.DimensionOrgDtoDashboard
;
import
pwc.taxtech.atms.dto.dimension.OrgDashboardParams
;
import
pwc.taxtech.atms.dto.navtree.DevTreeDto
;
import
pwc.taxtech.atms.dto.navtree.NavTreeDto
;
import
pwc.taxtech.atms.dto.organization.OrgCustomDto
;
import
pwc.taxtech.atms.dto.organization.OrgDto
;
import
pwc.taxtech.atms.dto.organization.OrgGeneralInfoDto
;
import
pwc.taxtech.atms.entity.Area
;
import
pwc.taxtech.atms.entity.Organization
;
public
interface
OrganizationService
{
boolean
isOrganizationStructureExists
(
String
organizationStructureId
);
/**
* Get area linked organizations
*
* @param List<Area>
* areaList
* @return List<Organization>
*/
List
<
Organization
>
getLinkedOrganization
(
List
<
Area
>
areaList
);
List
<
NavTreeDto
>
getOrgListToJson
(
Integer
useType
);
/**
* 获取根据机构筛选的属性和机构名称
*
* @return List<OrganizationDto>
*/
List
<
OrganizationDto
>
getOrganizationFilterList
();
List
<
Organization
>
findAllOrganizations
();
List
<
OrganizationDto
>
getOrgList
(
Integer
useType
);
List
<
IndustryDto
>
getProjectIndustryList
();
List
<
OrgBasicDto
>
getOrgListLevel
();
Boolean
taxPayerNumberUniqueValidate
(
OrganizationValidateDto
validateDto
);
List
<
DimensionOrgDtoDashboard
>
getOrgDashboard
(
String
parentDimensionId
,
String
parentOrgId
,
OrgDashboardParams
param
);
List
<
DimensionValueOrgDto
>
getDimensionValueOrgDtoList
();
List
<
OrganizationDto
>
getOrganizationListByAreaId
(
String
areaId
,
String
attributeId
);
AreaOrganizationStatistics
getAreaStatistics
();
OrgDto
getOrgCustomDashbord
(
String
dimensionValueId
,
String
parentDimensionId
,
String
attributeId
);
OrgCustomDto
getDimensionValueName
(
String
dimensionId
,
String
dimensionValueId
);
@SuppressWarnings
(
"rawtypes"
)
OperationResultDto
disableOrgs
(
List
<
String
>
orgIds
);
@SuppressWarnings
(
"rawtypes"
)
OperationResultDto
enableOrgs
(
String
orgId
);
@SuppressWarnings
(
"rawtypes"
)
OperationResultDto
updateOrgToDimension
(
String
dimensionValueId
,
String
parentDimensionId
,
List
<
OrgBasicDto
>
orgList
);
OrganizationDto
getSingleOrgByOrgId
(
String
orgId
);
Boolean
codeUniqueValidate
(
OrganizationValidateDto
validateDto
);
OperationResultDto
<
Object
>
addOrg
(
OrganizationDto
orgDto
);
OperationResultDto
<
Object
>
updateOrg
(
OrganizationDto
orgDto
);
OrgGeneralInfoDto
getGeneralInfo
(
String
orgId
);
List
<
DevTreeDto
>
getOrgIvhTreeList
(
Integer
useType
,
String
orgSetId
);
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/AreaServiceImpl.java
View file @
44ad4bf0
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
pwc.taxtech.atms.exception.ApplicationException
;
import
pwc.taxtech.atms.common.AuthUserHelper
;
import
pwc.taxtech.atms.common.AuthUserHelper
;
import
pwc.taxtech.atms.common.CommonConstants
;
import
pwc.taxtech.atms.common.CommonConstants
;
import
pwc.taxtech.atms.common.CommonUtils
;
import
pwc.taxtech.atms.common.CommonUtils
;
...
@@ -30,9 +23,14 @@ import pwc.taxtech.atms.entity.Area;
...
@@ -30,9 +23,14 @@ import pwc.taxtech.atms.entity.Area;
import
pwc.taxtech.atms.entity.AreaExample
;
import
pwc.taxtech.atms.entity.AreaExample
;
import
pwc.taxtech.atms.entity.AreaExample.Criteria
;
import
pwc.taxtech.atms.entity.AreaExample.Criteria
;
import
pwc.taxtech.atms.entity.Organization
;
import
pwc.taxtech.atms.entity.Organization
;
import
pwc.taxtech.atms.exception.ApplicationException
;
import
pwc.taxtech.atms.service.AreaService
;
import
pwc.taxtech.atms.service.AreaService
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OrganizationService
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@Service
@Service
public
class
AreaServiceImpl
implements
AreaService
{
public
class
AreaServiceImpl
implements
AreaService
{
...
@@ -40,7 +38,7 @@ public class AreaServiceImpl implements AreaService {
...
@@ -40,7 +38,7 @@ public class AreaServiceImpl implements AreaService {
@Autowired
@Autowired
private
AreaMapper
areaMapper
;
private
AreaMapper
areaMapper
;
@Autowired
@Autowired
private
OrganizationService
organizationService
;
private
OrganizationService
Impl
organizationService
;
@Autowired
@Autowired
private
OperationLogService
operationLogService
;
private
OperationLogService
operationLogService
;
@Autowired
@Autowired
...
@@ -50,7 +48,7 @@ public class AreaServiceImpl implements AreaService {
...
@@ -50,7 +48,7 @@ public class AreaServiceImpl implements AreaService {
/*
/*
* (non-Javadoc)
* (non-Javadoc)
*
*
* @see pwc.taxtech.atms.service.AreaService#findTopAreas()
* @see pwc.taxtech.atms.service.AreaService#findTopAreas()
*/
*/
@Override
@Override
...
@@ -67,7 +65,7 @@ public class AreaServiceImpl implements AreaService {
...
@@ -67,7 +65,7 @@ public class AreaServiceImpl implements AreaService {
/*
/*
* (non-Javadoc)
* (non-Javadoc)
*
*
* @see pwc.taxtech.atms.service.AreaService#getSubAreaListIngoreActive()
* @see pwc.taxtech.atms.service.AreaService#getSubAreaListIngoreActive()
*/
*/
@Override
@Override
...
@@ -81,7 +79,7 @@ public class AreaServiceImpl implements AreaService {
...
@@ -81,7 +79,7 @@ public class AreaServiceImpl implements AreaService {
/*
/*
* (non-Javadoc)
* (non-Javadoc)
*
*
* @see
* @see
* pwc.taxtech.atms.service.AreaService#setIsActive(pwc.taxtech.atms.service.dto
* pwc.taxtech.atms.service.AreaService#setIsActive(pwc.taxtech.atms.service.dto
* .AreaDto, java.lang.String)
* .AreaDto, java.lang.String)
...
@@ -171,7 +169,7 @@ public class AreaServiceImpl implements AreaService {
...
@@ -171,7 +169,7 @@ public class AreaServiceImpl implements AreaService {
/*
/*
* (non-Javadoc)
* (non-Javadoc)
*
*
* @see pwc.taxtech.atms.service.AreaService#getAllSubAreas(java.lang.String)
* @see pwc.taxtech.atms.service.AreaService#getAllSubAreas(java.lang.String)
*/
*/
@Override
@Override
...
@@ -191,7 +189,7 @@ public class AreaServiceImpl implements AreaService {
...
@@ -191,7 +189,7 @@ public class AreaServiceImpl implements AreaService {
/*
/*
* (non-Javadoc)
* (non-Javadoc)
*
*
* @see pwc.taxtech.atms.service.AreaService#getAreaList(int)
* @see pwc.taxtech.atms.service.AreaService#getAreaList(int)
*/
*/
@Override
@Override
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/BusinessUnitServiceImpl.java
View file @
44ad4bf0
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
package
pwc
.
taxtech
.
atms
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
pwc.taxtech.atms.exception.ApplicationException
;
import
pwc.taxtech.atms.common.AuthUserHelper
;
import
pwc.taxtech.atms.common.AuthUserHelper
;
import
pwc.taxtech.atms.common.CommonConstants
;
import
pwc.taxtech.atms.common.CommonConstants
;
import
pwc.taxtech.atms.common.CommonUtils
;
import
pwc.taxtech.atms.common.CommonUtils
;
...
@@ -27,9 +21,13 @@ import pwc.taxtech.atms.dto.UpdateLogParams;
...
@@ -27,9 +21,13 @@ import pwc.taxtech.atms.dto.UpdateLogParams;
import
pwc.taxtech.atms.entity.BusinessUnit
;
import
pwc.taxtech.atms.entity.BusinessUnit
;
import
pwc.taxtech.atms.entity.BusinessUnitExample
;
import
pwc.taxtech.atms.entity.BusinessUnitExample
;
import
pwc.taxtech.atms.entity.BusinessUnitExample.Criteria
;
import
pwc.taxtech.atms.entity.BusinessUnitExample.Criteria
;
import
pwc.taxtech.atms.exception.ApplicationException
;
import
pwc.taxtech.atms.service.BusinessUnitService
;
import
pwc.taxtech.atms.service.BusinessUnitService
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OrganizationService
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
*/
*/
...
@@ -45,7 +43,7 @@ public class BusinessUnitServiceImpl implements BusinessUnitService {
...
@@ -45,7 +43,7 @@ public class BusinessUnitServiceImpl implements BusinessUnitService {
private
OperationLogService
operationLogService
;
private
OperationLogService
operationLogService
;
@Autowired
@Autowired
private
OrganizationService
organizationService
;
private
OrganizationService
Impl
organizationService
;
@Autowired
@Autowired
private
AuthUserHelper
authUserHelper
;
private
AuthUserHelper
authUserHelper
;
...
@@ -196,7 +194,7 @@ public class BusinessUnitServiceImpl implements BusinessUnitService {
...
@@ -196,7 +194,7 @@ public class BusinessUnitServiceImpl implements BusinessUnitService {
businessUnit
.
setIsActive
(
businessUnitDto
.
getIsActive
());
businessUnit
.
setIsActive
(
businessUnitDto
.
getIsActive
());
return
businessUnit
;
return
businessUnit
;
}
}
private
BusinessUnit
rotateBusinessUnitDtoForInput
(
BusinessUnitInputDto
businessUnitDto
)
{
private
BusinessUnit
rotateBusinessUnitDtoForInput
(
BusinessUnitInputDto
businessUnitDto
)
{
BusinessUnit
businessUnit
=
new
BusinessUnit
();
BusinessUnit
businessUnit
=
new
BusinessUnit
();
businessUnit
.
setId
(
businessUnitDto
.
getId
());
businessUnit
.
setId
(
businessUnitDto
.
getId
());
...
@@ -215,7 +213,7 @@ public class BusinessUnitServiceImpl implements BusinessUnitService {
...
@@ -215,7 +213,7 @@ public class BusinessUnitServiceImpl implements BusinessUnitService {
return
businessUnitMapper
.
selectByExample
(
example
);
return
businessUnitMapper
.
selectByExample
(
example
);
}
}
@Override
@Override
public
List
<
BusinessUnit
>
findByIsActiveTrue
()
{
public
List
<
BusinessUnit
>
findByIsActiveTrue
()
{
BusinessUnitExample
example
=
new
BusinessUnitExample
();
BusinessUnitExample
example
=
new
BusinessUnitExample
();
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OrganizationServiceImpl.java
View file @
44ad4bf0
...
@@ -59,7 +59,6 @@ import pwc.taxtech.atms.exception.ApplicationException;
...
@@ -59,7 +59,6 @@ import pwc.taxtech.atms.exception.ApplicationException;
import
pwc.taxtech.atms.service.CommonService
;
import
pwc.taxtech.atms.service.CommonService
;
import
pwc.taxtech.atms.service.DimensionService
;
import
pwc.taxtech.atms.service.DimensionService
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OrganizationService
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -87,7 +86,7 @@ import static pwc.taxtech.atms.common.message.LogMessage.AddOrganization;
...
@@ -87,7 +86,7 @@ import static pwc.taxtech.atms.common.message.LogMessage.AddOrganization;
* @author rzhou038
* @author rzhou038
*/
*/
@Service
@Service
public
class
OrganizationServiceImpl
implements
OrganizationService
{
public
class
OrganizationServiceImpl
{
@Autowired
@Autowired
private
OrganizationMapper
organizationMapper
;
private
OrganizationMapper
organizationMapper
;
...
@@ -173,7 +172,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -173,7 +172,6 @@ public class OrganizationServiceImpl implements OrganizationService {
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ProjectServiceImpl
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ProjectServiceImpl
.
class
);
@Override
public
boolean
isOrganizationStructureExists
(
String
organizationStructureId
)
{
public
boolean
isOrganizationStructureExists
(
String
organizationStructureId
)
{
OrganizationExample
example
=
new
OrganizationExample
();
OrganizationExample
example
=
new
OrganizationExample
();
example
.
createCriteria
().
andStructureIdEqualTo
(
organizationStructureId
);
example
.
createCriteria
().
andStructureIdEqualTo
(
organizationStructureId
);
...
@@ -187,7 +185,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -187,7 +185,6 @@ public class OrganizationServiceImpl implements OrganizationService {
* pwc.taxtech.atms.service.OrganizationService#getLinkedOrganization(java.util.
* pwc.taxtech.atms.service.OrganizationService#getLinkedOrganization(java.util.
* List)
* List)
*/
*/
@Override
public
List
<
Organization
>
getLinkedOrganization
(
List
<
Area
>
areaList
)
{
public
List
<
Organization
>
getLinkedOrganization
(
List
<
Area
>
areaList
)
{
List
<
String
>
areaIdList
=
areaList
.
stream
().
map
(
area
->
area
.
getId
()).
collect
(
Collectors
.
toList
());
List
<
String
>
areaIdList
=
areaList
.
stream
().
map
(
area
->
area
.
getId
()).
collect
(
Collectors
.
toList
());
...
@@ -200,7 +197,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -200,7 +197,6 @@ public class OrganizationServiceImpl implements OrganizationService {
return
organizationList
;
return
organizationList
;
}
}
@Override
public
List
<
NavTreeDto
>
getOrgListToJson
(
Integer
useType
)
{
public
List
<
NavTreeDto
>
getOrgListToJson
(
Integer
useType
)
{
List
<
OrganizationDto
>
orgList
=
getOrgList
(
useType
);
List
<
OrganizationDto
>
orgList
=
getOrgList
(
useType
);
return
orgList
.
stream
().
map
(
this
::
rotateOrganizationDtoToNavTreeDto
).
collect
(
Collectors
.
toList
());
return
orgList
.
stream
().
map
(
this
::
rotateOrganizationDtoToNavTreeDto
).
collect
(
Collectors
.
toList
());
...
@@ -215,7 +211,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -215,7 +211,6 @@ public class OrganizationServiceImpl implements OrganizationService {
return
navTreeDto
;
return
navTreeDto
;
}
}
@Override
public
List
<
OrganizationDto
>
getOrgList
(
Integer
useType
)
{
public
List
<
OrganizationDto
>
getOrgList
(
Integer
useType
)
{
List
<
OrganizationDto
>
orgDtoList
=
new
ArrayList
<>();
List
<
OrganizationDto
>
orgDtoList
=
new
ArrayList
<>();
List
<
Organization
>
orgList
=
findAllOrganizations
();
List
<
Organization
>
orgList
=
findAllOrganizations
();
...
@@ -282,7 +277,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -282,7 +277,6 @@ public class OrganizationServiceImpl implements OrganizationService {
*
*
* @see pwc.taxtech.atms.service.OrganizationService#GetOrganizationFilterList()
* @see pwc.taxtech.atms.service.OrganizationService#GetOrganizationFilterList()
*/
*/
@Override
public
List
<
OrganizationDto
>
getOrganizationFilterList
()
{
public
List
<
OrganizationDto
>
getOrganizationFilterList
()
{
OrganizationExample
example
=
new
OrganizationExample
();
OrganizationExample
example
=
new
OrganizationExample
();
...
@@ -304,13 +298,11 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -304,13 +298,11 @@ public class OrganizationServiceImpl implements OrganizationService {
return
organizationDtoList
;
return
organizationDtoList
;
}
}
@Override
public
List
<
Organization
>
findAllOrganizations
()
{
public
List
<
Organization
>
findAllOrganizations
()
{
OrganizationExample
organizationExample
=
new
OrganizationExample
();
OrganizationExample
organizationExample
=
new
OrganizationExample
();
return
organizationMapper
.
selectByExample
(
organizationExample
);
return
organizationMapper
.
selectByExample
(
organizationExample
);
}
}
@Override
public
List
<
IndustryDto
>
getProjectIndustryList
()
{
public
List
<
IndustryDto
>
getProjectIndustryList
()
{
logger
.
debug
(
"获取Project Industrys Start"
);
logger
.
debug
(
"获取Project Industrys Start"
);
IndustryExample
example
=
new
IndustryExample
();
IndustryExample
example
=
new
IndustryExample
();
...
@@ -335,7 +327,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -335,7 +327,6 @@ public class OrganizationServiceImpl implements OrganizationService {
.
findFirst
().
orElse
(
null
);
.
findFirst
().
orElse
(
null
);
}
}
@Override
public
List
<
OrgBasicDto
>
getOrgListLevel
()
{
public
List
<
OrgBasicDto
>
getOrgListLevel
()
{
return
organizationMapper
.
selectIndBusiunitAreaOrgstrctReg
(
false
);
return
organizationMapper
.
selectIndBusiunitAreaOrgstrctReg
(
false
);
}
}
...
@@ -351,7 +342,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -351,7 +342,6 @@ public class OrganizationServiceImpl implements OrganizationService {
return
getOrganizationJoinResult
(
true
);
return
getOrganizationJoinResult
(
true
);
}
}
@Override
public
Boolean
taxPayerNumberUniqueValidate
(
OrganizationValidateDto
validateDto
)
{
public
Boolean
taxPayerNumberUniqueValidate
(
OrganizationValidateDto
validateDto
)
{
String
innerId
=
Strings
.
sBlank
(
validateDto
.
getId
()).
trim
();
String
innerId
=
Strings
.
sBlank
(
validateDto
.
getId
()).
trim
();
String
innerNumber
=
Strings
.
sBlank
(
validateDto
.
getValue
()).
trim
();
String
innerNumber
=
Strings
.
sBlank
(
validateDto
.
getValue
()).
trim
();
...
@@ -367,7 +357,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -367,7 +357,6 @@ public class OrganizationServiceImpl implements OrganizationService {
/**
/**
* 自定义维度显示属性,在机构管理顶部点击某个维度的时候,显示下面维度的属性,Orgchart结构树(Jack)
* 自定义维度显示属性,在机构管理顶部点击某个维度的时候,显示下面维度的属性,Orgchart结构树(Jack)
*/
*/
@Override
public
List
<
DimensionOrgDtoDashboard
>
getOrgDashboard
(
String
parentDimensionId
,
String
parentOrgId
,
public
List
<
DimensionOrgDtoDashboard
>
getOrgDashboard
(
String
parentDimensionId
,
String
parentOrgId
,
OrgDashboardParams
param
)
{
OrgDashboardParams
param
)
{
List
<
String
>
expandedOrgList
=
(
param
==
null
?
null
:
param
.
getExpandedOrgList
());
List
<
String
>
expandedOrgList
=
(
param
==
null
?
null
:
param
.
getExpandedOrgList
());
...
@@ -944,7 +933,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -944,7 +933,6 @@ public class OrganizationServiceImpl implements OrganizationService {
});
});
}
}
@Override
public
List
<
DimensionValueOrgDto
>
getDimensionValueOrgDtoList
()
{
public
List
<
DimensionValueOrgDto
>
getDimensionValueOrgDtoList
()
{
return
organizationMapper
.
getDimensionValueOrgDtoList
();
return
organizationMapper
.
getDimensionValueOrgDtoList
();
}
}
...
@@ -1105,7 +1093,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -1105,7 +1093,6 @@ public class OrganizationServiceImpl implements OrganizationService {
// return orgDto;
// return orgDto;
// }
// }
@Override
public
List
<
OrganizationDto
>
getOrganizationListByAreaId
(
String
areaId
,
String
attributeId
)
{
public
List
<
OrganizationDto
>
getOrganizationListByAreaId
(
String
areaId
,
String
attributeId
)
{
List
<
AreaRegionDto
>
provinceRegionList
=
areaRegionMapper
List
<
AreaRegionDto
>
provinceRegionList
=
areaRegionMapper
...
@@ -1141,7 +1128,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -1141,7 +1128,6 @@ public class OrganizationServiceImpl implements OrganizationService {
return
orgList
;
return
orgList
;
}
}
@Override
public
AreaOrganizationStatistics
getAreaStatistics
()
{
public
AreaOrganizationStatistics
getAreaStatistics
()
{
AreaExample
example
=
new
AreaExample
();
AreaExample
example
=
new
AreaExample
();
example
.
createCriteria
().
andIsActiveEqualTo
(
true
);
example
.
createCriteria
().
andIsActiveEqualTo
(
true
);
...
@@ -1280,7 +1266,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -1280,7 +1266,6 @@ public class OrganizationServiceImpl implements OrganizationService {
/**
/**
*/
*/
@Override
public
OrgDto
getOrgCustomDashbord
(
final
String
dimensionValueId
,
final
String
parentDimensionId
,
public
OrgDto
getOrgCustomDashbord
(
final
String
dimensionValueId
,
final
String
parentDimensionId
,
final
String
attributeId
)
{
final
String
attributeId
)
{
Assert
.
hasText
(
parentDimensionId
,
"Empty parentDimensionId"
);
Assert
.
hasText
(
parentDimensionId
,
"Empty parentDimensionId"
);
...
@@ -1744,7 +1729,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -1744,7 +1729,6 @@ public class OrganizationServiceImpl implements OrganizationService {
/**
/**
* 获取维度的名称,维度值的名称
* 获取维度的名称,维度值的名称
*/
*/
@Override
public
OrgCustomDto
getDimensionValueName
(
String
dimensionId
,
String
dimensionValueId
)
{
public
OrgCustomDto
getDimensionValueName
(
String
dimensionId
,
String
dimensionValueId
)
{
OrgCustomDto
customDto
=
new
OrgCustomDto
();
OrgCustomDto
customDto
=
new
OrgCustomDto
();
DimensinTypeOrgDto
dimensionDto
=
dimensionService
.
getDimensionById
(
dimensionId
);
DimensinTypeOrgDto
dimensionDto
=
dimensionService
.
getDimensionById
(
dimensionId
);
...
@@ -1774,7 +1758,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -1774,7 +1758,6 @@ public class OrganizationServiceImpl implements OrganizationService {
}
}
@SuppressWarnings
({
"rawtypes"
,
"deprecation"
})
@SuppressWarnings
({
"rawtypes"
,
"deprecation"
})
@Override
public
OperationResultDto
disableOrgs
(
List
<
String
>
orgIds
)
{
public
OperationResultDto
disableOrgs
(
List
<
String
>
orgIds
)
{
try
{
try
{
List
<
OperationLogDto
>
logList
=
new
ArrayList
<>();
List
<
OperationLogDto
>
logList
=
new
ArrayList
<>();
...
@@ -1807,7 +1790,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -1807,7 +1790,6 @@ public class OrganizationServiceImpl implements OrganizationService {
}
}
@SuppressWarnings
({
"rawtypes"
})
@SuppressWarnings
({
"rawtypes"
})
@Override
public
OperationResultDto
enableOrgs
(
String
orgId
)
{
public
OperationResultDto
enableOrgs
(
String
orgId
)
{
Organization
curOrg
=
orgId
!=
null
?
organizationMapper
.
selectByPrimaryKey
(
orgId
)
:
null
;
Organization
curOrg
=
orgId
!=
null
?
organizationMapper
.
selectByPrimaryKey
(
orgId
)
:
null
;
if
(
curOrg
==
null
)
{
if
(
curOrg
==
null
)
{
...
@@ -1832,7 +1814,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -1832,7 +1814,6 @@ public class OrganizationServiceImpl implements OrganizationService {
}
}
}
}
@Override
public
OrganizationDto
getSingleOrgByOrgId
(
String
orgId
)
{
public
OrganizationDto
getSingleOrgByOrgId
(
String
orgId
)
{
OrganizationDto
result
=
organizationMapper
.
getSingleOrgByOrgIdToOrgDto
(
orgId
).
stream
().
findFirst
()
OrganizationDto
result
=
organizationMapper
.
getSingleOrgByOrgIdToOrgDto
(
orgId
).
stream
().
findFirst
()
.
orElse
(
null
);
.
orElse
(
null
);
...
@@ -1872,7 +1853,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -1872,7 +1853,6 @@ public class OrganizationServiceImpl implements OrganizationService {
return
result
;
return
result
;
}
}
@Override
public
Boolean
codeUniqueValidate
(
OrganizationValidateDto
validateDto
)
{
public
Boolean
codeUniqueValidate
(
OrganizationValidateDto
validateDto
)
{
String
innerId
=
Strings
.
isBlank
(
validateDto
.
getId
())
?
""
:
validateDto
.
getId
().
trim
();
String
innerId
=
Strings
.
isBlank
(
validateDto
.
getId
())
?
""
:
validateDto
.
getId
().
trim
();
String
innerCode
=
Strings
.
isBlank
(
validateDto
.
getValue
())
?
""
:
validateDto
.
getValue
().
trim
();
String
innerCode
=
Strings
.
isBlank
(
validateDto
.
getValue
())
?
""
:
validateDto
.
getValue
().
trim
();
...
@@ -1881,7 +1861,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -1881,7 +1861,6 @@ public class OrganizationServiceImpl implements OrganizationService {
}
}
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
@Override
public
OperationResultDto
<
Object
>
addOrg
(
OrganizationDto
orgDto
)
{
public
OperationResultDto
<
Object
>
addOrg
(
OrganizationDto
orgDto
)
{
try
{
try
{
OperationResultDto
result
=
checkExist
(
orgDto
);
OperationResultDto
result
=
checkExist
(
orgDto
);
...
@@ -2122,7 +2101,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -2122,7 +2101,6 @@ public class OrganizationServiceImpl implements OrganizationService {
}
}
@SuppressWarnings
(
"rawtypes"
)
@SuppressWarnings
(
"rawtypes"
)
@Override
public
OperationResultDto
updateOrgToDimension
(
String
dimensionValueId
,
String
parentDimensionId
,
public
OperationResultDto
updateOrgToDimension
(
String
dimensionValueId
,
String
parentDimensionId
,
List
<
OrgBasicDto
>
orgList
)
{
List
<
OrgBasicDto
>
orgList
)
{
if
(
orgList
==
null
||
dimensionValueId
==
null
||
parentDimensionId
==
null
)
{
if
(
orgList
==
null
||
dimensionValueId
==
null
||
parentDimensionId
==
null
)
{
...
@@ -2251,7 +2229,6 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -2251,7 +2229,6 @@ public class OrganizationServiceImpl implements OrganizationService {
* update a org info
* update a org info
*/
*/
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
@Override
public
OperationResultDto
<
Object
>
updateOrg
(
OrganizationDto
orgDto
)
{
public
OperationResultDto
<
Object
>
updateOrg
(
OrganizationDto
orgDto
)
{
try
{
try
{
Assert
.
notNull
(
orgDto
,
"orgDto Null Exception on updateOrg"
);
Assert
.
notNull
(
orgDto
,
"orgDto Null Exception on updateOrg"
);
...
@@ -2800,12 +2777,10 @@ public class OrganizationServiceImpl implements OrganizationService {
...
@@ -2800,12 +2777,10 @@ public class OrganizationServiceImpl implements OrganizationService {
return
retList
;
return
retList
;
}
}
@Override
public
OrgGeneralInfoDto
getGeneralInfo
(
String
orgId
)
{
public
OrgGeneralInfoDto
getGeneralInfo
(
String
orgId
)
{
return
getOrgGeneralInfo
(
orgId
);
return
getOrgGeneralInfo
(
orgId
);
}
}
@Override
public
List
<
DevTreeDto
>
getOrgIvhTreeList
(
Integer
useType
,
String
orgSetId
)
{
public
List
<
DevTreeDto
>
getOrgIvhTreeList
(
Integer
useType
,
String
orgSetId
)
{
//todo
//todo
List
<
DevTreeDto
>
result
=
Lists
.
newArrayList
();
List
<
DevTreeDto
>
result
=
Lists
.
newArrayList
();
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OrganizationStructureServiceImpl.java
View file @
44ad4bf0
...
@@ -22,7 +22,6 @@ import pwc.taxtech.atms.entity.OrganizationStructure;
...
@@ -22,7 +22,6 @@ import pwc.taxtech.atms.entity.OrganizationStructure;
import
pwc.taxtech.atms.entity.OrganizationStructureExample
;
import
pwc.taxtech.atms.entity.OrganizationStructureExample
;
import
pwc.taxtech.atms.exception.ApplicationException
;
import
pwc.taxtech.atms.exception.ApplicationException
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OrganizationService
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -40,7 +39,7 @@ public class OrganizationStructureServiceImpl {
...
@@ -40,7 +39,7 @@ public class OrganizationStructureServiceImpl {
private
OperationLogService
operationLogService
;
private
OperationLogService
operationLogService
;
@Autowired
@Autowired
private
OrganizationService
organizationService
;
private
OrganizationService
Impl
organizationService
;
@Autowired
@Autowired
private
AuthUserHelper
authUserHelper
;
private
AuthUserHelper
authUserHelper
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/RoleServiceImpl.java
View file @
44ad4bf0
...
@@ -38,7 +38,6 @@ import pwc.taxtech.atms.dto.role.UpdateRoleInfo;
...
@@ -38,7 +38,6 @@ import pwc.taxtech.atms.dto.role.UpdateRoleInfo;
import
pwc.taxtech.atms.dto.user.*
;
import
pwc.taxtech.atms.dto.user.*
;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.entity.UserRoleExample.Criteria
;
import
pwc.taxtech.atms.entity.UserRoleExample.Criteria
;
import
pwc.taxtech.atms.service.OrganizationService
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -63,7 +62,7 @@ public class RoleServiceImpl extends AbstractService {
...
@@ -63,7 +62,7 @@ public class RoleServiceImpl extends AbstractService {
private
UserRoleServiceImpl
userRoleService
;
private
UserRoleServiceImpl
userRoleService
;
@Autowired
@Autowired
private
OrganizationService
organizationService
;
private
OrganizationService
Impl
organizationService
;
public
List
<
NavTreeDto
>
getRoleTreeList
()
{
public
List
<
NavTreeDto
>
getRoleTreeList
()
{
logger
.
debug
(
"RoleServiceImpl getRoleTreeList"
);
logger
.
debug
(
"RoleServiceImpl getRoleTreeList"
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/UserRoleServiceImpl.java
View file @
44ad4bf0
...
@@ -44,7 +44,6 @@ import pwc.taxtech.atms.dto.user.UserRoleQueryDto;
...
@@ -44,7 +44,6 @@ import pwc.taxtech.atms.dto.user.UserRoleQueryDto;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.entity.UserRoleExample.Criteria
;
import
pwc.taxtech.atms.entity.UserRoleExample.Criteria
;
import
pwc.taxtech.atms.exception.ApplicationException
;
import
pwc.taxtech.atms.exception.ApplicationException
;
import
pwc.taxtech.atms.service.OrganizationService
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -60,7 +59,7 @@ public class UserRoleServiceImpl extends AbstractService {
...
@@ -60,7 +59,7 @@ public class UserRoleServiceImpl extends AbstractService {
private
PermissionServiceImpl
permissionService
;
private
PermissionServiceImpl
permissionService
;
@Autowired
@Autowired
private
OrganizationService
organizationService
;
private
OrganizationService
Impl
organizationService
;
@Autowired
@Autowired
private
UserServiceImpl
userService
;
private
UserServiceImpl
userService
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/UserServiceImpl.java
View file @
44ad4bf0
...
@@ -56,7 +56,6 @@ import pwc.taxtech.atms.security.JwtUtil;
...
@@ -56,7 +56,6 @@ import pwc.taxtech.atms.security.JwtUtil;
import
pwc.taxtech.atms.security.LdapAuthenticationProvider
;
import
pwc.taxtech.atms.security.LdapAuthenticationProvider
;
import
pwc.taxtech.atms.service.MenuService
;
import
pwc.taxtech.atms.service.MenuService
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OrganizationService
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -100,7 +99,7 @@ public class UserServiceImpl extends AbstractService {
...
@@ -100,7 +99,7 @@ public class UserServiceImpl extends AbstractService {
@Autowired
@Autowired
private
OperationLogService
operationLogService
;
private
OperationLogService
operationLogService
;
@Autowired
@Autowired
private
OrganizationService
organizationService
;
private
OrganizationService
Impl
organizationService
;
@Autowired
@Autowired
private
UserRoleServiceImpl
userRoleService
;
private
UserRoleServiceImpl
userRoleService
;
...
...
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