コード例 #1
0
 @Override
 public OrderMain findUniqueByOrderQueryVo(OrderQueryVo vo) {
   Map<String, Object> map = convertBeanToMap(vo);
   if (!map.containsKey("saleInfoId")
       && !map.containsKey("saleInfoName")
       && !map.containsKey("mediaName")
       && !map.containsKey("chapterNo")) {
     return this.findUniqueByParamsObjs(map);
   }
   return orderMainDao.selectOne("OrderMainMapper.getAllByOrderQuery", map);
 }
コード例 #2
0
 @Override
 public PageFinder<OrderMain> findPageFinderByOrderQueryVo(OrderQueryVo vo, Query query) {
   Map<String, Object> map = convertBeanToMap(vo);
   if (!map.containsKey("saleInfoId")
       && !map.containsKey("saleInfoName")
       && !map.containsKey("mediaName")
       && !map.containsKey("chapterNo")) {
     return this.findPageFinderObjs(map, query);
   }
   return orderMainDao.getPageFinderObjs(
       map,
       query,
       "OrderMainMapper.pageCountByOrderQuery",
       "OrderMainMapper.pageDataByOrderQuery");
 }