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
511367af
Commit
511367af
authored
Sep 18, 2021
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
//BUG 2920 管网压力字段冗余 BUG 2953 导入模板没有设备编码生成
parent
e611801e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
WaterResourceDto.java
...oin/amos/boot/module/common/api/dto/WaterResourceDto.java
+6
-5
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+5
-0
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 @
511367af
...
...
@@ -298,7 +298,8 @@ public class WaterResourceDto extends BaseDto {
@ApiModelProperty
(
value
=
"状态物联编码"
)
private
String
iotStatus
;
@ExcelProperty
(
value
=
"管网压力"
,
index
=
43
)
//BUG 2920 管网压力字段冗余
@ExcelIgnore
@ApiModelProperty
(
value
=
"管网压力物联编码"
)
private
String
iotPipePressure
;
...
...
@@ -310,21 +311,21 @@ public class WaterResourceDto extends BaseDto {
private
Long
equipId
;
@ApiModelProperty
(
"设施定义名称"
)
@ExcelProperty
(
value
=
"设施定义名称"
,
index
=
4
4
)
@ExcelProperty
(
value
=
"设施定义名称"
,
index
=
4
3
)
private
String
equipName
;
@ApiModelProperty
(
"设施分类id"
)
private
Long
equipCategoryId
;
@ApiModelProperty
(
"设施分类名称"
)
@ExcelProperty
(
value
=
"设施分类名称"
,
index
=
4
5
)
@ExcelProperty
(
value
=
"设施分类名称"
,
index
=
4
4
)
private
String
equipCategoryName
;
@ApiModelProperty
(
"设施编码"
)
@ExcelProperty
(
value
=
"设施编码"
,
index
=
4
6
)
@ExcelProperty
(
value
=
"设施编码"
,
index
=
4
5
)
private
String
equipCode
;
@ApiModelProperty
(
"维保周期"
)
@ExcelProperty
(
value
=
"维保周期(月)"
,
index
=
4
7
)
@ExcelProperty
(
value
=
"维保周期(月)"
,
index
=
4
6
)
private
String
maintenancePeriod
;
}
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 @
511367af
...
...
@@ -10,6 +10,7 @@ import com.itextpdf.text.pdf.PdfStructTreeController.returnType;
import
com.yeejoin.amos.boot.biz.common.bo.ReginParams
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.utils.DateUtils
;
import
com.yeejoin.amos.boot.biz.common.utils.QRCodeUtil
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisUtils
;
import
com.yeejoin.amos.boot.module.common.api.dto.*
;
...
...
@@ -617,7 +618,11 @@ public class ExcelServiceImpl {
private
void
excelImportWaterResource
(
MultipartFile
multipartFile
)
throws
Exception
{
List
<
WaterResourceDto
>
excelDtoList
=
ExcelUtil
.
readFirstSheetExcel
(
multipartFile
,
WaterResourceDto
.
class
,
1
);
excelDtoList
.
forEach
(
item
->
{
//BUG 2953 导入模板没有设备编码生成 2021-09-18 陈召开始
item
.
setEquipCode
(
QRCodeUtil
.
generateQRCode
());
//BUG 2953 导入模板没有设备编码生成 2021-09-18 陈召结束
if
(
item
.
getResourceTypeName
()
!=
null
)
{
String
[]
resourceTypeName
=
item
.
getResourceTypeName
().
split
(
"@"
);
item
.
setResourceTypeName
(
resourceTypeName
[
0
]);
...
...
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