打印日志

This commit is contained in:
xiang2lin 2025-03-18 16:12:12 +08:00
parent a5d880c5ec
commit 584d9fceb2
1 changed files with 4 additions and 0 deletions

View File

@ -130,11 +130,13 @@ public class OerDjmlExtServiceImpl implements IOerDjmlExtService {
@Override
public String saveExpensePrePlugin(JSONObject jsonObject) {
if (null != jsonObject){
logger.info("进入保存去方法:{}",jsonObject.toString());
JSONObject jsonStr = jsonObject.getJSONObject("jsonStr");
JSONObject bodyObj = jsonStr.getJSONObject("businessDataStr");
Map<String, String> headers = JSON.parseObject(jsonObject.getString("headers"), new HashMap<String, String>().getClass());
String dataSourceCode = jsonObject.getString("apiDataSourceCode");
String res = oerValuOf(jsonStr, headers, dataSourceCode);
logger.info("保存前方法返回值:{}",res);
return res;
}
return null;
@ -149,6 +151,7 @@ public class OerDjmlExtServiceImpl implements IOerDjmlExtService {
*/
private String oerValuOf(JSONObject jsonStr,Map<String, String> headers,String dataSourceCode){
if (null != jsonStr && null != headers && !headers.isEmpty()){
logger.info("进入oerValueOf方法");
String formmainTableName = headers.get("formmainTableName");
String forsonTableName = headers.get("forsonTableName");
String djlx = headers.get("djlx");
@ -168,6 +171,7 @@ public class OerDjmlExtServiceImpl implements IOerDjmlExtService {
JSONArray forsonData = seeyonData.getJSONArray(forsonTableName);
String res = "";
if (DjlxEnum.TRAVEL.type.equals(djlx)) {
logger.info("准备组装差旅报销单参数");
//差旅报销 travel
res = travel(headers,eventType,summaryId,dataSourceCode,formmainData,forsonData);
}else if(DjlxEnum.EXPENSE.type.equals(djlx)){