Commit 1b1194ea authored by 高滢's avatar 高滢

样品管理 逻辑删除修改

parent 2722224b
......@@ -42,14 +42,6 @@ public interface SampleManagementMapper extends BaseMapper<Sample> {
*/
public int updateSampleManagement(Sample tSampleManagement);
/**
* 删除样品管理
*
* @param id 样品管理主键
* @return 结果
*/
public int deleteSampleManagementById(Long id);
/**
* 查询车辆识别码是否重复
* */
......
......@@ -45,12 +45,4 @@ public interface SampleManagementService extends IService<Sample>
* @return 结果
*/
public int updateSampleManagement(Sample tSampleManagement);
/**
* 删除样品管理信息
*
* @param id 样品管理主键
* @return 结果
*/
public int deleteSampleManagementById(Long id);
}
......@@ -98,16 +98,4 @@ public class SampleManagementServiceImpl extends ServiceImpl<SampleManagementMap
sampleManagement.setUpdateTime(DateUtils.getNowDate());
return sampleManagementMapper.updateSampleManagement(sampleManagement);
}
/**
* 删除样品管理信息
* @param id 样品管理主键
* @return 结果
*/
@Override
public int deleteSampleManagementById(Long id)
{
return sampleManagementMapper.deleteSampleManagementById(id);
}
}
......@@ -98,6 +98,6 @@ public class SampleManagementController extends BaseController
@PostMapping ("/del")
public AjaxResult remove(@Validated @RequestBody SampleManagementGetInfoRequest request)
{
return toAjax(sampleManagementService.deleteSampleManagementById(request.getId()));
return toAjax(sampleManagementService.removeById(request.getId()));
}
}
......@@ -136,11 +136,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id}
</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 count(id) from t_sample
<where>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment