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
2c0845dd
Commit
2c0845dd
authored
Jul 01, 2019
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed org -- frank
parent
995a3328
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-0
OrganizationStructureController.java
...tech/atms/controller/OrganizationStructureController.java
+57
-0
OrganizationServiceImpl.java
...wc/taxtech/atms/service/impl/OrganizationServiceImpl.java
+0
-0
OrganizationStructureServiceImpl.java
...h/atms/service/impl/OrganizationStructureServiceImpl.java
+0
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/OrganizationStructureController.java
0 → 100644
View file @
2c0845dd
package
pwc
.
taxtech
.
atms
.
controller
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
pwc.taxtech.atms.dto.ApiResultDto
;
import
pwc.taxtech.atms.dto.IdModel
;
import
pwc.taxtech.atms.dto.OrganizationStructureDto
;
import
pwc.taxtech.atms.dto.OrganizationStructureInputDto
;
import
pwc.taxtech.atms.service.impl.OrganizationStructureServiceImpl
;
import
java.util.List
;
@RestController
@RequestMapping
(
"/api/v1/organizationstructure"
)
public
class
OrganizationStructureController
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
OrganizationStructureController
.
class
);
@Autowired
private
OrganizationStructureServiceImpl
organizationStructureService
;
// @ApiOperation(value = "主数据机构层级查询")
@RequestMapping
(
value
=
"/getlist"
,
method
=
RequestMethod
.
GET
)
public
@ResponseBody
List
<
OrganizationStructureDto
>
getOrganizationStructures
()
{
logger
.
debug
(
"OrganizationStructureController /getlist"
);
return
organizationStructureService
.
getOrganizationStructures
();
}
// @ApiOperation(value = "主数据机构层级增加")
// @ApiImplicitParam(name = "organizationStructureDtoList", value = "organizationStructureDto List", required = true, dataType = "List<OrganizationStructureDto>")
@RequestMapping
(
value
=
"/add"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
addOrganizationStructures
(
@RequestBody
List
<
OrganizationStructureInputDto
>
organizationStructureDtoList
)
{
logger
.
debug
(
"OrganizationStructureController /add"
);
return
organizationStructureService
.
addOrganizationStructures
(
organizationStructureDtoList
);
}
// @ApiOperation(value = "主数据机构层级删除")
// @ApiImplicitParam(name = "idModel", value = "idModel", required = true, dataType = "IdModel")
@RequestMapping
(
value
=
"/delete"
,
method
=
RequestMethod
.
POST
)
public
@ResponseBody
Integer
deleteOrganizationStructure
(
@RequestBody
IdModel
idModel
)
{
logger
.
debug
(
"OrganizationStructureController /delete"
);
return
organizationStructureService
.
deleteOrganizationStructure
(
idModel
);
}
// @ApiOperation(value = "主数据机构层级修改")
// @ApiImplicitParam(name = "organizationStructureDtoList", value = "organizationStructureDto List", required = true, dataType = "List<OrganizationStructureDto>")
@RequestMapping
(
method
=
RequestMethod
.
PUT
)
public
@ResponseBody
ApiResultDto
updateOrganizationStructure
(
@RequestBody
List
<
OrganizationStructureInputDto
>
organizationStructureDtoList
)
{
logger
.
debug
(
"OrganizationStructureController update"
);
return
organizationStructureService
.
updateOrganizationStructures
(
organizationStructureDtoList
);
}
}
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OrganizationServiceImpl.java
View file @
2c0845dd
This diff is collapsed.
Click to expand it.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OrganizationStructureServiceImpl.java
0 → 100644
View file @
2c0845dd
This diff is collapsed.
Click to expand it.
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