Commit 2ca0c53b authored by 赵啸非's avatar 赵啸非

修改设备新增等

parent 63a08e48
...@@ -162,6 +162,7 @@ public class MessageServiceImpl implements MessageService { ...@@ -162,6 +162,7 @@ public class MessageServiceImpl implements MessageService {
try { try {
Map<String, String> header = new HashMap<>(); Map<String, String> header = new HashMap<>();
header.put(HEADER_CONTENT_TYPE, "application/json"); header.put(HEADER_CONTENT_TYPE, "application/json");
log.info("thirdParty httpUrl:{} req:{}",sendUrl,JSON.toJSONString(deviceReqApiReq));
resp = HttpUtil.doPost(sendUrl, header, JSON.toJSONString(deviceReqApiReq)); resp = HttpUtil.doPost(sendUrl, header, JSON.toJSONString(deviceReqApiReq));
return JSON.parseObject(resp, ApiResp.class); return JSON.parseObject(resp, ApiResp.class);
} catch (Exception e) { } catch (Exception e) {
......
...@@ -165,6 +165,12 @@ public class DeviceController extends BaseCRUDJsonMappingController<DeviceServic ...@@ -165,6 +165,12 @@ public class DeviceController extends BaseCRUDJsonMappingController<DeviceServic
return jsonObject.toJSONString(); return jsonObject.toJSONString();
} }
@Override
protected int saveAfter(HttpServletRequest request, HttpServletResponse response, DeviceForm form, Map<String, Object> model, Context context) throws AppException {
return super.saveAfter(request, response, form, model, context);
}
/** /**
* 设备激活 * 设备激活
......
...@@ -91,8 +91,8 @@ Content-Type: application/json ...@@ -91,8 +91,8 @@ Content-Type: application/json
{ {
"receiveMethod": 1, "receiveMethod": 1,
"deviceName": "测试接口创建设备2", "deviceName": "测试接口创建设备3",
"deviceCode": "A1:12:23:12:23:1122", "deviceCode": "A1:12:23:12:23:1123",
"siteId": 123, "siteId": 123,
"siteCode": "adfasfdasfdasf", "siteCode": "adfasfdasfdasf",
"siteName": "测试站点", "siteName": "测试站点",
......
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