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
2d4ffbb9
Commit
2d4ffbb9
authored
Oct 09, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DEL] delete cell template service interface
parent
b5a17c2b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
26 deletions
+21
-26
CellTemplateController.java
...a/pwc/taxtech/atms/controller/CellTemplateController.java
+10
-5
CellTemplateService.java
...in/java/pwc/taxtech/atms/service/CellTemplateService.java
+0
-14
CellTemplateServiceImpl.java
...wc/taxtech/atms/service/impl/CellTemplateServiceImpl.java
+11
-7
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/CellTemplateController.java
View file @
2d4ffbb9
...
@@ -4,10 +4,15 @@ import org.slf4j.Logger;
...
@@ -4,10 +4,15 @@ 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.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
pwc.taxtech.atms.dto.CellTemplateConfigDto
;
import
pwc.taxtech.atms.dto.CellTemplateConfigDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.service.
CellTemplateService
;
import
pwc.taxtech.atms.service.
impl.CellTemplateServiceImpl
;
import
java.util.Collections
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.List
;
...
@@ -17,7 +22,7 @@ import java.util.List;
...
@@ -17,7 +22,7 @@ import java.util.List;
public
class
CellTemplateController
extends
BaseController
{
public
class
CellTemplateController
extends
BaseController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AccountController
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AccountController
.
class
);
@Autowired
@Autowired
CellTemplateService
cellTemplateService
;
CellTemplateService
Impl
cellTemplateService
;
@RequestMapping
(
value
=
"configList/{templateId}"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
@RequestMapping
(
value
=
"configList/{templateId}"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
@ResponseBody
public
@ResponseBody
...
@@ -53,9 +58,9 @@ public class CellTemplateController extends BaseController {
...
@@ -53,9 +58,9 @@ public class CellTemplateController extends BaseController {
return
new
OperationResultDto
<>();
return
new
OperationResultDto
<>();
}
}
@RequestMapping
(
value
=
"config"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
@RequestMapping
(
value
=
"config"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
@ResponseBody
public
@ResponseBody
OperationResultDto
postConfig
(
@RequestBody
CellTemplateConfigDto
cellTemplateConfigDto
){
OperationResultDto
postConfig
(
@RequestBody
CellTemplateConfigDto
cellTemplateConfigDto
)
{
return
cellTemplateService
.
saveOrEdit
(
cellTemplateConfigDto
);
return
cellTemplateService
.
saveOrEdit
(
cellTemplateConfigDto
);
}
}
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/CellTemplateService.java
deleted
100644 → 0
View file @
b5a17c2b
package
pwc
.
taxtech
.
atms
.
service
;
import
pwc.taxtech.atms.dto.CellTemplateConfigDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
java.util.List
;
public
interface
CellTemplateService
{
OperationResultDto
<
List
<
CellTemplateConfigDto
>>
getCellConfigList
(
Long
templateId
);
OperationResultDto
<
CellTemplateConfigDto
>
getCellConfig
(
Long
cellTemplateId
);
OperationResultDto
saveOrEdit
(
CellTemplateConfigDto
cellTemplateConfig
);
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/CellTemplateServiceImpl.java
View file @
2d4ffbb9
...
@@ -9,8 +9,15 @@ import pwc.taxtech.atms.common.CommonUtils;
...
@@ -9,8 +9,15 @@ import pwc.taxtech.atms.common.CommonUtils;
import
pwc.taxtech.atms.constant.enums.CellDataSourceType
;
import
pwc.taxtech.atms.constant.enums.CellDataSourceType
;
import
pwc.taxtech.atms.dto.CellTemplateConfigDto
;
import
pwc.taxtech.atms.dto.CellTemplateConfigDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.dto.OperationResultDto
;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.entity.CellTemplate
;
import
pwc.taxtech.atms.service.CellTemplateService
;
import
pwc.taxtech.atms.entity.CellTemplateConfig
;
import
pwc.taxtech.atms.entity.CellTemplateConfigExample
;
import
pwc.taxtech.atms.entity.CellTemplateExample
;
import
pwc.taxtech.atms.entity.FormulaConfig
;
import
pwc.taxtech.atms.entity.FormulaConfigExample
;
import
pwc.taxtech.atms.entity.KeyValueConfig
;
import
pwc.taxtech.atms.entity.KeyValueConfigExample
;
import
pwc.taxtech.atms.entity.KeyValueReference
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Collections
;
...
@@ -19,9 +26,8 @@ import java.util.List;
...
@@ -19,9 +26,8 @@ import java.util.List;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
@Service
@Service
public
class
CellTemplateServiceImpl
extends
AbstractService
implements
CellTemplateService
{
public
class
CellTemplateServiceImpl
extends
AbstractService
{
@Override
public
OperationResultDto
<
List
<
CellTemplateConfigDto
>>
getCellConfigList
(
Long
templateId
)
{
public
OperationResultDto
<
List
<
CellTemplateConfigDto
>>
getCellConfigList
(
Long
templateId
)
{
OperationResultDto
<
List
<
CellTemplateConfigDto
>>
result
=
new
OperationResultDto
<>();
OperationResultDto
<
List
<
CellTemplateConfigDto
>>
result
=
new
OperationResultDto
<>();
CellTemplateExample
example
=
new
CellTemplateExample
();
CellTemplateExample
example
=
new
CellTemplateExample
();
...
@@ -52,7 +58,6 @@ public class CellTemplateServiceImpl extends AbstractService implements CellTemp
...
@@ -52,7 +58,6 @@ public class CellTemplateServiceImpl extends AbstractService implements CellTemp
return
result
;
return
result
;
}
}
@Override
public
OperationResultDto
<
CellTemplateConfigDto
>
getCellConfig
(
Long
cellTemplateId
)
{
public
OperationResultDto
<
CellTemplateConfigDto
>
getCellConfig
(
Long
cellTemplateId
)
{
OperationResultDto
<
CellTemplateConfigDto
>
result
=
new
OperationResultDto
<>();
OperationResultDto
<
CellTemplateConfigDto
>
result
=
new
OperationResultDto
<>();
CellTemplate
config
=
cellTemplateMapper
.
selectByPrimaryKey
(
cellTemplateId
);
CellTemplate
config
=
cellTemplateMapper
.
selectByPrimaryKey
(
cellTemplateId
);
...
@@ -76,7 +81,6 @@ public class CellTemplateServiceImpl extends AbstractService implements CellTemp
...
@@ -76,7 +81,6 @@ public class CellTemplateServiceImpl extends AbstractService implements CellTemp
return
result
;
return
result
;
}
}
@Override
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
rollbackFor
=
Exception
.
class
)
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
rollbackFor
=
Exception
.
class
)
public
OperationResultDto
saveOrEdit
(
CellTemplateConfigDto
cellTemplateConfig
)
{
public
OperationResultDto
saveOrEdit
(
CellTemplateConfigDto
cellTemplateConfig
)
{
OperationResultDto
result
=
new
OperationResultDto
();
OperationResultDto
result
=
new
OperationResultDto
();
...
@@ -241,7 +245,7 @@ public class CellTemplateServiceImpl extends AbstractService implements CellTemp
...
@@ -241,7 +245,7 @@ public class CellTemplateServiceImpl extends AbstractService implements CellTemp
sb
.
append
(
s
).
append
(
","
);
sb
.
append
(
s
).
append
(
","
);
}
}
String
tempStr
=
sb
.
toString
();
String
tempStr
=
sb
.
toString
();
return
StringUtils
.
removeEnd
(
tempStr
,
","
);
return
StringUtils
.
removeEnd
(
tempStr
,
","
);
// return tempStr.substring(0, tempStr.length() - 2);
// return tempStr.substring(0, tempStr.length() - 2);
}
}
...
...
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