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
a7450979
Commit
a7450979
authored
Oct 11, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
水源还原
parent
9d67bc0e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
WaterResourceDto.java
...oin/amos/boot/module/common/api/dto/WaterResourceDto.java
+1
-1
WaterResourceController.java
...module/common/biz/controller/WaterResourceController.java
+4
-4
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dto/WaterResourceDto.java
View file @
a7450979
...
@@ -382,7 +382,7 @@ public class WaterResourceDto extends BaseDto {
...
@@ -382,7 +382,7 @@ public class WaterResourceDto extends BaseDto {
@ExcelIgnore
@ExcelIgnore
@ApiModelProperty
(
"水池液位显示装置id"
)
@ApiModelProperty
(
"水池液位显示装置id"
)
private
List
<
String
>
levelDeviceId
;
private
String
levelDeviceId
;
@ApiModelProperty
(
"水池液位显示装置名称"
)
@ApiModelProperty
(
"水池液位显示装置名称"
)
@ExcelProperty
(
value
=
"水池液位显示装置"
,
index
=
45
)
@ExcelProperty
(
value
=
"水池液位显示装置"
,
index
=
45
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/WaterResourceController.java
View file @
a7450979
...
@@ -143,8 +143,8 @@ public class WaterResourceController extends BaseController {
...
@@ -143,8 +143,8 @@ public class WaterResourceController extends BaseController {
model
.
setIsIot
(
true
);
model
.
setIsIot
(
true
);
waterResourceServiceImpl
.
createWithModel
(
model
);
waterResourceServiceImpl
.
createWithModel
(
model
);
WaterResourcePoolDto
waterResourcePoolDto
=
new
WaterResourcePoolDto
();
WaterResourcePoolDto
waterResourcePoolDto
=
new
WaterResourcePoolDto
();
BeanUtils
.
copyProperties
(
model
,
waterResourcePoolDto
,
"levelDeviceId"
);
BeanUtils
.
copyProperties
(
model
,
waterResourcePoolDto
);
waterResourcePoolDto
.
setLevelDeviceId
(
String
.
join
(
","
,
model
.
getLevelDeviceId
()));
//
waterResourcePoolDto.setLevelDeviceId(String.join(",", model.getLevelDeviceId()));
waterResourcePoolDto
.
setSequenceNbr
(
null
);
waterResourcePoolDto
.
setSequenceNbr
(
null
);
waterResourcePoolDto
.
setResourceId
(
model
.
getSequenceNbr
());
waterResourcePoolDto
.
setResourceId
(
model
.
getSequenceNbr
());
waterResourcePoolService
.
createWithModel
(
waterResourcePoolDto
);
waterResourcePoolService
.
createWithModel
(
waterResourcePoolDto
);
...
@@ -412,8 +412,8 @@ public class WaterResourceController extends BaseController {
...
@@ -412,8 +412,8 @@ public class WaterResourceController extends BaseController {
WaterResourcePool
waterResourcePool
=
WaterResourcePool
waterResourcePool
=
waterResourcePoolService
.
getOne
(
new
QueryWrapper
<
WaterResourcePool
>().
eq
(
"resource_id"
,
waterResourcePoolService
.
getOne
(
new
QueryWrapper
<
WaterResourcePool
>().
eq
(
"resource_id"
,
sequenceNbr
));
sequenceNbr
));
BeanUtils
.
copyProperties
(
waterResourcePool
,
waterResourceDto
,
"levelDeviceId"
);
BeanUtils
.
copyProperties
(
waterResourcePool
,
waterResourceDto
);
waterResourceDto
.
setLevelDeviceId
(
Arrays
.
asList
(
waterResourcePool
.
getLevelDeviceId
().
split
(
","
)));
//
waterResourceDto.setLevelDeviceId(Arrays.asList(waterResourcePool.getLevelDeviceId().split(",")));
break
;
break
;
default
:
default
:
break
;
break
;
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
View file @
a7450979
...
@@ -1340,7 +1340,7 @@ public class ExcelServiceImpl {
...
@@ -1340,7 +1340,7 @@ public class ExcelServiceImpl {
if
(
item
.
getLevelDeviceName
()
!=
null
)
{
if
(
item
.
getLevelDeviceName
()
!=
null
)
{
String
[]
type
=
item
.
getLevelDeviceName
().
split
(
"@"
);
String
[]
type
=
item
.
getLevelDeviceName
().
split
(
"@"
);
item
.
setLevelDeviceName
(
type
[
0
]);
item
.
setLevelDeviceName
(
type
[
0
]);
item
.
setLevelDeviceId
(
Arrays
.
asList
(
type
[
1
])
);
item
.
setLevelDeviceId
(
type
[
1
]
);
}
}
// BUG 2935 优化项 分类从93060000 取得字典数据 by kongfm 2021-09-17
// BUG 2935 优化项 分类从93060000 取得字典数据 by kongfm 2021-09-17
if
(
item
.
getEquipCategoryName
()
!=
null
)
{
if
(
item
.
getEquipCategoryName
()
!=
null
)
{
...
...
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