|
|
|
@ -426,28 +426,28 @@ public class ReviewSheetServiceImpl extends EnBaseServiceImpl<ReviewSheetMapper, |
|
|
|
vofs.add(vofDTO); |
|
|
|
vofs.add(vofDTO); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
JSONObject obj = new JSONObject(); |
|
|
|
// JSONObject obj = new JSONObject();
|
|
|
|
obj.put("qmsRepairApplyDTO", dto); |
|
|
|
// obj.put("qmsRepairApplyDTO", dto);
|
|
|
|
obj.put("qmsRepairPartList", vods); |
|
|
|
// obj.put("qmsRepairPartList", vods);
|
|
|
|
obj.put("qmsRepairMalfList", vofs); |
|
|
|
// obj.put("qmsRepairMalfList", vofs);
|
|
|
|
HttpEntity<JSONObject> entity = new HttpEntity<>(obj, headers); |
|
|
|
// HttpEntity<JSONObject> entity = new HttpEntity<>(obj, headers);
|
|
|
|
ResponseEntity<JSONObject> responseEntity; |
|
|
|
// ResponseEntity<JSONObject> responseEntity;
|
|
|
|
JSONObject responseBody; |
|
|
|
// JSONObject responseBody;
|
|
|
|
try { |
|
|
|
// try {
|
|
|
|
// responseEntity = httpClientTemplate.postForEntity("http://192.168.119.68:10113" +
|
|
|
|
//// responseEntity = httpClientTemplate.postForEntity("http://192.168.119.68:10113" +
|
|
|
|
|
|
|
|
//// "/api/mms/qms/qmsrepairapply/qmsRepairApplyRest/saveQmsRepairApply/v1", entity, JSONObject.class);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// responseEntity = httpClientTemplate.postForEntity(newErpUrl +
|
|
|
|
// "/api/mms/qms/qmsrepairapply/qmsRepairApplyRest/saveQmsRepairApply/v1", entity, JSONObject.class);
|
|
|
|
// "/api/mms/qms/qmsrepairapply/qmsRepairApplyRest/saveQmsRepairApply/v1", entity, JSONObject.class);
|
|
|
|
|
|
|
|
// JSONObject result = responseEntity.getBody();
|
|
|
|
responseEntity = httpClientTemplate.postForEntity(newErpUrl + |
|
|
|
//
|
|
|
|
"/api/mms/qms/qmsrepairapply/qmsRepairApplyRest/saveQmsRepairApply/v1", entity, JSONObject.class); |
|
|
|
// responseBody = result.getJSONObject("responseBody");
|
|
|
|
JSONObject result = responseEntity.getBody(); |
|
|
|
// if (responseBody == null) {
|
|
|
|
|
|
|
|
// throw new BusinessException("审理单,接口返回值null");
|
|
|
|
responseBody = result.getJSONObject("responseBody"); |
|
|
|
// }
|
|
|
|
if (responseBody == null) { |
|
|
|
// } catch (Exception e) {
|
|
|
|
throw new BusinessException("审理单,接口返回值null"); |
|
|
|
// throw new RuntimeException("审理单,接口返回值null");
|
|
|
|
} |
|
|
|
// }
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
throw new RuntimeException("审理单,接口返回值null"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return R.success("成功"); |
|
|
|
return R.success("成功"); |
|
|
|
} |
|
|
|
} |
|
|
|
|