| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.context.request.RequestContextHolder; |
| | | import org.springframework.web.context.request.ServletRequestAttributes; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | |
| | | public class LogUtils { |
| | | |
| | | @Autowired |
| | | public ManageLogMapper manageLogMapper; |
| | | private ManageLogMapper manageLogMapper; |
| | | |
| | | public void saveOperationForManage(String content,String type){ |
| | | HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); |
| | | saveOperationForManage(request,content,type); |
| | | } |
| | | |
| | | /** |
| | | * @Description: 通用插入日志 |