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
06845d50
Commit
06845d50
authored
Oct 09, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEL] delete statistic attribute service interface
parent
50f27a31
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
43 deletions
+17
-43
StatisticAttributeController.java
...taxtech/atms/controller/StatisticAttributeController.java
+11
-9
StatisticAttributeService.java
...a/pwc/taxtech/atms/service/StatisticAttributeService.java
+0
-21
DimensionServiceImpl.java
...a/pwc/taxtech/atms/service/impl/DimensionServiceImpl.java
+4
-5
OrganizationServiceImpl.java
...wc/taxtech/atms/service/impl/OrganizationServiceImpl.java
+1
-2
StatisticAttributeServiceImpl.java
...tech/atms/service/impl/StatisticAttributeServiceImpl.java
+1
-6
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/StatisticAttributeController.java
View file @
06845d50
package
pwc
.
taxtech
.
atms
.
controller
;
import
java.util.List
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -9,30 +8,32 @@ import org.springframework.web.bind.annotation.RequestMethod;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
io.swagger.annotations.ApiOperation
;
import
pwc.taxtech.atms.dpo.StatisticAttributeDisplayDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.StatisticAttributeDto
;
import
pwc.taxtech.atms.service.StatisticAttributeService
;
import
pwc.taxtech.atms.service.impl.StatisticAttributeServiceImpl
;
import
java.util.List
;
@RestController
@RequestMapping
(
"/api/v1/statisticAttribute/"
)
public
class
StatisticAttributeController
{
@Autowired
private
StatisticAttributeService
statisticAttributeService
;
private
StatisticAttributeService
Impl
statisticAttributeService
;
@ApiOperation
(
value
=
"显示自定义显示字段"
)
@RequestMapping
(
value
=
"getByParentDimensionID"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
StatisticAttributeDisplayDto
>
getDimensionStatics
(
public
@ResponseBody
List
<
StatisticAttributeDisplayDto
>
getDimensionStatics
(
@RequestParam
(
"parentDimensionID"
)
String
parentDimensionId
)
{
return
statisticAttributeService
.
getStatisticAttributeListByDimensionId
(
parentDimensionId
,
null
);
}
@ApiOperation
(
value
=
"自定义显示字段下拉框"
)
@RequestMapping
(
value
=
"get"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
StatisticAttributeDto
>
getStatisticAttributeList
(
public
@ResponseBody
List
<
StatisticAttributeDto
>
getStatisticAttributeList
(
@RequestParam
(
"dictionaryCode"
)
String
dictionaryCode
)
{
return
statisticAttributeService
.
getStatisticAttributeList
(
dictionaryCode
);
}
...
...
@@ -47,7 +48,8 @@ public class StatisticAttributeController {
@ApiOperation
(
value
=
"机构管理/卡片/机构/点击自定义显示内容按钮"
)
@RequestMapping
(
value
=
"getOrgSubChildrenStatAttributeList"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
StatisticAttributeDisplayDto
>
getOrgSubChildrenStatAttributeList
(
public
@ResponseBody
List
<
StatisticAttributeDisplayDto
>
getOrgSubChildrenStatAttributeList
(
@RequestParam
(
"parentDimensionId"
)
String
parentDimensionId
)
{
return
statisticAttributeService
.
getOrgSubChildrenStatAttributeList
(
parentDimensionId
);
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/StatisticAttributeService.java
deleted
100644 → 0
View file @
50f27a31
package
pwc
.
taxtech
.
atms
.
service
;
import
java.util.List
;
import
pwc.taxtech.atms.dpo.StatisticAttributeDisplayDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.StatisticAttributeDto
;
public
interface
StatisticAttributeService
{
List
<
StatisticAttributeDisplayDto
>
getStatisticAttributeListByDimensionId
(
String
parentDimensionId
,
List
<
StatisticAttributeDisplayDto
>
rawAttrList
);
@SuppressWarnings
(
"rawtypes"
)
OperationResultDto
updateStatisticAttribute
(
List
<
StatisticAttributeDisplayDto
>
attributeList
);
List
<
StatisticAttributeDto
>
getStatisticAttributeList
(
String
dictionaryCode
);
List
<
StatisticAttributeDisplayDto
>
getOrgSubChildrenStatAttributeList
(
String
parentDimensionId
);
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DimensionServiceImpl.java
View file @
06845d50
...
...
@@ -29,7 +29,6 @@ import pwc.taxtech.atms.dto.navtree.DevTreeDto;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.service.BusinessUnitService
;
import
pwc.taxtech.atms.service.DimensionService
;
import
pwc.taxtech.atms.service.StatisticAttributeService
;
import
java.util.ArrayList
;
import
java.util.Comparator
;
...
...
@@ -52,7 +51,7 @@ public class DimensionServiceImpl extends AbstractService implements DimensionSe
@Autowired
private
BusinessUnitService
businessUnitService
;
@Autowired
private
StatisticAttributeService
statisticAttributeService
;
private
StatisticAttributeService
Impl
statisticAttributeService
;
@Override
public
List
<
DimensionDto
>
getDimensionStatics
()
{
...
...
@@ -164,7 +163,7 @@ public class DimensionServiceImpl extends AbstractService implements DimensionSe
dimensionDto
.
setDimensionType
(
dimensionTypeEnum
.
value
());
}
}
return
resultList
.
stream
().
filter
(
x
->!
Strings
.
equals
(
x
.
getId
(),
DimensionConstant
.
OrgSubChildrenId
)).
collect
(
Collectors
.
toList
());
return
resultList
.
stream
().
filter
(
x
->
!
Strings
.
equals
(
x
.
getId
(),
DimensionConstant
.
OrgSubChildrenId
)).
collect
(
Collectors
.
toList
());
}
private
List
<
DimensionValue
>
findDimensionValueByDimensionIdAndIsActiveTrue
(
String
dimensionId
)
{
...
...
@@ -393,7 +392,7 @@ public class DimensionServiceImpl extends AbstractService implements DimensionSe
return
list
;
}
@SuppressWarnings
({
"unchecked"
,
"rawtypes"
})
@SuppressWarnings
({
"unchecked"
,
"rawtypes"
})
@Override
public
List
<
DevTreeDto
>
getDevDimensionTreeList
()
{
List
<
DevTreeDto
>
devTreeList
=
new
ArrayList
<>();
...
...
@@ -422,7 +421,7 @@ public class DimensionServiceImpl extends AbstractService implements DimensionSe
}
@Override
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
public
OperationResultDto
addDimension
(
DimensionDto
model
)
{
Assert
.
notNull
(
model
,
"Null model"
);
Assert
.
hasText
(
model
.
getName
(),
"Empty name"
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OrganizationServiceImpl.java
View file @
06845d50
...
...
@@ -61,7 +61,6 @@ import pwc.taxtech.atms.service.DimensionService;
import
pwc.taxtech.atms.service.OperationLogService
;
import
pwc.taxtech.atms.service.OrganizationService
;
import
pwc.taxtech.atms.service.RoleService
;
import
pwc.taxtech.atms.service.StatisticAttributeService
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
...
...
@@ -98,7 +97,7 @@ public class OrganizationServiceImpl implements OrganizationService {
private
IndustryMapper
industryMapper
;
@Autowired
private
StatisticAttributeService
statisticAttributeService
;
private
StatisticAttributeService
Impl
statisticAttributeService
;
@Autowired
private
DimensionService
dimensionService
;
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/StatisticAttributeServiceImpl.java
View file @
06845d50
...
...
@@ -23,7 +23,6 @@ import pwc.taxtech.atms.entity.StatisticAttributeDimensionExample;
import
pwc.taxtech.atms.entity.StatisticAttributeExample
;
import
pwc.taxtech.atms.exception.ApplicationException
;
import
pwc.taxtech.atms.service.DimensionService
;
import
pwc.taxtech.atms.service.StatisticAttributeService
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -40,14 +39,13 @@ import static pwc.taxtech.atms.common.CommonUtils.copyProperties;
/**
*/
@Service
public
class
StatisticAttributeServiceImpl
extends
AbstractService
implements
StatisticAttributeService
{
public
class
StatisticAttributeServiceImpl
extends
AbstractService
{
@Autowired
private
DimensionService
dimensionService
;
@Autowired
private
DictionaryServiceImpl
dictionaryService
;
@Override
public
List
<
StatisticAttributeDisplayDto
>
getStatisticAttributeListByDimensionId
(
String
parentDimensionId
,
List
<
StatisticAttributeDisplayDto
>
rawAttrList
)
{
// parentDimensionId = "c61a5bd6-a996-4952-9869-d053995237e5";
...
...
@@ -115,7 +113,6 @@ public class StatisticAttributeServiceImpl extends AbstractService implements St
return
result
;
}
@Override
@SuppressWarnings
(
"rawtypes"
)
public
OperationResultDto
updateStatisticAttribute
(
List
<
StatisticAttributeDisplayDto
>
modelList
)
{
if
(!
Lang
.
isEmpty
(
modelList
))
{
...
...
@@ -190,7 +187,6 @@ public class StatisticAttributeServiceImpl extends AbstractService implements St
operationLogService
.
addOperationLogList
(
logList
);
}
@Override
public
List
<
StatisticAttributeDto
>
getStatisticAttributeList
(
String
dictionaryCode
)
{
StatisticAttributeExample
example
=
new
StatisticAttributeExample
();
example
.
createCriteria
().
andIsActiveEqualTo
(
true
);
...
...
@@ -213,7 +209,6 @@ public class StatisticAttributeServiceImpl extends AbstractService implements St
return
list
;
}
@Override
public
List
<
StatisticAttributeDisplayDto
>
getOrgSubChildrenStatAttributeList
(
String
parentDimensionId
)
{
List
<
StatisticAttributeDisplayDto
>
query
=
myStatisticAttributeMapper
.
selectByParentDimensionId
(
parentDimensionId
);
...
...
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