|  |  | 
 |  |  | import com.doumee.core.model.PageWrap; | 
 |  |  | import com.doumee.core.utils.Utils; | 
 |  |  | import com.doumee.dao.business.IamInterfaceLogMapper; | 
 |  |  | import com.doumee.dao.business.model.CustomerLog; | 
 |  |  | import com.doumee.dao.business.model.IamInterfaceLog; | 
 |  |  | import com.doumee.dao.business.model.InterfaceLog; | 
 |  |  | import com.doumee.service.business.IamInterfaceLogService; | 
 |  |  | 
 |  |  |         if (pageWrap.getModel().getQueryEndDate() != null) { | 
 |  |  |             queryWrapper.lambda().le(IamInterfaceLog::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getQueryEndDate())); | 
 |  |  |         } | 
 |  |  |         for(PageWrap.SortData sortData: pageWrap.getSorts()) { | 
 |  |  |             if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { | 
 |  |  |                 queryWrapper.orderByDesc(sortData.getProperty()); | 
 |  |  |             } else { | 
 |  |  |                 queryWrapper.orderByAsc(sortData.getProperty()); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         queryWrapper.lambda().orderByDesc(IamInterfaceLog::getCreateDate); | 
 |  |  |         return PageData.from(iamInterfaceLogMapper.selectPage(page, queryWrapper)); | 
 |  |  |     } | 
 |  |  |  |