提交 b7f5515d authored 作者: linzhenjie's avatar linzhenjie

车门钥匙删除修改

上级 4f080599
......@@ -75,9 +75,12 @@ public class ShCarLockController {
public R delete(@RequestBody Map<String, Object> params){
Integer id = (Integer) params.get("id");
Integer deviceId = (Integer) params.get("deviceId");
MapUtils map = new MapUtils().put("id", id).put("device_id", deviceId);
MapUtils map = new MapUtils().put("device_id", deviceId);
if(id != null) {
map.put("id", id);
}
boolean flag = shCarLockService.removeByMap(map);
// boolean flag = shCarLockService.removeById(id);
return flag ? R.ok() : R.error("删除失败");
return R.ok();
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论