Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-enterprise
Commits
e855bda1
Commit
e855bda1
authored
Apr 22, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动审批
parent
d77de178
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
ProjectController.java
...a/com/gic/operation/web/controller/ProjectController.java
+2
-5
ProjectItemController.java
...m/gic/operation/web/controller/ProjectItemController.java
+3
-4
No files found.
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/ProjectController.java
View file @
e855bda1
package
com
.
gic
.
operation
.
web
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.dto.ProjectDTO
;
import
com.gic.enterprise.qo.PageQO
;
import
com.gic.enterprise.qo.ProjectQO
;
import
com.gic.enterprise.service.ProjectApiService
;
import
com.gic.enterprise.utils.ResultControllerUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -28,14 +25,14 @@ public class ProjectController {
private
ProjectApiService
projectApiService
;
@RequestMapping
(
"/save-project"
)
public
RestResponse
saveOrUpdateProject
(
@Validated
(
ProjectQO
.
SaveValid
.
class
)
ProjectQO
projectQO
)
{
public
RestResponse
saveOrUpdateProject
(
ProjectQO
projectQO
)
{
ProjectDTO
projectDTO
=
EntityUtil
.
changeEntityByJSON
(
ProjectDTO
.
class
,
projectQO
);
ServiceResponse
<
Integer
>
serviceResponse
=
projectApiService
.
saveOrUpdateProject
(
projectDTO
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
@RequestMapping
(
"/del-project"
)
public
RestResponse
delProject
(
@Validated
(
ProjectQO
.
DelValid
.
class
)
ProjectQO
projectQO
)
{
public
RestResponse
delProject
(
ProjectQO
projectQO
)
{
ServiceResponse
<
Integer
>
serviceResponse
=
projectApiService
.
delProject
(
projectQO
.
getProjectId
());
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
...
...
gic-platform-operation-web/src/main/java/com/gic/operation/web/controller/ProjectItemController.java
View file @
e855bda1
...
...
@@ -9,7 +9,6 @@ import com.gic.enterprise.qo.ProjectItemQO;
import
com.gic.enterprise.service.ProjectItemApiService
;
import
com.gic.enterprise.utils.ResultControllerUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -26,20 +25,20 @@ public class ProjectItemController {
private
ProjectItemApiService
projectItemApiService
;
@RequestMapping
(
"/save-project-item"
)
public
RestResponse
saveProjectItem
(
@Validated
({
ProjectItemQO
.
SaveValid
.
class
})
ProjectItemQO
projectItemQO
)
{
public
RestResponse
saveProjectItem
(
ProjectItemQO
projectItemQO
)
{
ProjectItemDTO
projectItemDTO
=
EntityUtil
.
changeEntityByJSON
(
ProjectItemDTO
.
class
,
projectItemQO
);
ServiceResponse
<
Integer
>
serviceResponse
=
projectItemApiService
.
saveOrUpdateProjectItem
(
projectItemDTO
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
@RequestMapping
(
"/del-project-item"
)
public
RestResponse
delProjectItem
(
@Validated
({
ProjectItemQO
.
DelValid
.
class
})
ProjectItemQO
projectItemQO
)
{
public
RestResponse
delProjectItem
(
ProjectItemQO
projectItemQO
)
{
ServiceResponse
<
Integer
>
serviceResponse
=
projectItemApiService
.
delProjectItem
(
projectItemQO
.
getProjectItemId
());
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
@RequestMapping
(
"/list-project-item"
)
public
RestResponse
listProjectItem
(
@Validated
({
ProjectItemQO
.
ListValid
.
class
})
ProjectItemQO
projectItemQO
)
{
public
RestResponse
listProjectItem
(
ProjectItemQO
projectItemQO
)
{
ServiceResponse
<
Page
<
ProjectItemDTO
>>
serviceResponse
=
projectItemApiService
.
listProjectItem
(
projectItemQO
);
return
ResultControllerUtils
.
commonResult
(
serviceResponse
);
}
...
...
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