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
abcd8f35
Commit
abcd8f35
authored
Apr 21, 2022
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
气瓶详情图片
parent
9f78b0f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
CylinderInfoDto.java
...oin/amos/boot/module/tzs/flc/api/dto/CylinderInfoDto.java
+4
-0
CylinderInfoController.java
...module/tzs/flc/biz/controller/CylinderInfoController.java
+9
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-tzs-api/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/api/dto/CylinderInfoDto.java
View file @
abcd8f35
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tzs
.
flc
.
api
.
dto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -8,6 +9,7 @@ import lombok.EqualsAndHashCode;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
/**
* 气瓶基本信息
...
...
@@ -143,4 +145,6 @@ public class CylinderInfoDto extends BaseDto {
@ApiModelProperty
(
value
=
"企业负责人"
)
private
String
unitPerson
;
@ApiModelProperty
(
value
=
"附件"
)
private
Map
<
String
,
List
<
AttachmentDto
>>
attachments
;
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/flc/biz/controller/CylinderInfoController.java
View file @
abcd8f35
...
...
@@ -6,6 +6,9 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.utils.RedisKey
;
import
com.yeejoin.amos.boot.module.common.api.dto.AttachmentDto
;
import
com.yeejoin.amos.boot.module.common.api.entity.SourceFile
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.SourceFileServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.api.entity.MsgLog
;
import
com.yeejoin.amos.boot.module.tzs.biz.service.impl.ESCylinderServiceImpl
;
import
com.yeejoin.amos.boot.module.tzs.biz.utils.BeanDtoVoUtils
;
...
...
@@ -20,6 +23,7 @@ import com.yeejoin.amos.boot.module.tzs.flc.biz.service.impl.CylinderUnitService
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.RegionModel
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.elasticsearch.common.recycler.Recycler
;
...
...
@@ -74,6 +78,8 @@ public class CylinderInfoController extends BaseController {
private
Map
<
Integer
,
String
>
regionMap
;
@Autowired
private
SourceFileServiceImpl
sourceFileService
;
/**
* 新增气瓶基本信息
...
...
@@ -554,6 +560,8 @@ public class CylinderInfoController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取气瓶详细信息"
,
notes
=
"获取气瓶详细信息"
)
public
ResponseModel
<
CylinderInfoDto
>
cyinderInfoList
(
@PathVariable
Long
sequenceNbr
)
{
CylinderInfo
cylinderInfo
=
cylinderInfoServiceImpl
.
getById
(
sequenceNbr
);
Map
<
String
,
List
<
AttachmentDto
>>
imgMap
=
sourceFileService
.
getAttachments
(
cylinderInfo
.
getSequenceNbr
());
CylinderInfoDto
target
=
new
CylinderInfoDto
();
// 把原对象数据拷贝到新对象
BeanUtils
.
copyProperties
(
cylinderInfo
,
target
);
...
...
@@ -591,7 +599,7 @@ public class CylinderInfoController extends BaseController {
}
else
{
target
.
setInspectionStatas
(
0
);
}
target
.
setAttachments
(
imgMap
);
return
ResponseHelper
.
buildResponse
(
target
);
}
...
...
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