Esempio n. 1
0
 /**
  * 查询司机信息列表
  *
  * @author:wjl
  */
 @Override
 protected String execMethod() throws Exception {
   logger.debug("query driverUserInfo list start");
   if (getSessionUser() == null) {
     sendResponseMessage("login");
     return SUCCESS;
   }
   driverUserInfoService.queryDriverUserTransactionInfoList(driverUserInfoDomain);
   return SUCCESS;
 }
Esempio n. 2
0
 /**
  * 审核司机信息
  *
  * @author:wjl
  * @time:2013-04-16 11:15:00
  */
 @Override
 protected String execMethod() throws Exception {
   logger.debug("save driverUserInfo start");
   if (getSessionUser() == null) {
     sendResponseMessage("loginMx");
     return SUCCESS;
   }
   if (driverUserInfoDomain == null) {
     sendResponseMessage("没有可推送的司机,不能发送");
   }
   String description = "提交认证获取更多推荐机会。";
   String title = "【快到网】提醒您!";
   List<String> codeList = new ArrayList<String>(); // 保存要发送推送的手机号列表
   driverUserInfoDomain.setIsPushAll("0");
   driverUserInfoService.auditDriverUserInfoList(driverUserInfoDomain);
   for (DriverUserInfoDomain domain : driverUserInfoDomain.getDataList()) {
     // 开启线程
     if (StringUtils.isNotBlank(domain.getBaiduUserId())
         || StringUtils.isNotBlank(domain.getBaiduChannelId())) {
       // new push(domain.getBaiduUserId(),domain.getBaiduChannelId(),title,description).start();
       codeList.add(domain.getCode());
     }
   }
   // 保存发送消息
   if (codeList.size() > 0) {
     SendMessagerLog sendMessagerLog = new SendMessagerLog();
     sendMessagerLog.setChannelType(2);
     sendMessagerLog.setTitle(title);
     sendMessagerLog.setSendState(0);
     sendMessagerLog.setManagerId(Long.valueOf(getSessionUser().getId()));
     sendMessagerLog.setContent(description);
     sendMessagerLog.setOrigin(0);
     sendMessagerLog.setSendType(2);
     sendMessagerLogService.saveBunchMessagerLog(sendMessagerLog, codeList);
   }
   return SUCCESS;
 }