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
b04916e3
Commit
b04916e3
authored
Jan 31, 2024
by
王飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gaoying' into 'dev'
Gao Ying See merge request
!72
parents
7ab22bac
94e7e79b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
29 deletions
+33
-29
SampleManagementMapper.java
...rc/main/java/com/ruoyi/mapper/SampleManagementMapper.java
+6
-8
SampleManagementService.java
.../main/java/com/ruoyi/service/SampleManagementService.java
+3
-6
SampleManagementServiceImpl.java
...a/com/ruoyi/service/impl/SampleManagementServiceImpl.java
+4
-8
SampleManagementController.java
...c/main/java/com/ruoyi/web/SampleManagementController.java
+9
-1
SampleManagementMapper.xml
...view/src/main/resources/mapper/SampleManagementMapper.xml
+11
-6
No files found.
quality-review/src/main/java/com/ruoyi/mapper/SampleManagementMapper.java
View file @
b04916e3
...
@@ -42,14 +42,6 @@ public interface SampleManagementMapper extends BaseMapper<Sample> {
...
@@ -42,14 +42,6 @@ public interface SampleManagementMapper extends BaseMapper<Sample> {
*/
*/
public
int
updateSampleManagement
(
Sample
tSampleManagement
);
public
int
updateSampleManagement
(
Sample
tSampleManagement
);
/**
* 删除样品管理
*
* @param id 样品管理主键
* @return 结果
*/
public
int
deleteSampleManagementById
(
Long
id
);
/**
/**
* 查询车辆识别码是否重复
* 查询车辆识别码是否重复
* */
* */
...
@@ -59,4 +51,10 @@ public interface SampleManagementMapper extends BaseMapper<Sample> {
...
@@ -59,4 +51,10 @@ public interface SampleManagementMapper extends BaseMapper<Sample> {
* 查询样品编号是否重复
* 查询样品编号是否重复
* */
* */
public
int
selectSampleNumberCount
(
Sample
sampleManagement
);
public
int
selectSampleNumberCount
(
Sample
sampleManagement
);
/**
* 根据车辆识别码和样品编号查询样品信息
* */
public
List
<
Sample
>
selectSampleList
(
SampleManagementRequest
sampleManagementRequest
);
}
}
quality-review/src/main/java/com/ruoyi/service/SampleManagementService.java
View file @
b04916e3
...
@@ -47,10 +47,7 @@ public interface SampleManagementService extends IService<Sample>
...
@@ -47,10 +47,7 @@ public interface SampleManagementService extends IService<Sample>
public
int
updateSampleManagement
(
Sample
tSampleManagement
);
public
int
updateSampleManagement
(
Sample
tSampleManagement
);
/**
/**
* 删除样品管理信息
* 根据车辆识别码和样品编号查询样品信息
*
* */
* @param id 样品管理主键
public
List
<
Sample
>
selectSampleList
(
SampleManagementRequest
sampleManagementRequest
);
* @return 结果
*/
public
int
deleteSampleManagementById
(
Long
id
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/SampleManagementServiceImpl.java
View file @
b04916e3
...
@@ -99,15 +99,11 @@ public class SampleManagementServiceImpl extends ServiceImpl<SampleManagementMap
...
@@ -99,15 +99,11 @@ public class SampleManagementServiceImpl extends ServiceImpl<SampleManagementMap
return
sampleManagementMapper
.
updateSampleManagement
(
sampleManagement
);
return
sampleManagementMapper
.
updateSampleManagement
(
sampleManagement
);
}
}
/**
/**
* 删除样品管理信息
* 根据车辆识别码和样品编号查询样品信息
* @param id 样品管理主键
* */
* @return 结果
*/
@Override
@Override
public
int
deleteSampleManagementById
(
Long
id
)
public
List
<
Sample
>
selectSampleList
(
SampleManagementRequest
sampleManagementRequest
){
{
return
sampleManagementMapper
.
selectSampleList
(
sampleManagementRequest
);
return
sampleManagementMapper
.
deleteSampleManagementById
(
id
);
}
}
}
}
quality-review/src/main/java/com/ruoyi/web/SampleManagementController.java
View file @
b04916e3
...
@@ -98,6 +98,14 @@ public class SampleManagementController extends BaseController
...
@@ -98,6 +98,14 @@ public class SampleManagementController extends BaseController
@PostMapping
(
"/del"
)
@PostMapping
(
"/del"
)
public
AjaxResult
remove
(
@Validated
@RequestBody
SampleManagementGetInfoRequest
request
)
public
AjaxResult
remove
(
@Validated
@RequestBody
SampleManagementGetInfoRequest
request
)
{
{
return
toAjax
(
sampleManagementService
.
deleteSampleManagementById
(
request
.
getId
()));
return
toAjax
(
sampleManagementService
.
removeById
(
request
.
getId
()));
}
@ApiOperation
(
"样品信息下拉框/识别码和编号条件查询"
)
@Trace
@Tags
({
@Tag
(
key
=
"param"
,
value
=
"arg[0]"
),
@Tag
(
key
=
"result"
,
value
=
"returnedObj"
)})
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sampleList"
)
public
R
<
List
<
Sample
>>
selectSampleList
(
@Validated
@RequestBody
SampleManagementRequest
request
){
return
R
.
ok
(
sampleManagementService
.
selectSampleList
(
request
));
}
}
}
}
quality-review/src/main/resources/mapper/SampleManagementMapper.xml
View file @
b04916e3
...
@@ -59,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -59,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"identificationCode != null and identificationCode != ''"
>
and sm.identification_code like concat('%', #{identificationCode}, '%')
</if>
<if
test=
"identificationCode != null and identificationCode != ''"
>
and sm.identification_code like concat('%', #{identificationCode}, '%')
</if>
<if
test=
"sampleNumber != null and sampleNumber != ''"
>
and sm.sample_number like concat('%', #{sampleNumber}, '%')
</if>
<if
test=
"sampleNumber != null and sampleNumber != ''"
>
and sm.sample_number like concat('%', #{sampleNumber}, '%')
</if>
<if
test=
"sampleName != null and sampleName != ''"
>
and sm.sample_name like concat('%', #{sampleName}, '%')
</if>
<if
test=
"sampleName != null and sampleName != ''"
>
and sm.sample_name like concat('%', #{sampleName}, '%')
</if>
<if
test=
"flag != null and flag != ''"
>
sm.flag = #{flag}
</if>
<if
test=
"flag != null and flag != ''"
>
and
sm.flag = #{flag}
</if>
</where>
</where>
</select>
</select>
...
@@ -136,11 +136,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -136,11 +136,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
where id = #{id}
</update>
</update>
<delete
id=
"deleteSampleManagementById"
parameterType=
"Long"
>
update t_sample set deleted = 1
where id = #{id}
</delete>
<select
id=
"selectIdentificationCodeCount"
parameterType=
"com.ruoyi.domain.Sample"
resultType=
"integer"
>
<select
id=
"selectIdentificationCodeCount"
parameterType=
"com.ruoyi.domain.Sample"
resultType=
"integer"
>
select count(id) from t_sample
select count(id) from t_sample
<where>
<where>
...
@@ -160,4 +155,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -160,4 +155,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"id != null and id != ''"
>
and id != #{id}
</if>
<if
test=
"id != null and id != ''"
>
and id != #{id}
</if>
</where>
</where>
</select>
</select>
<select
id=
"selectSampleList"
parameterType=
"com.ruoyi.domain.Sample"
resultMap=
"SampleManagementResult"
>
<include
refid=
"selectTSampleManagementVo"
/>
<where>
sm.deleted = 0
<if
test=
"identificationCode != null and identificationCode != ''"
>
and sm.identification_code = #{identificationCode}
</if>
<if
test=
"sampleNumber != null and sampleNumber != ''"
>
and sm.sample_number = #{sampleNumber}
</if>
<if
test=
"flag != null and flag != ''"
>
and sm.flag = #{flag}
</if>
</where>
</select>
</mapper>
</mapper>
\ No newline at end of file
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