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
150f8f16
Commit
150f8f16
authored
Jan 29, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.冗余检验人员名称给设备同步使用
parent
02d1d60b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
JyjcInspectionResultController.java
...e/jyjc/biz/controller/JyjcInspectionResultController.java
+1
-1
JyjcInspectionResultServiceImpl.java
...yjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
+11
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/controller/JyjcInspectionResultController.java
View file @
150f8f16
...
...
@@ -85,7 +85,7 @@ public class JyjcInspectionResultController extends BaseController {
/**
* 列表全部数据查询
*
*
getJyjcPersonByUnitCode
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/service/impl/JyjcInspectionResultServiceImpl.java
View file @
150f8f16
...
...
@@ -24,6 +24,7 @@ import com.yeejoin.amos.boot.module.jyjc.api.service.IJyjcInspectionResultServic
import
com.yeejoin.amos.boot.module.jyjc.biz.utils.JsonUtils
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.InspectionDetectionInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzBaseEnterpriseInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.entity.TzsUserInfo
;
import
com.yeejoin.amos.boot.module.ymt.api.enums.EquipmentClassifityEnum
;
import
com.yeejoin.amos.boot.module.ymt.api.mapper.*
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -89,6 +90,9 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
@Autowired
TzBaseEnterpriseInfoMapper
tzBaseEnterpriseInfoMapper
;
@Autowired
CommonserviceImpl
commonService
;
/**
* 检验检测单位分页查询
*/
...
...
@@ -267,7 +271,8 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
info
.
setInspectType
(
model
.
getInspectionType
());
info
.
setRecord
(
model
.
getEquipUnicode
());
info
.
setInspectDate
(
model
.
getInspectionDate
());
info
.
setInspectStaff
(
model
.
getInspector
());
info
.
setInspectStaff
(
getInspectUserName
(
model
));
info
.
setInspectStaffCode
(
model
.
getInspector
());
info
.
setInspectReport
(
jybgFile
.
getAttachmentUrl
());
info
.
setInspectConclusion
(
model
.
getInspectionConclusion
());
info
.
setProblemRemark
(
model
.
getNonConformance
());
...
...
@@ -278,6 +283,11 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
info
.
setRecDate
(
new
Date
());
}
private
String
getInspectUserName
(
JyjcInspectionResultModel
model
)
{
List
<
TzsUserInfo
>
userInfos
=
commonService
.
getUserInfosByUnitCode
(
model
.
getInspectionUnitCode
());
return
userInfos
.
stream
().
filter
(
u
->
model
.
getInspector
().
contains
(
u
.
getSequenceNbr
()
+
""
)).
map
(
TzsUserInfo:
:
getName
).
collect
(
Collectors
.
joining
(
","
));
}
/**
* 列表查询 示例
*/
...
...
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