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
fd8ca900
Commit
fd8ca900
authored
Jan 05, 2024
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标准表相关
parent
e0759728
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
111 additions
and
0 deletions
+111
-0
Standard.java
quality-review/src/main/java/com/ruoyi/domain/Standard.java
+45
-0
StandardMapper.java
...review/src/main/java/com/ruoyi/mapper/StandardMapper.java
+16
-0
StandardListRequest.java
.../main/java/com/ruoyi/web/request/StandardListRequest.java
+23
-0
StandardMapper.xml
quality-review/src/main/resources/mapper/StandardMapper.xml
+27
-0
No files found.
quality-review/src/main/java/com/ruoyi/domain/Standard.java
0 → 100644
View file @
fd8ca900
package
com
.
ruoyi
.
domain
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
/**
* 标准
* @TableName t_standard
*/
@ApiModel
(
value
=
"Standard"
,
description
=
"标准"
)
@TableName
(
value
=
"t_standard"
,
autoResultMap
=
true
)
@Accessors
(
chain
=
true
)
@Data
public
class
Standard
{
/**
* 主键
*/
@ApiModelProperty
(
"主键"
)
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
private
Long
id
;
/**
* 标准名称
*/
@ApiModelProperty
(
"标准名称"
)
private
String
name
;
/**
* 标准号
*/
@ApiModelProperty
(
"标准号"
)
private
String
standardNo
;
/**
* 文件路径
*/
@ApiModelProperty
(
"文件路径"
)
private
String
file
;
}
quality-review/src/main/java/com/ruoyi/mapper/StandardMapper.java
0 → 100644
View file @
fd8ca900
package
com
.
ruoyi
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.ruoyi.domain.Standard
;
import
com.ruoyi.web.request.StandardListRequest
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Repository
public
interface
StandardMapper
extends
BaseMapper
<
Standard
>
{
// 分页查询
List
<
Standard
>
findList
(
@Param
(
"params"
)
StandardListRequest
request
);
}
quality-review/src/main/java/com/ruoyi/web/request/StandardListRequest.java
0 → 100644
View file @
fd8ca900
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
=
"StandardListRequest"
,
description
=
"查询标准"
)
@Data
public
class
StandardListRequest
extends
PageDomain
{
/**
* 标准名称
*/
@ApiModelProperty
(
"标准名称"
)
private
String
name
;
/**
* 标准号
*/
@ApiModelProperty
(
"标准号"
)
private
String
standardNo
;
}
quality-review/src/main/resources/mapper/StandardMapper.xml
0 → 100644
View file @
fd8ca900
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ruoyi.mapper.StandardMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.ruoyi.domain.Standard"
>
<id
property=
"id"
column=
"id"
jdbcType=
"BIGINT"
/>
<result
property=
"name"
column=
"name"
jdbcType=
"VARCHAR"
/>
<result
property=
"standardNo"
column=
"standard_no"
jdbcType=
"VARCHAR"
/>
<result
property=
"file"
column=
"file"
jdbcType=
"VARCHAR"
/>
</resultMap>
<select
id=
"findList"
parameterType=
"com.ruoyi.domain.Standard"
resultMap=
"BaseResultMap"
>
SELECT id, name, standardNo, file
FROM t_standard
<where>
<if
test=
"name != null and name != ''"
>
name like concat('%',#{params.name},'%')
</if>
<if
test=
"standardNo != null and standardNo != ''"
>
standard_no = #{params.standardNo}
</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