Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jyzb_platformV2
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
赵剑炜
jyzb_platformV2
Commits
a238e903
Commit
a238e903
authored
Nov 24, 2023
by
赵剑炜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改单警柜接口
parent
9b9c84f6
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
21 行增加
和
7 行删除
+21
-7
CabinetBoxServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/CabinetBoxServiceImpl.java
+1
-1
CabinetServiceImpl.java
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/CabinetServiceImpl.java
+20
-6
没有找到文件。
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/CabinetBoxServiceImpl.java
View file @
a238e903
...
...
@@ -66,7 +66,7 @@ public class CabinetBoxServiceImpl extends ServiceImpl<CabinetBoxMapper, Cabinet
box
.
setCabinetId
(
cabinet
.
getId
());
box
.
setPower
(
boxReq
.
getPower
());
box
.
setEquipmentConfig
(
boxReq
.
getEquipmentConfig
());
box
.
setBoxType
(
boxReq
.
getBoxType
(
));
box
.
setBoxType
(
Integer
.
valueOf
(
boxReq
.
getBoxType
()
));
box
.
setState
(
0
);
box
.
setBoxName
(
boxReq
.
getBoxName
());
box
.
setNum
(
boxReq
.
getNum
());
...
...
jyzb-biz/src/main/java/com/junmp/jyzb/service/impl/CabinetServiceImpl.java
View file @
a238e903
...
...
@@ -183,9 +183,8 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
// 判断组织机构是否存在
PubOrg
pubOrg
=
pubOrgService
.
PubOrgExist
(
req
.
getOrgId
());
List
<
CabinetDto
>
cabinetList
=
new
ArrayList
<>();
List
<
Cabinet
>
list
=
cabinetMapper
.
getAllCabinetsWithSingleCabinet
(
String
.
valueOf
(
req
.
getOrgId
()),
req
.
getContainType
());
List
<
Cabinet
>
list
=
cabinetMapper
.
getAllCabinetsWithSingleCabinet
(
String
.
valueOf
(
req
.
getOrgId
()),
req
.
getContainType
());
if
(
list
.
size
()
==
0
)
{
return
new
ArrayList
<>();
...
...
@@ -194,11 +193,26 @@ public class CabinetServiceImpl extends ServiceImpl<CabinetMapper, Cabinet> impl
for
(
Cabinet
cabinet
:
list
)
{
CabinetDto
cabinetDto
=
new
CabinetDto
();
BeanPlusUtil
.
copyProperties
(
cabinet
,
cabinetDto
);
cabinetDto
.
setOrgName
(
pubOrg
.
getOrgName
());
cabinetList
.
add
(
cabinetDto
);
List
<
CabinetBox
>
list1
=
cabinetBoxService
.
list
(
new
LambdaQueryWrapper
<
CabinetBox
>()
.
eq
(
CabinetBox:
:
getCabinetId
,
cabinet
.
getId
()));
List
<
CabinetBoxDto
>
cabinetBoxList
=
new
ArrayList
<>();
for
(
CabinetBox
cabinetBox
:
list1
)
{
CabinetBoxDto
cabinetBoxDto
=
new
CabinetBoxDto
();
BeanPlusUtil
.
copyProperties
(
cabinetBox
,
cabinetBoxDto
);
// 查询箱门绑定的警员id和姓名
List
<
Policeman
>
policeList
=
policemanService
.
list
(
new
LambdaQueryWrapper
<
Policeman
>()
.
eq
(
Policeman:
:
getCabinetBoxId
,
cabinetBox
.
getId
()));
if
(
policeList
.
size
()
!=
0
)
{
Policeman
policeman
=
policeList
.
get
(
0
);
cabinetBoxDto
.
setPoliceId
(
policeman
.
getId
());
cabinetBoxDto
.
setPoliceName
(
policeman
.
getName
());
}
cabinetBoxDto
.
setNum
(
cabinetBox
.
getNum
());
cabinetBoxList
.
add
(
cabinetBoxDto
);
}
cabinetDto
.
setCabinetBoxList
(
cabinetBoxList
);
cabinetList
.
add
(
cabinetDto
);
// 添加到cabinetList中
}
return
cabinetList
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论