@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); }
@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); }
@Override public DivFtDtl findByFactorNo(String factorNo) { SearchSetting search = createSearchTemplete(); search.addSearchModeParameters(SearchMode.EQUALS, "factorNo", factorNo); return findUniqueOrNone(search); }