Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
59fe1185
Commit
59fe1185
authored
Mar 16, 2023
by
zhangyingbin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改监检部门、监检员选择接口
parent
2cab9ce5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
ProjectController.java
...mos/boot/module/ugp/biz/controller/ProjectController.java
+15
-5
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/ProjectController.java
View file @
59fe1185
...
...
@@ -22,7 +22,7 @@ import io.swagger.annotations.ApiModel;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
io.swagger.models.Model
;
import
org.
springframework.bean
s.BeanUtils
;
import
org.
apache.commons.beanutil
s.BeanUtils
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -31,6 +31,7 @@ import io.swagger.annotations.Api;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.lang.reflect.InvocationTargetException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.*
;
...
...
@@ -249,7 +250,8 @@ public class ProjectController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"Post"
,
value
=
"项目审核"
,
notes
=
"项目审核"
)
@PostMapping
(
value
=
"/processProject"
)
public
ResponseModel
<
String
>
processProject
(
@RequestParam
(
"sequenceNbr"
)
String
sequenceNbr
,
String
option
,
@RequestBody
JSONObject
json
){
public
ResponseModel
<
String
>
processProject
(
@RequestParam
(
"sequenceNbr"
)
String
sequenceNbr
,
String
option
,
@RequestBody
JSONObject
j
){
JSONObject
json
=
j
.
getJSONObject
(
"fileInfo"
);
Project
project
=
projectServiceImpl
.
getById
(
sequenceNbr
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
project
));
jsonObject
.
put
(
XJConstant
.
PROCESS_PROJECT_STATE
,
"审核通过"
);
...
...
@@ -262,7 +264,6 @@ public class ProjectController extends BaseController {
jsonObject
.
put
(
XJConstant
.
INS_DEP
,
map
.
get
(
"name"
));
jsonObject
.
put
(
XJConstant
.
PROCESS_PROJECT_STATE
,
"监检员待审核"
);
}
else
if
(!
ValidationUtil
.
isEmpty
(
insDepId
))
{
Map
map
=
orgServiceImpl
.
getdetialInfo
(
insDepId
);
jsonObject
.
put
(
XJConstant
.
INS_DEPID
,
map
.
get
(
"sequenceNbr"
));
jsonObject
.
put
(
XJConstant
.
INS_DEP
,
map
.
get
(
"name"
));
...
...
@@ -335,8 +336,17 @@ public class ProjectController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"通过sequenceNbr查询项目详情"
,
notes
=
"通过sequenceNbr查询项目详情"
)
@GetMapping
(
value
=
"/getDetail"
)
public
ResponseModel
<
ProjectDto
>
getDetail
(
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
projectServiceImpl
.
getDetail
(
sequenceNbr
));
public
ResponseModel
<
JSONObject
>
getDetail
(
Long
sequenceNbr
){
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
projectServiceImpl
.
getInformationDetail
(
sequenceNbr
)));
try
{
jsonObject
.
putAll
(
BeanUtils
.
describe
(
projectServiceImpl
.
getDetail
(
sequenceNbr
)));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
JSONObject
jo
=
new
JSONObject
();
jo
.
put
(
"projectInfo"
,
projectServiceImpl
.
selectById
(
sequenceNbr
));
jo
.
put
(
"fileInfo"
,
jsonObject
);
return
ResponseHelper
.
buildResponse
(
jo
);
}
...
...
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