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
d8ac863a
Commit
d8ac863a
authored
Nov 30, 2022
by
3533457856@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化检验责任单位及监检状态 接口
parent
2ac69390
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
WeldController.java
...n/amos/boot/module/ugp/biz/controller/WeldController.java
+4
-2
WeldServiceImpl.java
...mos/boot/module/ugp/biz/service/impl/WeldServiceImpl.java
+2
-5
No files found.
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/controller/WeldController.java
View file @
d8ac863a
...
@@ -181,7 +181,6 @@ public class WeldController extends BaseController {
...
@@ -181,7 +181,6 @@ public class WeldController extends BaseController {
return
ResponseHelper
.
buildResponse
(
weldServiceImpl
.
lookCode
(
projectId
));
return
ResponseHelper
.
buildResponse
(
weldServiceImpl
.
lookCode
(
projectId
));
}
}
/**
/**
* 通过项目id获取焊口智能监验信息
* 通过项目id获取焊口智能监验信息
...
@@ -194,8 +193,11 @@ public class WeldController extends BaseController {
...
@@ -194,8 +193,11 @@ public class WeldController extends BaseController {
return
ResponseHelper
.
buildResponse
(
weldServiceImpl
.
selectStatus
(
projectId
,
code
));
return
ResponseHelper
.
buildResponse
(
weldServiceImpl
.
selectStatus
(
projectId
,
code
));
}
}
/**
* 检验责任单位及监检状态
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"
焊口智能监验信息"
,
notes
=
"焊口智能监验信息
"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"
检验责任单位"
,
notes
=
"检验责任单位
"
)
@GetMapping
(
value
=
"/selectDept"
)
@GetMapping
(
value
=
"/selectDept"
)
public
ResponseModel
<
WeldDto
>
selectDept
(
String
projectId
){
public
ResponseModel
<
WeldDto
>
selectDept
(
String
projectId
){
return
ResponseHelper
.
buildResponse
(
weldServiceImpl
.
selectDept
(
projectId
));
return
ResponseHelper
.
buildResponse
(
weldServiceImpl
.
selectDept
(
projectId
));
...
...
amos-boot-system-ugp/amos-boot-module-ugp-biz/src/main/java/com/yeejoin/amos/boot/module/ugp/biz/service/impl/WeldServiceImpl.java
View file @
d8ac863a
...
@@ -296,7 +296,6 @@ class WeldServiceImpl extends BaseService<WeldDto, Weld, WeldMapper> implements
...
@@ -296,7 +296,6 @@ class WeldServiceImpl extends BaseService<WeldDto, Weld, WeldMapper> implements
WeldDto
weldDtos
=
new
WeldDto
();
WeldDto
weldDtos
=
new
WeldDto
();
if
(!
ValidationUtil
.
isEmpty
(
project
.
getInstallRegionCode
())){
if
(!
ValidationUtil
.
isEmpty
(
project
.
getInstallRegionCode
())){
SuperviseRule
superviseRule
=
superviseRuleMapper
.
selectOne
(
wrapper1
.
eq
(
SuperviseRule:
:
getAdminRegionCode
,
project
.
getInstallRegionCode
()));
SuperviseRule
superviseRule
=
superviseRuleMapper
.
selectOne
(
wrapper1
.
eq
(
SuperviseRule:
:
getAdminRegionCode
,
project
.
getInstallRegionCode
()));
// LambdaQueryWrapper<OrgUsr> orgUsrLambdaQueryWrapper = new LambdaQueryWrapper<>();
OrgUsr
orgUsr
=
orgService
.
getOrgUsrById
(
String
.
valueOf
(
superviseRule
.
getSuperviseDeptId
()));
OrgUsr
orgUsr
=
orgService
.
getOrgUsrById
(
String
.
valueOf
(
superviseRule
.
getSuperviseDeptId
()));
weldDtos
.
setSuperviseDept
(
orgUsr
.
getBizOrgName
());
weldDtos
.
setSuperviseDept
(
orgUsr
.
getBizOrgName
());
}
}
...
@@ -306,14 +305,12 @@ class WeldServiceImpl extends BaseService<WeldDto, Weld, WeldMapper> implements
...
@@ -306,14 +305,12 @@ class WeldServiceImpl extends BaseService<WeldDto, Weld, WeldMapper> implements
.
orderByDesc
(
ProjectInitiation:
:
getRecDate
);
.
orderByDesc
(
ProjectInitiation:
:
getRecDate
);
List
<
ProjectInitiation
>
projectInitiations
=
projectInitiationService
.
list
(
wrapper2
);
List
<
ProjectInitiation
>
projectInitiations
=
projectInitiationService
.
list
(
wrapper2
);
for
(
ProjectInitiation
projectInitiation:
projectInitiations
){
for
(
ProjectInitiation
projectInitiation:
projectInitiations
){
String
context
=
projectInitiation
.
getContext
();
JSONObject
jsonObject
=
(
JSONObject
)
JSONObject
.
parse
(
context
);
if
(
ProjectInitiationEnum
.
监检员分配
.
getName
().
equals
(
projectInitiation
.
getTaskName
())){
if
(
ProjectInitiationEnum
.
监检员分配
.
getName
().
equals
(
projectInitiation
.
getTaskName
())){
String
context
=
projectInitiation
.
getContext
();
JSONObject
jsonObject
=
(
JSONObject
)
JSONObject
.
parse
(
context
);
weldDtos
.
setInsPerson
(
jsonObject
.
getString
(
"insPerson"
));
weldDtos
.
setInsPerson
(
jsonObject
.
getString
(
"insPerson"
));
}
}
if
(
ProjectInitiationEnum
.
监检科室分配
.
getName
().
equals
(
projectInitiation
.
getTaskName
())){
if
(
ProjectInitiationEnum
.
监检科室分配
.
getName
().
equals
(
projectInitiation
.
getTaskName
())){
String
contexts
=
projectInitiation
.
getContext
();
JSONObject
jsonObject
=
(
JSONObject
)
JSONObject
.
parse
(
contexts
);
weldDtos
.
setInsDep
(
jsonObject
.
getString
(
"insDep"
));
weldDtos
.
setInsDep
(
jsonObject
.
getString
(
"insDep"
));
}
}
}
}
...
...
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