// =================================================================================== // Logic // ===== protected void prepareListBox() { // ここはアプリによって色々かと by jflute ListResultBean<MemberStatus> statusList = memberStatusBhv.selectList( cb -> { cb.query().addOrderBy_DisplayOrder_Asc(); }); Map<String, String> statusMap = new LinkedHashMap<String, String>(); statusList.forEach( status -> statusMap.put(status.getMemberStatusCode(), status.getMemberStatusName())); memberStatusMap = statusMap; }
@AllowAnyoneAccess // TODO s.tadokoro Remove this when JSON Login feature is implemented. @Execute public JsonResponse<List<MypageProductResult>> index() { ListResultBean<Product> memberList = productBhv.selectList( cb -> { cb.query().addOrderBy_RegularPrice_Desc(); cb.fetchFirst(3); }); List<MypageProductResult> beans = memberList .stream() .map( member -> { return new MypageProductResult(member); }) .collect(Collectors.toList()); return asJson(beans); }