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
1b1194ea
Commit
1b1194ea
authored
Jan 30, 2024
by
高滢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样品管理 逻辑删除修改
parent
2722224b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
34 deletions
+1
-34
SampleManagementMapper.java
...rc/main/java/com/ruoyi/mapper/SampleManagementMapper.java
+0
-8
SampleManagementService.java
.../main/java/com/ruoyi/service/SampleManagementService.java
+0
-8
SampleManagementServiceImpl.java
...a/com/ruoyi/service/impl/SampleManagementServiceImpl.java
+0
-12
SampleManagementController.java
...c/main/java/com/ruoyi/web/SampleManagementController.java
+1
-1
SampleManagementMapper.xml
...view/src/main/resources/mapper/SampleManagementMapper.xml
+0
-5
No files found.
quality-review/src/main/java/com/ruoyi/mapper/SampleManagementMapper.java
View file @
1b1194ea
...
@@ -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
);
/**
/**
* 查询车辆识别码是否重复
* 查询车辆识别码是否重复
* */
* */
...
...
quality-review/src/main/java/com/ruoyi/service/SampleManagementService.java
View file @
1b1194ea
...
@@ -45,12 +45,4 @@ public interface SampleManagementService extends IService<Sample>
...
@@ -45,12 +45,4 @@ public interface SampleManagementService extends IService<Sample>
* @return 结果
* @return 结果
*/
*/
public
int
updateSampleManagement
(
Sample
tSampleManagement
);
public
int
updateSampleManagement
(
Sample
tSampleManagement
);
/**
* 删除样品管理信息
*
* @param id 样品管理主键
* @return 结果
*/
public
int
deleteSampleManagementById
(
Long
id
);
}
}
quality-review/src/main/java/com/ruoyi/service/impl/SampleManagementServiceImpl.java
View file @
1b1194ea
...
@@ -98,16 +98,4 @@ public class SampleManagementServiceImpl extends ServiceImpl<SampleManagementMap
...
@@ -98,16 +98,4 @@ public class SampleManagementServiceImpl extends ServiceImpl<SampleManagementMap
sampleManagement
.
setUpdateTime
(
DateUtils
.
getNowDate
());
sampleManagement
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
sampleManagementMapper
.
updateSampleManagement
(
sampleManagement
);
return
sampleManagementMapper
.
updateSampleManagement
(
sampleManagement
);
}
}
/**
* 删除样品管理信息
* @param id 样品管理主键
* @return 结果
*/
@Override
public
int
deleteSampleManagementById
(
Long
id
)
{
return
sampleManagementMapper
.
deleteSampleManagementById
(
id
);
}
}
}
quality-review/src/main/java/com/ruoyi/web/SampleManagementController.java
View file @
1b1194ea
...
@@ -98,6 +98,6 @@ public class SampleManagementController extends BaseController
...
@@ -98,6 +98,6 @@ 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
.
deleteSampleManagement
ById
(
request
.
getId
()));
return
toAjax
(
sampleManagementService
.
remove
ById
(
request
.
getId
()));
}
}
}
}
quality-review/src/main/resources/mapper/SampleManagementMapper.xml
View file @
1b1194ea
...
@@ -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>
...
...
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