提交 | 用户 | 时间
|
58d006
|
1 |
package com.mandi.fendan.util; |
A |
2 |
|
|
3 |
import java.util.concurrent.Callable; |
|
4 |
|
|
5 |
import com.google.gson.JsonObject; |
|
6 |
import com.mandi.common.JSONobj; |
|
7 |
import com.mandi.common.Wxhtmethod; |
|
8 |
import com.mandi.common.ParamFileter.Fileoperation; |
|
9 |
import com.mandi.dao.common.ObjectResult; |
|
10 |
|
|
11 |
public class PostYKTTask implements Callable<ObjectResult<Boolean>>{ |
|
12 |
|
|
13 |
private String joStr; |
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
public PostYKTTask(String joStr) { |
|
18 |
super(); |
|
19 |
this.joStr = joStr; |
|
20 |
} |
|
21 |
|
|
22 |
@Override |
|
23 |
public ObjectResult<Boolean> call() throws Exception { |
|
24 |
ObjectResult<Boolean> orr=new ObjectResult<Boolean>(); |
|
25 |
Fileoperation.AppendContentToFile(Fileoperation.gettestFileName(), "取消配车删除业务单 请求参数 ::" + joStr); |
|
26 |
JsonObject pfob = Wxhtmethod.postJsonStr(Contants.YKTdelYwd_url, joStr); |
|
27 |
Fileoperation.AppendContentToFile(Fileoperation.gettestFileName(), "取消配车删除业务单 返回值 ::" + pfob); |
|
28 |
int code = JSONobj.getint(pfob, "code"); |
|
29 |
if (code != 0) { |
|
30 |
orr.setCode(0); |
|
31 |
orr.setErrmsg(JSONobj.getstring(pfob, "errmsg")); |
|
32 |
return orr; |
|
33 |
} |
|
34 |
orr.setCode(0); |
|
35 |
orr.setItem(true); |
|
36 |
return orr; |
|
37 |
} |
|
38 |
|
|
39 |
} |