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
baf324b3
Commit
baf324b3
authored
Mar 04, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据任务id分页查询车企留档文件
parent
00e13906
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
0 deletions
+60
-0
ReviewEnterpriseArchiveMapper.java
.../java/com/ruoyi/mapper/ReviewEnterpriseArchiveMapper.java
+3
-0
ReviewEnterpriseArchiveService.java
...ava/com/ruoyi/service/ReviewEnterpriseArchiveService.java
+3
-0
ReviewEnterpriseArchiveServiceImpl.java
...uoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
+6
-0
ReviewEnterpriseArchiveController.java
...java/com/ruoyi/web/ReviewEnterpriseArchiveController.java
+9
-0
ReviewEnterpriseArchiveFindByTaskIdRequest.java
...b/request/ReviewEnterpriseArchiveFindByTaskIdRequest.java
+23
-0
ReviewEnterpriseArchiveMapper.xml
...c/main/resources/mapper/ReviewEnterpriseArchiveMapper.xml
+16
-0
No files found.
quality-review/src/main/java/com/ruoyi/mapper/ReviewEnterpriseArchiveMapper.java
View file @
baf324b3
...
@@ -3,6 +3,7 @@ package com.ruoyi.mapper;
...
@@ -3,6 +3,7 @@ package com.ruoyi.mapper;
import
com.ruoyi.domain.ReviewEnterpriseArchive
;
import
com.ruoyi.domain.ReviewEnterpriseArchive
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.ruoyi.domain.vo.ReviewEnterpriseArchiveViewItemVO
;
import
com.ruoyi.domain.vo.ReviewEnterpriseArchiveViewItemVO
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindByTaskIdRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindRequest
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
...
@@ -29,6 +30,8 @@ public interface ReviewEnterpriseArchiveMapper extends BaseMapper<ReviewEnterpri
...
@@ -29,6 +30,8 @@ public interface ReviewEnterpriseArchiveMapper extends BaseMapper<ReviewEnterpri
ReviewEnterpriseArchive
findByFileName
(
@Param
(
"fileName"
)
String
fileName
);
ReviewEnterpriseArchive
findByFileName
(
@Param
(
"fileName"
)
String
fileName
);
List
<
ReviewEnterpriseArchive
>
findList
(
@Param
(
"taskId"
)
Long
taskId
);
List
<
ReviewEnterpriseArchive
>
findList
(
@Param
(
"taskId"
)
Long
taskId
);
List
<
ReviewEnterpriseArchive
>
findEnterpriseArchiveByTaskId
(
ReviewEnterpriseArchiveFindByTaskIdRequest
request
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/ReviewEnterpriseArchiveService.java
View file @
baf324b3
...
@@ -3,6 +3,7 @@ package com.ruoyi.service;
...
@@ -3,6 +3,7 @@ package com.ruoyi.service;
import
com.ruoyi.domain.ReviewEnterpriseArchive
;
import
com.ruoyi.domain.ReviewEnterpriseArchive
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.ruoyi.domain.vo.ReviewEnterpriseArchiveViewVO
;
import
com.ruoyi.domain.vo.ReviewEnterpriseArchiveViewVO
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindByTaskIdRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindFileNameListRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindFileNameListRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveGetInfoRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveGetInfoRequest
;
...
@@ -36,4 +37,6 @@ public interface ReviewEnterpriseArchiveService extends IService<ReviewEnterpris
...
@@ -36,4 +37,6 @@ public interface ReviewEnterpriseArchiveService extends IService<ReviewEnterpris
ReviewEnterpriseArchive
getInfo
(
ReviewEnterpriseArchiveGetInfoRequest
request
);
ReviewEnterpriseArchive
getInfo
(
ReviewEnterpriseArchiveGetInfoRequest
request
);
List
<
ReviewEnterpriseArchive
>
findList
(
ReviewEnterpriseArchiveFindFileNameListRequest
request
);
List
<
ReviewEnterpriseArchive
>
findList
(
ReviewEnterpriseArchiveFindFileNameListRequest
request
);
List
<
ReviewEnterpriseArchive
>
findEnterpriseArchiveByTaskId
(
ReviewEnterpriseArchiveFindByTaskIdRequest
request
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/ReviewEnterpriseArchiveServiceImpl.java
View file @
baf324b3
...
@@ -12,6 +12,7 @@ import com.ruoyi.domain.vo.ReviewEnterpriseArchiveViewVO;
...
@@ -12,6 +12,7 @@ import com.ruoyi.domain.vo.ReviewEnterpriseArchiveViewVO;
import
com.ruoyi.service.ReviewEnterpriseArchiveService
;
import
com.ruoyi.service.ReviewEnterpriseArchiveService
;
import
com.ruoyi.mapper.ReviewEnterpriseArchiveMapper
;
import
com.ruoyi.mapper.ReviewEnterpriseArchiveMapper
;
import
com.ruoyi.system.service.ISysUserService
;
import
com.ruoyi.system.service.ISysUserService
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindByTaskIdRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindFileNameListRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindFileNameListRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveFindRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveGetInfoRequest
;
import
com.ruoyi.web.request.ReviewEnterpriseArchiveGetInfoRequest
;
...
@@ -88,6 +89,11 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
...
@@ -88,6 +89,11 @@ public class ReviewEnterpriseArchiveServiceImpl extends ServiceImpl<ReviewEnterp
return
reviewEnterpriseArchiveMapper
.
findList
(
request
.
getTaskId
());
return
reviewEnterpriseArchiveMapper
.
findList
(
request
.
getTaskId
());
}
}
@Override
public
List
<
ReviewEnterpriseArchive
>
findEnterpriseArchiveByTaskId
(
ReviewEnterpriseArchiveFindByTaskIdRequest
request
)
{
return
reviewEnterpriseArchiveMapper
.
findEnterpriseArchiveByTaskId
(
request
);
}
private
List
<
ReviewEnterpriseArchiveViewVO
>
buildReviewEnterpriseArchiveViewVO
(
List
<
ReviewEnterpriseArchive
>
archives
,
List
<
ReviewEnterpriseArchiveViewItemVO
>
viewItems
)
{
private
List
<
ReviewEnterpriseArchiveViewVO
>
buildReviewEnterpriseArchiveViewVO
(
List
<
ReviewEnterpriseArchive
>
archives
,
List
<
ReviewEnterpriseArchiveViewItemVO
>
viewItems
)
{
List
<
ReviewEnterpriseArchiveViewVO
>
viewList
=
new
ArrayList
();
List
<
ReviewEnterpriseArchiveViewVO
>
viewList
=
new
ArrayList
();
...
...
quality-review/src/main/java/com/ruoyi/web/ReviewEnterpriseArchiveController.java
View file @
baf324b3
...
@@ -40,6 +40,15 @@ public class ReviewEnterpriseArchiveController extends BaseController {
...
@@ -40,6 +40,15 @@ public class ReviewEnterpriseArchiveController extends BaseController {
return
getDataTable
(
reviewEnterpriseArchiveService
.
findEnterpriseArchive
(
request
));
return
getDataTable
(
reviewEnterpriseArchiveService
.
findEnterpriseArchive
(
request
));
}
}
@ApiOperation
(
"根据任务id分页查询车企文件"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/findEnterpriseArchiveByTaskId"
)
public
TableDataInfo
<
ReviewEnterpriseArchive
>
findEnterpriseArchiveByTaskId
(
@Validated
@RequestBody
ReviewEnterpriseArchiveFindByTaskIdRequest
request
)
{
startPage
(
request
);
return
getDataTable
(
reviewEnterpriseArchiveService
.
findEnterpriseArchiveByTaskId
(
request
));
}
@ApiOperation
(
"根据id查询"
)
@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"
)})
...
...
quality-review/src/main/java/com/ruoyi/web/request/ReviewEnterpriseArchiveFindByTaskIdRequest.java
0 → 100644
View file @
baf324b3
package
com
.
ruoyi
.
web
.
request
;
import
com.ruoyi.common.core.page.PageDomain
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
(
value
=
"ReviewEnterpriseArchiveFindByTaskIdRequest"
,
description
=
"根据任务id查询车企文件"
)
@Data
public
class
ReviewEnterpriseArchiveFindByTaskIdRequest
extends
PageDomain
{
@ApiModelProperty
(
"文件名称"
)
private
String
fileName
;
@ApiModelProperty
(
"文件状态"
)
private
String
status
;
@ApiModelProperty
(
"文件识别号"
)
private
String
identifyNumber
;
@ApiModelProperty
(
"任务id"
)
private
Long
taskId
;
}
quality-review/src/main/resources/mapper/ReviewEnterpriseArchiveMapper.xml
View file @
baf324b3
...
@@ -65,4 +65,20 @@
...
@@ -65,4 +65,20 @@
FROM t_review_enterprise_archive
FROM t_review_enterprise_archive
where task_id = #{taskId}
where task_id = #{taskId}
</select>
</select>
<select
id=
"findEnterpriseArchiveByTaskId"
resultType=
"com.ruoyi.domain.ReviewEnterpriseArchive"
>
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}
<if
test=
"fileName != null and fileName != ''"
>
and file_name like concat('%',#{fileName},'%')
</if>
<if
test=
"status != null and status != ''"
>
and status = #{status}
</if>
<if
test=
"identifyNumber != null and identifyNumber != ''"
>
and identify_number = #{identifyNumber}
</if>
</where>
</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