|
|
@@ -9,6 +9,7 @@ import com.jdy.v7sdk.business.models.errorInfo;
|
|
|
import com.jdy.v7sdk.models.AccountGroupRequest;
|
|
|
import com.github.kevinsawicki.http.HttpRequest;
|
|
|
import lombok.Data;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.poi.ss.formula.functions.T;
|
|
|
import org.springblade.finance.TokenRequestQuery;
|
|
|
import org.springblade.finance.vojo.JDYitems;
|
|
|
@@ -19,6 +20,7 @@ import java.util.List;
|
|
|
/**
|
|
|
* 金蝶测试demo, 如果需要正式的,则需要替换
|
|
|
* */
|
|
|
+@Slf4j
|
|
|
public class JdyTool
|
|
|
{
|
|
|
|
|
|
@@ -93,8 +95,12 @@ public class JdyTool
|
|
|
|
|
|
|
|
|
String body = httpRequest.body().toString();
|
|
|
+ log.info("请求结果:"+body);
|
|
|
//获取返回对象
|
|
|
JDYSaveResponse saveResponse = JSONObject.parseObject(body, JDYSaveResponse.class);
|
|
|
+ log.info("请求结果结果:"+saveResponse.getSuccess());
|
|
|
+ log.info("请求结果状态码:"+saveResponse.getErrorCode());
|
|
|
+ /*log.info("请求返回体:"+saveResponse.toString());*/
|
|
|
//获取主表id
|
|
|
List<String> successPkIds = saveResponse.getData().get(0).getSuccessPkIds();
|
|
|
/*System.out.println("请求body===="+httpRequest.body().toString());
|