接口联调
This commit is contained in:
parent
c293523952
commit
7f0c0e8462
|
|
@ -43,4 +43,11 @@ public interface TbBdDeviceRecordMapper {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<TbBdDeviceVo> getDeviceList(TbBdDeviceVo tbBdDeviceVo);
|
List<TbBdDeviceVo> getDeviceList(TbBdDeviceVo tbBdDeviceVo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除边带设备管理信息
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
int deleteById(Long id);
|
||||||
}
|
}
|
||||||
|
|
@ -45,7 +45,7 @@ public class TbBdRecordServiceImpl implements TbBdRecordService{
|
||||||
//先清除设备绑定记录id,在进行删除
|
//先清除设备绑定记录id,在进行删除
|
||||||
int result = 0;
|
int result = 0;
|
||||||
//根据前端传入的id,删除设备绑定记录
|
//根据前端传入的id,删除设备绑定记录
|
||||||
result += tbBdDeviceRecordMapper.updateById(id);
|
result += tbBdDeviceRecordMapper.deleteById(id);
|
||||||
result += tbBdRecordMapper.deleteByPrimaryKey(id);
|
result += tbBdRecordMapper.deleteByPrimaryKey(id);
|
||||||
if (result > 0) {
|
if (result > 0) {
|
||||||
return AjaxResult.success(ExceptionEnum.SUCCESS.getMsg(), result);
|
return AjaxResult.success(ExceptionEnum.SUCCESS.getMsg(), result);
|
||||||
|
|
@ -138,7 +138,7 @@ public class TbBdRecordServiceImpl implements TbBdRecordService{
|
||||||
}
|
}
|
||||||
int result = 0;
|
int result = 0;
|
||||||
//根据前端传入的id,删除设备绑定记录
|
//根据前端传入的id,删除设备绑定记录
|
||||||
result += tbBdDeviceRecordMapper.updateById(record.getId());
|
result += tbBdDeviceRecordMapper.deleteById(record.getId());
|
||||||
//插入前对手机号进行sm4加密
|
//插入前对手机号进行sm4加密
|
||||||
record.setRelPhone(Sm4Utils.encode(record.getRelPhone()));
|
record.setRelPhone(Sm4Utils.encode(record.getRelPhone()));
|
||||||
//初始状态赋值待审核
|
//初始状态赋值待审核
|
||||||
|
|
|
||||||
|
|
@ -182,12 +182,14 @@
|
||||||
#{item.id,jdbcType=BIGINT}
|
#{item.id,jdbcType=BIGINT}
|
||||||
</foreach>
|
</foreach>
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<update id="updateById">
|
<update id="updateById">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
update tb_bd_device_record
|
update tb_bd_device_record
|
||||||
set record_id = null
|
set record_id = null
|
||||||
where record_id = #{id}
|
where record_id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<delete id="deleteByPrimaryKeyIn">
|
<delete id="deleteByPrimaryKeyIn">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
delete from tb_bd_device_record where id in
|
delete from tb_bd_device_record where id in
|
||||||
|
|
@ -196,6 +198,9 @@
|
||||||
</foreach>
|
</foreach>
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteById">
|
||||||
|
delete from tb_bd_device_record where record_id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
|
||||||
<select id="selectByName" resultType="com.bonus.base.domain.TbBdDeviceRecord">
|
<select id="selectByName" resultType="com.bonus.base.domain.TbBdDeviceRecord">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue