提报记录
parent
b87a5d35a7
commit
e9da423776
|
@ -63,14 +63,13 @@ public class AppPhoneRecordController {
|
|||
return success(null);
|
||||
}
|
||||
@PostMapping("delete")
|
||||
public CommonResult<Boolean> delete(@RequestBody List<PhoneRecordAdd> data){
|
||||
String result = HttpRequest.post(phoneUrl+"query/deleteReport")
|
||||
public CommonResult<Boolean> delete(@RequestBody String data){
|
||||
String result = HttpRequest.post(phoneUrl+"query/deleteReport?orderNo="+data)
|
||||
.header("token",token)
|
||||
.body(JSONObject.toJSONString(data))
|
||||
.execute()
|
||||
.body();
|
||||
JSONObject resultJson = JSONObject.parseObject(result);
|
||||
log.info("提报新增返回结果{}",JSONObject.toJSONString(resultJson));
|
||||
log.info("删除返回结果{}",JSONObject.toJSONString(resultJson));
|
||||
if("0000".equals(resultJson.get("code"))){
|
||||
return success(null);
|
||||
}
|
||||
|
|
|
@ -141,9 +141,8 @@ public class PhoneRecordServiceImpl implements PhoneRecordService {
|
|||
*/
|
||||
@Override
|
||||
public Boolean deletePhoneGear(String orderId) {
|
||||
String result = HttpRequest.post(phoneUrl+"query/deleteReport")
|
||||
String result = HttpRequest.post(phoneUrl+"query/deleteReport?orderNo="+orderId)
|
||||
.header("token",token)
|
||||
.body(JSONObject.toJSONString(orderId))
|
||||
.execute()
|
||||
.body();
|
||||
JSONObject resultJson = JSONObject.parseObject(result);
|
||||
|
|
Loading…
Reference in New Issue