Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Dauda Ainoo
Added: May 16, 2021 8:20 AM
Views: 472
Tags: no tags
  1. //    @Schedule(second = "*", minute = "*/5", hour = "*", month = "*", dayOfMonth = "*", dayOfWeek = "*", year = "*", timezone = "GMT", persistent = false)
  2. ////    @Schedule(hour = "13", minute = "*", timezone = "GMT", info = "Runs 1 AM everyday", persistent = false)
  3. //    public void getPendingMerchantApplications() {
  4. //        try {
  5. //            SimpleResponse response = MerchantDAO.blockMerchantWithGracePeriodToday();
  6. //            AppLogger.printPayload(log, "blockMerchantWithGracePeriodToday response ", response);
  7. //            if (response.getRspCode().equalsIgnoreCase("00")) {
  8. //                AppLogger.info(log, "Ran blockMerchantWithGracePeriodToday schedular @ " + DateTimeUtils.formatDate(new Date(), DateTimeUtils.PATTERN_DATE_AND_TIME));
  9. //            } else {
  10. //                AppLogger.warn(log, "failed to run blockMerchantWithGracePeriodToday schedular");
  11. //            }
  12. //        } catch (Exception e) {
  13. //            AppLogger.error(log, e, "error runing blockMerchantWithGracePeriodToday");
  14. //        }
  15. //    }