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
be88207d
Commit
be88207d
authored
May 11, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改其他类型设备导入bug
parent
20a8832b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
HouseholdPvDeviceServiceImpl.java
.../jxiop/biz/service/impl/HouseholdPvDeviceServiceImpl.java
+7
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HouseholdPvDeviceServiceImpl.java
View file @
be88207d
...
...
@@ -76,8 +76,11 @@ public class HouseholdPvDeviceServiceImpl
this
.
baseMapper
.
insertAndUpdate
(
dataList
);
LambdaQueryWrapper
<
HouseholdPvDevice
>
lambda
=
new
QueryWrapper
<
HouseholdPvDevice
>().
lambda
();
lambda
.
eq
(
HouseholdPvDevice:
:
getType
,
EquipType
.
OTHER
.
getName
());
HouseholdPvDevice
householdPvDevice
=
new
HouseholdPvDevice
();
householdPvDevice
.
setName
(
"其他"
);
baseMapper
.
update
(
householdPvDevice
,
lambda
);
lambda
.
eq
(
HouseholdPvDevice:
:
getHouseholdPvId
,
householdPvId
);
List
<
HouseholdPvDevice
>
householdPvDevices
=
baseMapper
.
selectList
(
lambda
);
householdPvDevices
.
forEach
(
item
->{
item
.
setName
(
EquipType
.
OTHER
.
getName
());
});
this
.
updateBatchById
(
householdPvDevices
);
}
}
\ No newline at end of file
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