Пример #1
0
 @Override
 public List<DivFtDtl> findByFactorNoAndRangeNos(String factorNo, String[] rangeNos) {
   SearchSetting search = createSearchTemplete();
   search.addSearchModeParameters(SearchMode.EQUALS, "factorNo", factorNo);
   search.addSearchModeParameters(SearchMode.EQUALS, "rangeNo", rangeNos);
   search.setFirstResult(0).setMaxResults(Integer.MAX_VALUE);
   search.addOrderBy("rangeNo");
   return find(search);
 }
Пример #2
0
 @HandlerType(HandlerTypeEnum.GRID)
 public BeanGridResult queryAllUserStatus(SearchSetting search, Request params) {
   search.addOrderBy("codeValue", false);
   search.addSearchModeParameters(SearchMode.EQUALS, "codeType", "userStatus");
   search.addSearchModeParameters(
       SearchMode.EQUALS,
       "locale",
       ((Locale) SimpleContextHolder.get(CapWebUtil.localeKey)).toString());
   Page<CodeType> page = commonService.findPage(CodeType.class, search);
   return new BeanGridResult(page.getContent(), page.getTotalRow(), null);
 }
Пример #3
0
 @Override
 public DivFtDtl findByFactorNo(String factorNo) {
   SearchSetting search = createSearchTemplete();
   search.addSearchModeParameters(SearchMode.EQUALS, "factorNo", factorNo);
   return findUniqueOrNone(search);
 }