Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b3eff83a
authored
Nov 16, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix:划拨组织批量
parent
22aef231
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
server-service/src/main/java/com/makeit/dto/platform/device/PlatDeviceBindOrgDTO.java
server-service/src/main/java/com/makeit/service/platform/device/impl/PlatDeviceServiceImpl.java
server-service/src/main/java/com/makeit/dto/platform/device/PlatDeviceBindOrgDTO.java
View file @
b3eff83a
...
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
import
java.util.List
;
/**
* <p>
...
...
@@ -22,6 +23,9 @@ public class PlatDeviceBindOrgDTO {
@ApiModelProperty
(
value
=
"设备id"
)
@NotBlank
(
message
=
"设备id不能为空"
)
private
String
id
;
@ApiModelProperty
(
value
=
"设备id集合"
)
@NotBlank
(
message
=
"设备id不能为空"
)
private
List
<
String
>
idList
;
@ApiModelProperty
(
value
=
"组织id"
)
@NotBlank
(
message
=
"组织id不能为空"
)
private
String
orgId
;
...
...
server-service/src/main/java/com/makeit/service/platform/device/impl/PlatDeviceServiceImpl.java
View file @
b3eff83a
...
...
@@ -719,6 +719,6 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
public
void
bindOrg
(
PlatDeviceBindOrgDTO
dto
)
{
update
(
new
UpdateWrapper
<
PlatDevice
>().
lambda
()
.
set
(
PlatDevice:
:
getOrgId
,
dto
.
getOrgId
())
.
eq
(
BaseEntity:
:
getId
,
dto
.
getId
()));
.
in
(
BaseEntity:
:
getId
,
dto
.
getIdList
()));
}
}
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