1。后置脚本节目
//导入json包
import org.json.*;
import com.decode.DecodeMain;
String response=prev.getResponseDataAsString();
String result = DecodeMain.DecodeUtil(response);
log.info(“获取批次账单id result:”+result);
//转换为Object对象类型
JSONObject data_obj = new JSONObject(result);
code = data_obj.get(“code”).toString();//获取状态码
billId = data_obj.get(“error”).get(“id”).toString();//获取批次id
msg = data_obj.get(“msg”).toString();//获取返回结果
vars.put(“billId”,billId);
log.info(“批次账单id:”+billId);
vars.put(“code”, code);
2、查询(数据库数据)与引用