接口联调

This commit is contained in:
mashuai 2024-09-23 13:20:35 +08:00
parent c293523952
commit 7f0c0e8462
3 changed files with 14 additions and 2 deletions

View File

@ -43,4 +43,11 @@ public interface TbBdDeviceRecordMapper {
* @return
*/
List<TbBdDeviceVo> getDeviceList(TbBdDeviceVo tbBdDeviceVo);
/**
* 删除边带设备管理信息
* @param id
* @return
*/
int deleteById(Long id);
}

View File

@ -45,7 +45,7 @@ public class TbBdRecordServiceImpl implements TbBdRecordService{
//先清除设备绑定记录id在进行删除
int result = 0;
//根据前端传入的id删除设备绑定记录
result += tbBdDeviceRecordMapper.updateById(id);
result += tbBdDeviceRecordMapper.deleteById(id);
result += tbBdRecordMapper.deleteByPrimaryKey(id);
if (result > 0) {
return AjaxResult.success(ExceptionEnum.SUCCESS.getMsg(), result);
@ -138,7 +138,7 @@ public class TbBdRecordServiceImpl implements TbBdRecordService{
}
int result = 0;
//根据前端传入的id删除设备绑定记录
result += tbBdDeviceRecordMapper.updateById(record.getId());
result += tbBdDeviceRecordMapper.deleteById(record.getId());
//插入前对手机号进行sm4加密
record.setRelPhone(Sm4Utils.encode(record.getRelPhone()));
//初始状态赋值待审核

View File

@ -182,12 +182,14 @@
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateById">
<!--@mbg.generated-->
update tb_bd_device_record
set record_id = null
where record_id = #{id}
</update>
<delete id="deleteByPrimaryKeyIn">
<!--@mbg.generated-->
delete from tb_bd_device_record where id in
@ -196,6 +198,9 @@
</foreach>
</delete>
<delete id="deleteById">
delete from tb_bd_device_record where record_id = #{id}
</delete>
<select id="selectByName" resultType="com.bonus.base.domain.TbBdDeviceRecord">