Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
Project
Project
Details
Activity
Releases
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
王飞
vehicle-quality-review
Commits
054e8bf1
Commit
054e8bf1
authored
Mar 04, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预览企业留档文件
parent
6d6fabcc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
1 deletion
+38
-1
ReviewEnterpriseArchiveViewItemVO.java
...om/ruoyi/domain/vo/ReviewEnterpriseArchiveViewItemVO.java
+8
-0
ReviewEnterpriseArchiveViewVO.java
...va/com/ruoyi/domain/vo/ReviewEnterpriseArchiveViewVO.java
+6
-0
ReviewEnterpriseArchiveServiceImpl.java
...uoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
+1
-1
ReviewEnterpriseArchiveController.java
...java/com/ruoyi/web/ReviewEnterpriseArchiveController.java
+10
-0
ReviewEnterpriseArchivePreviewRequest.java
...yi/web/request/ReviewEnterpriseArchivePreviewRequest.java
+13
-0
No files found.
quality-review/src/main/java/com/ruoyi/domain/vo/ReviewEnterpriseArchiveViewItemVO.java
View file @
054e8bf1
package
com
.
ruoyi
.
domain
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
@ApiModel
(
value
=
"ReviewEnterpriseArchiveViewItemVO"
,
description
=
"条目VO"
)
@Accessors
(
chain
=
true
)
@Data
public
class
ReviewEnterpriseArchiveViewItemVO
{
// 文件目录
@ApiModelProperty
(
"文件目录"
)
private
String
catalogue
;
// 标准章节
@ApiModelProperty
(
"标准章节"
)
private
String
chapter
;
// 标准要求
@ApiModelProperty
(
"标准要求"
)
private
String
standard
;
// 要点要求
@ApiModelProperty
(
"要点要求"
)
private
String
keyPoint
;
// 企业留档文件id
@ApiModelProperty
(
"企业留档文件id"
)
private
Long
archiveId
;
}
quality-review/src/main/java/com/ruoyi/domain/vo/ReviewEnterpriseArchiveViewVO.java
View file @
054e8bf1
package
com
.
ruoyi
.
domain
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
@ApiModel
(
value
=
"ReviewEnterpriseArchiveViewVO"
,
description
=
"企业留档文件VO"
)
@Data
public
class
ReviewEnterpriseArchiveViewVO
{
// 企业留档文件id
@ApiModelProperty
(
"企业留档文件id"
)
private
Long
id
;
// 企业留档文件名称
@ApiModelProperty
(
"企业留档文件名称"
)
private
String
fileName
;
// 条目
@ApiModelProperty
(
"条目"
)
private
List
<
ReviewEnterpriseArchiveViewItemVO
>
items
;
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
View file @
054e8bf1
...
...
@@ -109,7 +109,7 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
Long
archiveId
=
view
.
getId
();
for
(
ReviewEnterpriseArchiveViewItemVO
item
:
viewItems
)
{
if
(
item
.
getArchiveId
().
equals
(
archiveId
))
{
if
(
item
.
getArchiveId
()
!=
null
&&
item
.
getArchiveId
()
.
equals
(
archiveId
))
{
subList
.
add
(
item
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/ReviewEnterpriseArchiveController.java
View file @
054e8bf1
...
...
@@ -6,6 +6,7 @@ import com.ruoyi.common.core.domain.R;
import
com.ruoyi.common.core.page.TableDataInfo
;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.domain.ReviewEnterpriseArchive
;
import
com.ruoyi.domain.vo.ReviewEnterpriseArchiveViewVO
;
import
com.ruoyi.service.ReviewEnterpriseArchiveService
;
import
com.ruoyi.web.request.*
;
import
com.ruoyi.web.response.TaskFindResponse
;
...
...
@@ -76,4 +77,13 @@ public class ReviewEnterpriseArchiveController extends BaseController {
reviewEnterpriseArchiveService
.
updateById
(
reviewEnterpriseArchive
);
return
R
.
ok
();
}
@ApiOperation
(
"预览企业留档文件"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/preview"
)
public
TableDataInfo
<
ReviewEnterpriseArchiveViewVO
>
preview
(
@Validated
@RequestBody
ReviewEnterpriseArchivePreviewRequest
request
)
{
return
getDataTable
(
reviewEnterpriseArchiveService
.
view
(
request
.
getTaskId
()));
}
}
quality-review/src/main/java/com/ruoyi/web/request/ReviewEnterpriseArchivePreviewRequest.java
0 → 100644
View file @
054e8bf1
package
com
.
ruoyi
.
web
.
request
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
(
value
=
"ReviewEnterpriseArchivePreviewRequest"
,
description
=
"预览企业留档文件"
)
@Data
public
class
ReviewEnterpriseArchivePreviewRequest
{
@ApiModelProperty
(
"taskId"
)
private
Long
taskId
;
}
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