Compare commits

..

2 Commits

2 changed files with 4 additions and 6 deletions

View File

@ -63,14 +63,13 @@ public class AppPhoneRecordController {
return success(null); return success(null);
} }
@PostMapping("delete") @PostMapping("delete")
public CommonResult<Boolean> delete(@RequestBody List<PhoneRecordAdd> data){ public CommonResult<Boolean> delete(@RequestBody String data){
String result = HttpRequest.post(phoneUrl+"query/deleteReport") String result = HttpRequest.post(phoneUrl+"query/deleteReport?orderNo="+data)
.header("token",token) .header("token",token)
.body(JSONObject.toJSONString(data))
.execute() .execute()
.body(); .body();
JSONObject resultJson = JSONObject.parseObject(result); JSONObject resultJson = JSONObject.parseObject(result);
log.info("提报新增返回结果{}",JSONObject.toJSONString(resultJson)); log.info("删除返回结果{}",JSONObject.toJSONString(resultJson));
if("0000".equals(resultJson.get("code"))){ if("0000".equals(resultJson.get("code"))){
return success(null); return success(null);
} }

View File

@ -141,9 +141,8 @@ public class PhoneRecordServiceImpl implements PhoneRecordService {
*/ */
@Override @Override
public Boolean deletePhoneGear(String orderId) { public Boolean deletePhoneGear(String orderId) {
String result = HttpRequest.post(phoneUrl+"query/deleteReport") String result = HttpRequest.post(phoneUrl+"query/deleteReport?orderNo="+orderId)
.header("token",token) .header("token",token)
.body(JSONObject.toJSONString(orderId))
.execute() .execute()
.body(); .body();
JSONObject resultJson = JSONObject.parseObject(result); JSONObject resultJson = JSONObject.parseObject(result);