| | |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.HttpsUtil; |
| | | import com.doumee.dao.business.InterfaceLogMapper; |
| | | import com.doumee.dao.business.model.InterfaceLog; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.service.business.InterfaceLogService; |
| | | import com.github.pagehelper.PageInfo; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.ibatis.session.SqlSession; |
| | | import org.apache.ibatis.session.SqlSessionFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private InterfaceLogService interfaceLogService; |
| | | |
| | | @Autowired |
| | | private SqlSessionFactory sqlSessionFactory; |
| | | public void saveInterfaceLog(Object param, String path,String result,Integer type) { |
| | | SqlSession sqlSession2 = sqlSessionFactory.openSession(true); |
| | | InterfaceLogMapper mapper2 = sqlSession2.getMapper(InterfaceLogMapper.class); |
| | | |
| | | InterfaceLog interfaceLog=new InterfaceLog(); |
| | | interfaceLog.setType(type); |
| | | interfaceLog.setCreateDate(new Date()); |
| | |
| | | interfaceLog.setRepose(result); |
| | | interfaceLog.setName(path); |
| | | interfaceLog.setUrl(path); |
| | | interfaceLogService.create(interfaceLog); |
| | | mapper2.insert(interfaceLog); |
| | | sqlSession2.commit(); |
| | | } |
| | | |
| | | |
| | |
| | | if(response!=null && response.getData()!=null && response.getData().getRecords()!=null){ |
| | | list.addAll(response.getData().getRecords()); |
| | | if(pageSize*page < response.getData().getTotal() ){ |
| | | hasLast =false;//还有下一页 |
| | | hasLast =true;//还有下一页 |
| | | } |
| | | } |
| | | page++; |