打印日志跟踪
This commit is contained in:
parent
f84c0a37bf
commit
bf4d9f2e19
|
@ -1,11 +1,14 @@
|
|||
package com.hzya.frame.plugin.grp.service.impl;
|
||||
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.grpU8.nxproof.oerdjml.entity.OerDjmlEntity;
|
||||
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.JsonResultEntity;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -41,7 +44,15 @@ public class ExpensePluginServiceImpl implements IExpensePluginService {
|
|||
Assert.notEmpty(dataSouceCode,"数据源编码不能为空");
|
||||
logger.info("准备开始组装参数");
|
||||
String param = oerDjmlExtService.saveExpensePrePlugin(json);
|
||||
logger.info("OA单据组装好准备保存GRP的参数:{}",param);
|
||||
logger.info("准备过滤fileInfo参数66666");
|
||||
//这里为了方便打印参数,排除掉参数里的fileInfoList ,这个字段比较大,打印日志会卡死
|
||||
String paramNew = new String(param);
|
||||
OerDjmlEntity oerDjmlEntity = JSON.parseObject(paramNew, OerDjmlEntity.class);
|
||||
if (null != oerDjmlEntity && CollectionUtils.isNotEmpty(oerDjmlEntity.getFileInfoList())){
|
||||
oerDjmlEntity.setFileInfoList(null);
|
||||
}
|
||||
logger.info("过滤fileInfo参数完成77777");
|
||||
logger.info("OA单据组装好准备保存GRP的参数:{}",JSONObject.toJSON(oerDjmlEntity));
|
||||
JSONObject paramJSON = new JSONObject();
|
||||
paramJSON.put("jsonStr",param);
|
||||
JsonResultEntity resultEntity = (JsonResultEntity) oerDjmlService.handleOerDjml(paramJSON);
|
||||
|
|
Loading…
Reference in New Issue