打印日志跟踪接口执行情况
This commit is contained in:
parent
3c2fbbcb6f
commit
e0905a1a6b
|
@ -1,13 +1,10 @@
|
|||
package com.hzya.frame.plugin.grp.service.impl;
|
||||
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjml.service.IOerDjmlExtService;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjml.service.IOerDjmlService;
|
||||
import com.hzya.frame.plugin.grp.service.IExpensePluginService;
|
||||
import com.hzya.frame.web.entity.BaseResult;
|
||||
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
@ -42,9 +39,12 @@ public class ExpensePluginServiceImpl implements IExpensePluginService {
|
|||
Assert.notEmpty(eventType,"eventType不能为空");
|
||||
Assert.notEmpty(headersStr,"headers不能为空");
|
||||
Assert.notEmpty(dataSouceCode,"数据源编码不能为空");
|
||||
logger.info("准备开始组装参数");
|
||||
String param = oerDjmlExtService.saveExpensePrePlugin(json);
|
||||
logger.info("OA单据组装好准备保存GRP的参数:{}",param);
|
||||
JsonResultEntity resultEntity = (JsonResultEntity) oerDjmlService.handleOerDjml(JSON.parseObject(param));
|
||||
JSONObject paramJSON = new JSONObject();
|
||||
paramJSON.put("jsonStr",param);
|
||||
JsonResultEntity resultEntity = (JsonResultEntity) oerDjmlService.handleOerDjml(paramJSON);
|
||||
logger.info("保存GRPU8响应参数:{}",JSONObject.toJSON(resultEntity));
|
||||
return resultEntity;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue