Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void serveRequest(AbstractBusinessLogicHandler.InputWrapper inWrapper, AbstractBusinessLogicHandler.OutputWrapper outWrapper, AbstractBusinessLogicHandler.ValidateInputResult vir) throws ApplicationException
- {
- try
- {
- InputWrapper inputWrapper = (InputWrapper) inWrapper;
- OutputWrapper outputWrapper = (OutputWrapper) outWrapper;
- DateTime startDate = (DateTime) date.clone();
- DateTimeUtils.setTimeToStartOfDay(startDate);
- DateTime endDate = (DateTime) date.clone();
- DateTimeUtils.setTimeToEndOfDay(endDate);
- VoucherDAO voucherDAO = getDAO(VoucherDAO.class);
- VoucherQBEEntity voucherQBE = new VoucherQBEEntity();
- //????????????????????????????????????????????????????????????????????????????????????????????????????????????
- Voucher voucher = voucherQBE.fieldCreateDate().setBetween(startDate, endDate);
- LinkedList<Voucher> voucherList = voucherDAO.queryByExample(voucher);
- //????????????????????????????????????????????????????????????????????????????????????????????????????????????
- ///////////////////////////////////////////////////
- // extract unique deal ids from list of vouchers //
- ///////////////////////////////////////////////////
- Set<Integer> uniqueDealIds = new Set<Integer>();
- for(Voucher voucher : voucherList)
- {
- uniqueDealIds.add(voucher.getDealId());
- }
- }
- catch(Exception e)
- {
- throw(new ApplicationException("Error in BLH.", e));
- }
- }
Add Comment
Please, Sign In to add comment