Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car-database-api
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
中汽研标准应用数据库
car-database-api
Commits
122b8a70
Commit
122b8a70
authored
Aug 30, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
检测方案更新
parent
208a961e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
0 deletions
+32
-0
TTestPlanRecordMapper.java
...src/main/java/com/ruoyi/mapper/TTestPlanRecordMapper.java
+3
-0
TTestPlanRecordService.java
...c/main/java/com/ruoyi/service/TTestPlanRecordService.java
+2
-0
TTestPlanRecordServiceImpl.java
...va/com/ruoyi/service/impl/TTestPlanRecordServiceImpl.java
+5
-0
TestPlanRecordController.java
...src/main/java/com/ruoyi/web/TestPlanRecordController.java
+8
-0
TestPlanRecordGetInfoRequest.java
...a/com/ruoyi/web/request/TestPlanRecordGetInfoRequest.java
+6
-0
TTestPlanRecordMapper.xml
...eview/src/main/resources/mapper/TTestPlanRecordMapper.xml
+8
-0
No files found.
quality-review/src/main/java/com/ruoyi/mapper/TTestPlanRecordMapper.java
View file @
122b8a70
...
@@ -2,6 +2,7 @@ package com.ruoyi.mapper;
...
@@ -2,6 +2,7 @@ package com.ruoyi.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.ruoyi.domain.TTestPlanRecord
;
import
com.ruoyi.domain.TTestPlanRecord
;
import
com.ruoyi.web.request.TestPlanRecordGetInfoRequest
;
import
com.ruoyi.web.request.TestPlanRecordPageRequest
;
import
com.ruoyi.web.request.TestPlanRecordPageRequest
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
...
@@ -22,6 +23,8 @@ public interface TTestPlanRecordMapper extends BaseMapper<TTestPlanRecord> {
...
@@ -22,6 +23,8 @@ public interface TTestPlanRecordMapper extends BaseMapper<TTestPlanRecord> {
public
List
<
TTestPlanRecord
>
selectTestPlanRecordPage
(
TestPlanRecordPageRequest
testPlanRecordPageRequest
);
public
List
<
TTestPlanRecord
>
selectTestPlanRecordPage
(
TestPlanRecordPageRequest
testPlanRecordPageRequest
);
public
int
updateTestPlanRecord
(
TestPlanRecordGetInfoRequest
testPlanRecordGetInfoRequest
);
}
}
...
...
quality-review/src/main/java/com/ruoyi/service/TTestPlanRecordService.java
View file @
122b8a70
...
@@ -20,4 +20,6 @@ public interface TTestPlanRecordService extends IService<TTestPlanRecord> {
...
@@ -20,4 +20,6 @@ public interface TTestPlanRecordService extends IService<TTestPlanRecord> {
public
List
<
TTestPlanRecord
>
selectTestPlanRecordPage
(
TestPlanRecordPageRequest
testPlanRecordPageRequest
);
public
List
<
TTestPlanRecord
>
selectTestPlanRecordPage
(
TestPlanRecordPageRequest
testPlanRecordPageRequest
);
public
int
updateTestPlanRecord
(
TestPlanRecordGetInfoRequest
testPlanRecordGetInfoRequest
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/TTestPlanRecordServiceImpl.java
View file @
122b8a70
...
@@ -41,6 +41,11 @@ public class TTestPlanRecordServiceImpl extends ServiceImpl<TTestPlanRecordMappe
...
@@ -41,6 +41,11 @@ public class TTestPlanRecordServiceImpl extends ServiceImpl<TTestPlanRecordMappe
public
List
<
TTestPlanRecord
>
selectTestPlanRecordPage
(
TestPlanRecordPageRequest
testPlanRecordPageRequest
){
public
List
<
TTestPlanRecord
>
selectTestPlanRecordPage
(
TestPlanRecordPageRequest
testPlanRecordPageRequest
){
return
tTestPlanRecordMapper
.
selectTestPlanRecordPage
(
testPlanRecordPageRequest
);
return
tTestPlanRecordMapper
.
selectTestPlanRecordPage
(
testPlanRecordPageRequest
);
}
}
@Override
public
int
updateTestPlanRecord
(
TestPlanRecordGetInfoRequest
testPlanRecordGetInfoRequest
){
return
tTestPlanRecordMapper
.
updateTestPlanRecord
(
testPlanRecordGetInfoRequest
);
}
}
}
...
...
quality-review/src/main/java/com/ruoyi/web/TestPlanRecordController.java
View file @
122b8a70
...
@@ -75,4 +75,12 @@ public class TestPlanRecordController extends BaseController{
...
@@ -75,4 +75,12 @@ public class TestPlanRecordController extends BaseController{
List
<
TTestPlanRecord
>
list
=
tTestPlanRecordService
.
selectTestPlanRecordPage
(
testPlanRecordPageRequest
);
List
<
TTestPlanRecord
>
list
=
tTestPlanRecordService
.
selectTestPlanRecordPage
(
testPlanRecordPageRequest
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
@ApiOperation
(
"更新检验方案"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/update"
)
public
R
<
Integer
>
updateTestPlanRecord
(
TestPlanRecordGetInfoRequest
testPlanRecordGetInfoRequest
){
return
R
.
ok
(
tTestPlanRecordService
.
updateTestPlanRecord
(
testPlanRecordGetInfoRequest
));
}
}
}
quality-review/src/main/java/com/ruoyi/web/request/TestPlanRecordGetInfoRequest.java
View file @
122b8a70
...
@@ -9,4 +9,10 @@ import lombok.Data;
...
@@ -9,4 +9,10 @@ import lombok.Data;
public
class
TestPlanRecordGetInfoRequest
{
public
class
TestPlanRecordGetInfoRequest
{
@ApiModelProperty
(
"ID"
)
@ApiModelProperty
(
"ID"
)
private
Long
id
;
private
Long
id
;
/**
* 文件路径
*/
@ApiModelProperty
(
"文件路径"
)
private
String
fileUrl
;
}
}
quality-review/src/main/resources/mapper/TTestPlanRecordMapper.xml
View file @
122b8a70
...
@@ -68,4 +68,12 @@
...
@@ -68,4 +68,12 @@
<if
test=
"inspectCarCompanyId != null and inspectCarCompanyId != ''"
>
and pr.inspectCarCompanyId= #{inspectCarCompanyId}
</if>
<if
test=
"inspectCarCompanyId != null and inspectCarCompanyId != ''"
>
and pr.inspectCarCompanyId= #{inspectCarCompanyId}
</if>
</where>
</where>
</select>
</select>
<update
id=
"updateTestPlanRecord"
parameterType=
"com.ruoyi.web.request.TestPlanRecordGetInfoRequest"
>
update t_test_plan_record
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"fileUrl != null"
>
file_url = #{fileUrl},
</if>
</trim>
where id = #{id}
</update>
</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