|  |  | 
 |  |  |             JSONObject job_param = (JSONObject) JSON.toJSON(param); | 
 |  |  |             JSONObject job_data = job_response.getJSONObject("content").getJSONObject("data"); | 
 |  |  |             if(!job_data.getBoolean("success")) { | 
 |  |  |                 // 开关阀失败 | 
 |  |  |                 // 开关阀失败,更新命令执行状态及虚拟卡状态 | 
 |  |  |  | 
 |  |  |                 rmCommandHistory = new RmCommandHistory(); | 
 |  |  |                 rmCommandHistory.setComId(comId); | 
 |  |  |                 rmCommandHistory.setResult((byte) 0); | 
 |  |  |                 rmCommandHistoryMapper.updateByPrimaryKeySelective(rmCommandHistory); | 
 |  |  |  | 
 |  |  |                 // 开阀失败则解除占用,关阀失败则占用 | 
 |  |  |                 if (comType != null) { | 
 |  |  | 
 |  |  |                 response_CallBack.setMsg(CommandResultCode.OPEN_CLOSE_FAIL.getMessage()); | 
 |  |  |                 response_CallBack.setSuccess(false); | 
 |  |  |             }else { | 
 |  |  |                 // 开关阀成功 | 
 |  |  |                 // 开关阀成功,更新命令执行状态及虚拟卡状态 | 
 |  |  |  | 
 |  |  |                 rmCommandHistory = new RmCommandHistory(); | 
 |  |  |                 rmCommandHistory.setComId(comId); | 
 |  |  |                 rmCommandHistory.setResult((byte) 1); | 
 |  |  |                 rmCommandHistoryMapper.updateByPrimaryKeySelective(rmCommandHistory); | 
 |  |  |  | 
 |  |  |                 // 开阀成功则占用,关阀成功不占用 | 
 |  |  |                 if (comType != null) { |