|
@ -2,8 +2,10 @@ package com.yihu.wlyy.sign.service;
|
|
|
|
|
|
import com.yihu.wlyy.sign.common.util.StringUtil;
|
|
|
import com.yihu.wlyy.sign.dao.HttpLogDao;
|
|
|
import com.yihu.wlyy.sign.dao.HttpLogDetailDao;
|
|
|
import com.yihu.wlyy.sign.dao.SignFamilyLogDao;
|
|
|
import com.yihu.wlyy.sign.entity.HttpLog;
|
|
|
import com.yihu.wlyy.sign.entity.HttpLogDetail;
|
|
|
import com.yihu.wlyy.sign.entity.SignFamilyLog;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@ -19,10 +21,10 @@ public class LogService {
|
|
|
|
|
|
@Autowired
|
|
|
private HttpLogDao httpLogDao;
|
|
|
|
|
|
@Autowired
|
|
|
private HttpLogDetailDao httpLogDetailDao;
|
|
|
@Autowired
|
|
|
private SignFamilyLogDao signFamilyLogDao;
|
|
|
|
|
|
@Autowired
|
|
|
private SystemDictService systemDictService;
|
|
|
|
|
@ -40,10 +42,18 @@ public class LogService {
|
|
|
log.setParams(params);
|
|
|
log.setCreateTime(new Date());
|
|
|
log.setCreateTime(new Date());
|
|
|
log.setResponse(response);
|
|
|
log.setError(error);
|
|
|
// log.setResponse(response);
|
|
|
// log.setError(error);
|
|
|
log.setStatus(isSuccess?"1":"0");
|
|
|
httpLogDao.save(log);
|
|
|
|
|
|
//明细表
|
|
|
HttpLogDetail detail = new HttpLogDetail();
|
|
|
detail.setCode(log.getId());
|
|
|
detail.setCreateTime(new Date());
|
|
|
detail.setResponse(response);
|
|
|
detail.setError(error);
|
|
|
httpLogDetailDao.save(detail);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@ -76,10 +86,18 @@ public class LogService {
|
|
|
log.setHeader(header);
|
|
|
log.setParams(params);
|
|
|
log.setCreateTime(new Date());
|
|
|
log.setResponse(response);
|
|
|
log.setError(error);
|
|
|
// log.setResponse(response);
|
|
|
// log.setError(error);
|
|
|
log.setStatus(isSuccess?"1":"0");
|
|
|
httpLogDao.save(log);
|
|
|
|
|
|
//明细表
|
|
|
HttpLogDetail detail = new HttpLogDetail();
|
|
|
detail.setCode(log.getId());
|
|
|
detail.setCreateTime(new Date());
|
|
|
detail.setResponse(response);
|
|
|
detail.setError(error);
|
|
|
httpLogDetailDao.save(detail);
|
|
|
}
|
|
|
}
|
|
|
catch (Exception ex)
|