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
1a8c04b5
Commit
1a8c04b5
authored
Sep 02, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车型实验
parent
6618d1eb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
+17
-4
TTestPlanRecordServiceImpl.java
...va/com/ruoyi/service/impl/TTestPlanRecordServiceImpl.java
+1
-1
TestPlanRecordController.java
...src/main/java/com/ruoyi/web/TestPlanRecordController.java
+12
-0
TTestPlanRecordMapper.xml
...eview/src/main/resources/mapper/TTestPlanRecordMapper.xml
+4
-3
No files found.
quality-review/src/main/java/com/ruoyi/service/impl/TTestPlanRecordServiceImpl.java
View file @
1a8c04b5
...
...
@@ -33,7 +33,7 @@ public class TTestPlanRecordServiceImpl extends ServiceImpl<TTestPlanRecordMappe
@Override
public
int
insertTestPlanRecord
(
TTestPlanRecord
tTestPlanRecord
){
tTestPlanRecord
.
set
InspectCarCompany
Id
(
SecurityUtils
.
getDeptId
());
tTestPlanRecord
.
set
TestOrganization
Id
(
SecurityUtils
.
getDeptId
());
tTestPlanRecord
.
setCreateTime
(
new
Date
());
return
tTestPlanRecordMapper
.
insert
(
tTestPlanRecord
);
}
...
...
quality-review/src/main/java/com/ruoyi/web/TestPlanRecordController.java
View file @
1a8c04b5
...
...
@@ -8,6 +8,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
import
com.ruoyi.common.enums.BusinessType
;
import
com.ruoyi.domain.ReviewStandard
;
import
com.ruoyi.domain.TTestPlanRecord
;
import
com.ruoyi.mapper.TTestPlanRecordMapper
;
import
com.ruoyi.service.TTestPlanRecordService
;
import
com.ruoyi.service.impl.ReviewStandardServiceImpl
;
import
com.ruoyi.web.request.PlanDetailStandardRequest
;
...
...
@@ -39,6 +40,9 @@ public class TestPlanRecordController extends BaseController{
@Autowired
private
ReviewStandardServiceImpl
reviewStandardService
;
@Autowired
private
TTestPlanRecordMapper
tTestPlanRecordMapper
;
@ApiOperation
(
"新增检测方案"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
...
...
@@ -94,4 +98,12 @@ public class TestPlanRecordController extends BaseController{
public
R
<
List
>
getUseCases
(
@Validated
@RequestBody
String
request
)
throws
IOException
{
return
R
.
ok
(
tTestPlanRecordService
.
getCarTestDetail
(
request
));
}
@ApiOperation
(
"检验记录删除"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/del"
)
public
R
<
Integer
>
getUseCases
(
@Validated
@RequestBody
TestPlanRecordGetInfoRequest
testPlanRecordGetInfoRequest
)
{
return
R
.
ok
(
tTestPlanRecordMapper
.
deleteById
(
testPlanRecordGetInfoRequest
.
getId
()));
}
}
quality-review/src/main/resources/mapper/TTestPlanRecordMapper.xml
View file @
1a8c04b5
...
...
@@ -17,14 +17,14 @@
<result
property=
"inspectionItem"
column=
"inspection_item"
jdbcType=
"VARCHAR"
/>
<result
property=
"useCaseNo"
column=
"use_case_no"
jdbcType=
"INTEGER"
/>
<result
property=
"inspectionStandardId"
column=
"inspection_standard_id"
jdbcType=
"BIGINT"
/>
<result
property=
"inspectionStandard
Id
"
column=
"name"
jdbcType=
"VARCHAR"
/>
<result
property=
"inspectionStandard
Name
"
column=
"name"
jdbcType=
"VARCHAR"
/>
</resultMap>
<sql
id=
"selectTestPlanRecordVo"
>
select pr.*,
ts.name,
tae.enterprise_name,
pr
.dept_name
sd
.dept_name
from t_test_plan_record pr
left join t_standard ts on ts.id = pr.inspection_standard_id
left join t_automobile_enterprise tae on tae.id = pr.inspect_car_company_id
...
...
@@ -58,7 +58,7 @@
<select
id=
"selectTestPlanRecordDetails"
parameterType=
"Long"
resultMap=
"BaseResultMap"
>
<include
refid=
"selectTestPlanRecordVo"
/>
where
sm
.id = #{id}
where
pr
.id = #{id}
</select>
<select
id=
"selectTestPlanRecordPage"
parameterType=
"com.ruoyi.web.request.TestPlanRecordPageRequest"
resultMap=
"BaseResultMap"
>
...
...
@@ -67,6 +67,7 @@
<if
test=
"carModel != null and carModel != ''"
>
and pr.car_model like concat('%', #{carModel}, '%')
</if>
<if
test=
"inspectCarCompanyId != null and inspectCarCompanyId != ''"
>
and pr.inspectCarCompanyId= #{inspectCarCompanyId}
</if>
</where>
ORDER BY pr.car_model,pr.create_time desc
</select>
<update
id=
"updateTestPlanRecord"
parameterType=
"com.ruoyi.web.request.TestPlanRecordGetInfoRequest"
>
...
...
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