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
525e6b0d
Commit
525e6b0d
authored
Feb 05, 2024
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务与样品关系
parent
505ab031
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
91 additions
and
0 deletions
+91
-0
TaskSampleRelation.java
...ew/src/main/java/com/ruoyi/domain/TaskSampleRelation.java
+39
-0
TaskSampleRelationMapper.java
.../main/java/com/ruoyi/mapper/TaskSampleRelationMapper.java
+19
-0
TaskSampleRelationService.java
...ain/java/com/ruoyi/service/TaskSampleRelationService.java
+11
-0
TaskSampleRelationServiceImpl.java
...com/ruoyi/service/impl/TaskSampleRelationServiceImpl.java
+22
-0
No files found.
quality-review/src/main/java/com/ruoyi/domain/TaskSampleRelation.java
0 → 100644
View file @
525e6b0d
package
com
.
ruoyi
.
domain
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
* 任务表
*/
@ApiModel
@TableName
(
value
=
"t_task_sample_relation"
,
autoResultMap
=
true
)
@Accessors
(
chain
=
true
)
@Data
public
class
TaskSampleRelation
{
@ApiModelProperty
(
"主键"
)
@TableId
(
type
=
IdType
.
ASSIGN_ID
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
id
;
@ApiModelProperty
(
"任务id"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
taskId
;
@ApiModelProperty
(
"样品id"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
sampleId
;
@ApiModelProperty
(
"0:整车样品 1:零部件样品"
)
private
String
flag
;
}
quality-review/src/main/java/com/ruoyi/mapper/TaskSampleRelationMapper.java
0 → 100644
View file @
525e6b0d
package
com
.
ruoyi
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.ruoyi.domain.TaskSampleRelation
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Repository
public
interface
TaskSampleRelationMapper
extends
BaseMapper
<
TaskSampleRelation
>
{
/**
* 根据任务id查询
* @param taskId
* @return
*/
List
<
TaskSampleRelation
>
selectByTaskId
(
@Param
(
"taskId"
)
Long
taskId
);
}
quality-review/src/main/java/com/ruoyi/service/TaskSampleRelationService.java
0 → 100644
View file @
525e6b0d
package
com
.
ruoyi
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.ruoyi.domain.TaskSampleRelation
;
import
java.util.List
;
public
interface
TaskSampleRelationService
extends
IService
<
TaskSampleRelation
>
{
List
<
TaskSampleRelation
>
selectByTaskId
(
Long
taskId
);
}
quality-review/src/main/java/com/ruoyi/service/impl/TaskSampleRelationServiceImpl.java
0 → 100644
View file @
525e6b0d
package
com
.
ruoyi
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.ruoyi.domain.TaskSampleRelation
;
import
com.ruoyi.mapper.TaskSampleRelationMapper
;
import
com.ruoyi.service.TaskSampleRelationService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
TaskSampleRelationServiceImpl
extends
ServiceImpl
<
TaskSampleRelationMapper
,
TaskSampleRelation
>
implements
TaskSampleRelationService
{
@Autowired
private
TaskSampleRelationMapper
taskSampleRelationMapper
;
@Override
public
List
<
TaskSampleRelation
>
selectByTaskId
(
Long
taskId
)
{
return
taskSampleRelationMapper
.
selectByTaskId
(
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