Example #1
0
 /**
  * 获取一个小时内发送的记录数
  *
  * @param ruleReq
  * @return
  */
 private int getOneDaySendCount(RuleRequest ruleReq) {
   TaskMapper taskMapper = SpringBeanUtil.getInstance().getBean(TaskMapper.class);
   Map map = new HashMap();
   map.put("mobileNum", ruleReq.getIssueSendRequestSet().getIssueSender().getMobileNum());
   map.put("nottype", TaskTypeConst.TASK_TYPE_ADVERTISEMENT);
   map.put(
       "statusArr",
       new String[] {TaskStatusConst.TASK_STATUS_ASSIGNED, TaskStatusConst.TASK_STATUS_SUCCESSED});
   map.put("oneday", DateUtil.formatToday("yyyyMMdd"));
   int statCount = taskMapper.statCount(map);
   return statCount;
 }
Example #2
0
 public List<NotifyRecords> needToNote() {
   NotifyRecordsMapper nrmDao = SpringBeanUtil.getInstance().getBean(NotifyRecordsMapper.class);
   List<NotifyRecords> nrs = nrmDao.selectNeedNotifyRecords();
   return nrs;
 }