package com.mandi.fendan.util;
|
|
import java.util.concurrent.Callable;
|
|
import com.google.gson.JsonObject;
|
import com.mandi.common.JSONobj;
|
import com.mandi.common.Wxhtmethod;
|
import com.mandi.common.ParamFileter.Fileoperation;
|
import com.mandi.dao.common.ObjectResult;
|
|
public class PostYKTTask implements Callable<ObjectResult<Boolean>>{
|
|
private String joStr;
|
|
|
|
public PostYKTTask(String joStr) {
|
super();
|
this.joStr = joStr;
|
}
|
|
@Override
|
public ObjectResult<Boolean> call() throws Exception {
|
ObjectResult<Boolean> orr=new ObjectResult<Boolean>();
|
Fileoperation.AppendContentToFile(Fileoperation.gettestFileName(), "取消配车删除业务单 请求参数 ::" + joStr);
|
JsonObject pfob = Wxhtmethod.postJsonStr(Contants.YKTdelYwd_url, joStr);
|
Fileoperation.AppendContentToFile(Fileoperation.gettestFileName(), "取消配车删除业务单 返回值 ::" + pfob);
|
int code = JSONobj.getint(pfob, "code");
|
if (code != 0) {
|
orr.setCode(0);
|
orr.setErrmsg(JSONobj.getstring(pfob, "errmsg"));
|
return orr;
|
}
|
orr.setCode(0);
|
orr.setItem(true);
|
return orr;
|
}
|
|
}
|