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
bd5cf129
Commit
bd5cf129
authored
Feb 26, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据任务id查询留档文件列表&查看留档文件详情
parent
1309e153
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
17 deletions
+16
-17
ReviewDetailsResult.java
...w/src/main/java/com/ruoyi/domain/ReviewDetailsResult.java
+0
-3
ReviewEnterpriseArchiveMapper.java
.../java/com/ruoyi/mapper/ReviewEnterpriseArchiveMapper.java
+1
-1
ReviewEnterpriseArchiveService.java
...ava/com/ruoyi/service/ReviewEnterpriseArchiveService.java
+1
-1
ReviewEnterpriseArchiveServiceImpl.java
...uoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
+4
-3
ReviewEnterpriseArchiveController.java
...java/com/ruoyi/web/ReviewEnterpriseArchiveController.java
+5
-5
ReviewEnterpriseArchiveGetInfoRequest.java
...yi/web/request/ReviewEnterpriseArchiveGetInfoRequest.java
+2
-2
ReviewEnterpriseArchiveMapper.xml
...c/main/resources/mapper/ReviewEnterpriseArchiveMapper.xml
+3
-2
No files found.
quality-review/src/main/java/com/ruoyi/domain/ReviewDetailsResult.java
View file @
bd5cf129
...
@@ -86,8 +86,5 @@ public class ReviewDetailsResult implements Serializable {
...
@@ -86,8 +86,5 @@ public class ReviewDetailsResult implements Serializable {
@ApiModelProperty
(
"关联到车企留档文件"
)
@ApiModelProperty
(
"关联到车企留档文件"
)
private
Long
reviewEnterpriseArchiveId
;
private
Long
reviewEnterpriseArchiveId
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
"文件名称"
)
private
String
fileName
;
}
}
quality-review/src/main/java/com/ruoyi/mapper/ReviewEnterpriseArchiveMapper.java
View file @
bd5cf129
...
@@ -28,7 +28,7 @@ public interface ReviewEnterpriseArchiveMapper extends BaseMapper<ReviewEnterpri
...
@@ -28,7 +28,7 @@ public interface ReviewEnterpriseArchiveMapper extends BaseMapper<ReviewEnterpri
ReviewEnterpriseArchive
findByFileName
(
@Param
(
"fileName"
)
String
fileName
);
ReviewEnterpriseArchive
findByFileName
(
@Param
(
"fileName"
)
String
fileName
);
List
<
String
>
findFileName
List
(
@Param
(
"taskId"
)
Long
taskId
);
List
<
ReviewEnterpriseArchive
>
find
List
(
@Param
(
"taskId"
)
Long
taskId
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/ReviewEnterpriseArchiveService.java
View file @
bd5cf129
...
@@ -35,5 +35,5 @@ public interface ReviewEnterpriseArchiveService extends IService<ReviewEnterpris
...
@@ -35,5 +35,5 @@ public interface ReviewEnterpriseArchiveService extends IService<ReviewEnterpris
*/
*/
ReviewEnterpriseArchive
getInfo
(
ReviewEnterpriseArchiveGetInfoRequest
request
);
ReviewEnterpriseArchive
getInfo
(
ReviewEnterpriseArchiveGetInfoRequest
request
);
List
<
String
>
findFileName
List
(
ReviewEnterpriseArchiveFindFileNameListRequest
request
);
List
<
ReviewEnterpriseArchive
>
find
List
(
ReviewEnterpriseArchiveFindFileNameListRequest
request
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
View file @
bd5cf129
...
@@ -79,12 +79,13 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
...
@@ -79,12 +79,13 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
@Override
@Override
public
ReviewEnterpriseArchive
getInfo
(
ReviewEnterpriseArchiveGetInfoRequest
request
)
{
public
ReviewEnterpriseArchive
getInfo
(
ReviewEnterpriseArchiveGetInfoRequest
request
)
{
return
reviewEnterpriseArchiveMapper
.
findByFileName
(
request
.
getFileName
());
return
reviewEnterpriseArchiveMapper
.
selectById
(
request
.
getId
());
}
}
@Override
@Override
public
List
<
String
>
findFileName
List
(
ReviewEnterpriseArchiveFindFileNameListRequest
request
)
{
public
List
<
ReviewEnterpriseArchive
>
find
List
(
ReviewEnterpriseArchiveFindFileNameListRequest
request
)
{
return
reviewEnterpriseArchiveMapper
.
find
FileName
List
(
request
.
getTaskId
());
return
reviewEnterpriseArchiveMapper
.
findList
(
request
.
getTaskId
());
}
}
private
List
<
ReviewEnterpriseArchiveViewVO
>
buildReviewEnterpriseArchiveViewVO
(
List
<
ReviewEnterpriseArchive
>
archives
,
List
<
ReviewEnterpriseArchiveViewItemVO
>
viewItems
)
{
private
List
<
ReviewEnterpriseArchiveViewVO
>
buildReviewEnterpriseArchiveViewVO
(
List
<
ReviewEnterpriseArchive
>
archives
,
List
<
ReviewEnterpriseArchiveViewItemVO
>
viewItems
)
{
...
...
quality-review/src/main/java/com/ruoyi/web/ReviewEnterpriseArchiveController.java
View file @
bd5cf129
...
@@ -39,7 +39,7 @@ public class ReviewEnterpriseArchiveController extends BaseController {
...
@@ -39,7 +39,7 @@ public class ReviewEnterpriseArchiveController extends BaseController {
return
getDataTable
(
reviewEnterpriseArchiveService
.
findEnterpriseArchive
(
request
));
return
getDataTable
(
reviewEnterpriseArchiveService
.
findEnterpriseArchive
(
request
));
}
}
@ApiOperation
(
"根据
名称
查询"
)
@ApiOperation
(
"根据
id
查询"
)
@Trace
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getInfo"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/getInfo"
)
...
@@ -49,12 +49,12 @@ public class ReviewEnterpriseArchiveController extends BaseController {
...
@@ -49,12 +49,12 @@ public class ReviewEnterpriseArchiveController extends BaseController {
return
R
.
ok
(
reviewEnterpriseArchive
);
return
R
.
ok
(
reviewEnterpriseArchive
);
}
}
@ApiOperation
(
"查询
文件名称
列表"
)
@ApiOperation
(
"查询
车企文件
列表"
)
@Trace
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/find
FileName
List"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/findList"
)
public
TableDataInfo
<
String
>
findFileName
List
(
@Validated
@RequestBody
ReviewEnterpriseArchiveFindFileNameListRequest
request
)
{
public
TableDataInfo
<
ReviewEnterpriseArchive
>
find
List
(
@Validated
@RequestBody
ReviewEnterpriseArchiveFindFileNameListRequest
request
)
{
return
getDataTable
(
reviewEnterpriseArchiveService
.
find
FileName
List
(
request
));
return
getDataTable
(
reviewEnterpriseArchiveService
.
findList
(
request
));
}
}
@ApiOperation
(
"新增车企文件"
)
@ApiOperation
(
"新增车企文件"
)
...
...
quality-review/src/main/java/com/ruoyi/web/request/ReviewEnterpriseArchiveGetInfoRequest.java
View file @
bd5cf129
...
@@ -8,6 +8,6 @@ import lombok.Data;
...
@@ -8,6 +8,6 @@ import lombok.Data;
@Data
@Data
public
class
ReviewEnterpriseArchiveGetInfoRequest
{
public
class
ReviewEnterpriseArchiveGetInfoRequest
{
@ApiModelProperty
(
"
文件名称
"
)
@ApiModelProperty
(
"
id
"
)
private
String
fileName
;
private
Long
id
;
}
}
quality-review/src/main/resources/mapper/ReviewEnterpriseArchiveMapper.xml
View file @
bd5cf129
...
@@ -60,8 +60,9 @@
...
@@ -60,8 +60,9 @@
FROM t_review_enterprise_archive
FROM t_review_enterprise_archive
where file_name = #{fileName}
where file_name = #{fileName}
</select>
</select>
<select
id=
"findFileNameList"
resultType=
"java.lang.String"
>
<select
id=
"findList"
resultType=
"com.ruoyi.domain.ReviewEnterpriseArchive"
>
select file_name from t_review_enterprise_archive
SELECT id, enterprise_name, file_name, version, publish_date, status, identify_number, storage, photo, task_id, create_by, create_time
FROM t_review_enterprise_archive
where task_id = #{taskId}
where task_id = #{taskId}
</select>
</select>
</mapper>
</mapper>
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