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
c6895ed5
Commit
c6895ed5
authored
May 21, 2024
by
wdy
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
dev - master 18 See merge request
!344
parents
cb8517d0
c4537ea1
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
59 additions
and
3 deletions
+59
-3
Standard.java
quality-review/src/main/java/com/ruoyi/domain/Standard.java
+3
-0
StandardMapper.java
...review/src/main/java/com/ruoyi/mapper/StandardMapper.java
+7
-0
StandardService.java
...view/src/main/java/com/ruoyi/service/StandardService.java
+7
-0
StandardServiceImpl.java
...main/java/com/ruoyi/service/impl/StandardServiceImpl.java
+10
-0
StandardController.java
...eview/src/main/java/com/ruoyi/web/StandardController.java
+10
-1
StandardMapper.xml
quality-review/src/main/resources/mapper/StandardMapper.xml
+22
-2
No files found.
quality-review/src/main/java/com/ruoyi/domain/Standard.java
View file @
c6895ed5
...
...
@@ -61,4 +61,7 @@ public class Standard {
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
implementationDate
;
@ApiModelProperty
(
"展示状态"
)
private
Long
status
;
}
quality-review/src/main/java/com/ruoyi/mapper/StandardMapper.java
View file @
c6895ed5
...
...
@@ -19,4 +19,11 @@ public interface StandardMapper extends BaseMapper<Standard> {
//查询全部
List
<
Standard
>
selectListAll
();
/**
* 标准库分页查询(可选用标准列表)
* @param request
* @return
*/
List
<
Standard
>
findStandardList
(
StandardListRequest
request
);
}
quality-review/src/main/java/com/ruoyi/service/StandardService.java
View file @
c6895ed5
...
...
@@ -23,4 +23,11 @@ public interface StandardService extends IService<Standard> {
void
editStandard
(
StandardEditRequest
request
);
StandardResponse
getInfo
(
StandardGetInfoRequest
request
);
/**
* 标准库分页查询(可选用标准列表)
* @param request
* @return
*/
List
<
Standard
>
findStandardList
(
StandardListRequest
request
);
}
quality-review/src/main/java/com/ruoyi/service/impl/StandardServiceImpl.java
View file @
c6895ed5
...
...
@@ -91,4 +91,14 @@ public class StandardServiceImpl extends ServiceImpl<StandardMapper, Standard> i
response
.
setDictList
(
list
);
return
response
;
}
/**
* 标准库分页查询(可选用标准列表)
* @param request
* @return
*/
@Override
public
List
<
Standard
>
findStandardList
(
StandardListRequest
request
)
{
return
standardMapper
.
findStandardList
(
request
);
}
}
quality-review/src/main/java/com/ruoyi/web/StandardController.java
View file @
c6895ed5
...
...
@@ -39,10 +39,19 @@ public class StandardController extends BaseController {
* 分页查询
* @return
*/
@ApiOperation
(
"标准库分页查询"
)
@ApiOperation
(
"标准库分页查询
(可选用标准列表)
"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/findStandardList"
)
public
TableDataInfo
<
Standard
>
findStandardList
(
@Validated
@RequestBody
StandardListRequest
request
)
{
startPage
(
request
);
return
getDataTable
(
standardService
.
findStandardList
(
request
));
}
@ApiOperation
(
"标准库分页查询(仅做展示列表)"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/findList"
)
public
TableDataInfo
<
Standard
>
findList
(
@Validated
@RequestBody
StandardListRequest
request
)
{
startPage
(
request
);
return
getDataTable
(
standardService
.
findList
(
request
));
...
...
quality-review/src/main/resources/mapper/StandardMapper.xml
View file @
c6895ed5
...
...
@@ -13,10 +13,11 @@
<result
property=
"standardStatus"
column=
"standard_status"
jdbcType=
"VARCHAR"
/>
<result
property=
"releaseDate"
column=
"release_date"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"implementationDate"
column=
"implementation_date"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"status"
column=
"status"
jdbcType=
"BIGINT"
/>
</resultMap>
<select
id=
"findList"
parameterType=
"com.ruoyi.web.request.StandardListRequest"
resultMap=
"BaseResultMap"
>
SELECT id, name, standard_no, file,standard_type,standard_status,release_date,implementation_date
SELECT id, name, standard_no, file,standard_type,standard_status,release_date,implementation_date
,status
FROM t_standard
<where>
<if
test=
"standardType != null and standardType != ''"
>
...
...
@@ -40,6 +41,25 @@
</select>
<select
id=
"selectListAll"
resultMap=
"BaseResultMap"
>
SELECT id, name, standard_no, file,standard_type,standard_status,release_date,implementation_date FROM t_standard
SELECT id, name, standard_no, file,standard_type,standard_status,release_date,implementation_date,status FROM t_standard
</select>
<select
id=
"findStandardList"
resultType=
"com.ruoyi.domain.Standard"
>
SELECT id, name, standard_no, file,standard_type,standard_status,release_date,implementation_date,status
FROM t_standard
<where>
and status = 1
<if
test=
"standardType != null and standardType != ''"
>
and standard_type = #{standardType}
</if>
<if
test=
"standardNo != null and standardNo != ''"
>
and standard_no like concat('%', #{standardNo}, '%')
</if>
<if
test=
"name != null and name != ''"
>
and name like concat('%', #{name}, '%')
</if>
<if
test=
"standardStatus != null and standardStatus != ''"
>
and standard_status = #{standardStatus}
</if>
</where>
</select>
</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