| | |
| | | import com.whyc.constant.OperationLogEnum; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.mapper.OperationLogMapper; |
| | | import com.whyc.pojo.OperationLog; |
| | | import com.whyc.pojo.UserInf; |
| | | import com.whyc.pojo.db_user.OperationLog; |
| | | import com.whyc.pojo.db_user.UserInf; |
| | | import com.whyc.util.HttpUtil; |
| | | import com.whyc.util.UserUtil; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | log.setIp(HttpUtil.getRequest().getRemoteAddr()); |
| | | log.setCreateTime(new Date()); |
| | | mapper.insert(log); |
| | | System.out.println(log); |
| | | } |
| | | |
| | | public void record(Integer type1, Integer type2, String msg, String detail,String remoteIp) { |