예제 #1
0
  public boolean saveInterviewNotice(
      InterviewNoticeDto interviewNoticeDto, LoginUserInfoDto loginUserInfo) {

    // 扣除相应服务次数
    SysOrderDto dto = new SysOrderDto();
    dto.setService3Remains(new Long(1));
    boolean result =
        sysOrderService.verifyAuthority(
            dto, loginUserInfo, ApplicationConstant.SERVICE_ITEM_NAME_RECRUIT_CODE, "3", 1);

    if (result) {
      // 分别在发件箱、收件箱保存站内信
      saveInterviewSendNotice(interviewNoticeDto);
      saveInterviewReceiveNotice(interviewNoticeDto);

      // 如果个人用户设置了自动回复站内信,给企业用户回复站内信息
      Long personalUserId = interviewNoticeDto.getReceiverId();
      AutoShortMsgConfigDto autoShortMsgConfigDto =
          shortMessageService.getAutoShortMsgConfigByUserId(personalUserId);
      if (autoShortMsgConfigDto != null) {
        ShortMessageDto shortMessageDto = new ShortMessageDto();
        shortMessageDto.setSenderId(personalUserId);
        shortMessageDto.setReceiverId(loginUserInfo.getId());
        shortMessageDto.setReceiveDate(new Date());
        shortMessageDto.setTitle(autoShortMsgConfigDto.getTitle());
        shortMessageDto.setType("1");
        shortMessageDto.setStatus(ApplicationConstant.NOTICE_UNREAD);
        shortMessageDto.setMessage(autoShortMsgConfigDto.getMsg());
        shortMessageService.saveReceiveMsg(shortMessageDto);
      }
    }
    return result;
  }
예제 #2
0
 @SuppressWarnings("unchecked")
 public List<SysOrderDto> queryEffectiveOrderList(SysOrderDto dto) {
   Map<String, Object> paraMap = new HashMap<String, Object>();
   try {
     paraMap.put("fromOrderDate", dto.getFromOrderDate());
     paraMap.put("toOrderDate", dto.getToOrderDate());
     paraMap.put("fromPayDate", dto.getFromPayDate());
     paraMap.put("toPayDate", dto.getToPayDate());
     paraMap.put("status", dto.getStatus());
     paraMap.put("payDate", dto.getPayDate());
     paraMap.put("serviceCode", dto.getServiceCode());
     paraMap.put("inOrderName", dto.getInOrderName());
     paraMap.put("inOrderName", dto.getInOrderName());
     paraMap.put("inOrderName", dto.getInOrderName());
     paraMap.put("inOrderName", dto.getInOrderName());
     paraMap.put("serviceName", dto.getServiceName());
     paraMap.put("itemCode", dto.getItemCode());
     paraMap.put("inOrder", dto.getInOrder());
     paraMap.put("endDate", dto.getEndDate());
     paraMap.put("service1Remains", dto.getService1Remains());
     paraMap.put("service2Remains", dto.getService2Remains());
     paraMap.put("service3Remains", dto.getService3Remains());
   } catch (Exception e) {
     logger.error(e);
   }
   return sqlMapClientTemplate.queryForList("queryEffectiveOrderList", paraMap);
 }
예제 #3
0
 public List<SysOrderDto> queryOrderList(PageInfo pageInfo, SysOrderDto dto) {
   Map<String, Object> paraMap = new HashMap<String, Object>();
   try {
     paraMap.put("fromOrderDate", dto.getFromOrderDate());
     paraMap.put("toOrderDate", dto.getToOrderDate());
     paraMap.put("fromPayDate", dto.getFromPayDate());
     paraMap.put("toPayDate", dto.getToPayDate());
     paraMap.put("status", dto.getStatus());
     paraMap.put("payDate", dto.getPayDate());
     paraMap.put("serviceCode", dto.getServiceCode());
     paraMap.put("inOrderName", dto.getInOrderName());
     paraMap.put("inOrderName", dto.getInOrderName());
     paraMap.put("inOrderName", dto.getInOrderName());
     paraMap.put("inOrderName", dto.getInOrderName());
     paraMap.put("serviceName", dto.getServiceName());
     paraMap.put("itemCode", dto.getItemCode());
     paraMap.put("inOrder", dto.getInOrder());
     paraMap.put("endDate", dto.getEndDate());
     paraMap.put("service1Remains", dto.getService1Remains());
     paraMap.put("service2Remains", dto.getService2Remains());
     paraMap.put("service3Remains", dto.getService3Remains());
     paraMap.put("isNew", dto.getIsNew());
   } catch (Exception e) {
     logger.error(e);
   }
   return PagingDataListUtil.getPagingData(pageInfo, "queryOrderCount", "queryOrderList", paraMap);
 }
예제 #4
0
 public int getOrdersCount(SysOrderDto dto) {
   Map<String, Object> paraMap = new HashMap<String, Object>();
   try {
     paraMap.put("fromOrderDate", dto.getFromOrderDate());
     paraMap.put("toOrderDate", dto.getToOrderDate());
     paraMap.put("fromPayDate", dto.getFromPayDate());
     paraMap.put("toPayDate", dto.getToPayDate());
     paraMap.put("status", dto.getStatus());
     paraMap.put("payDate", dto.getPayDate());
     paraMap.put("serviceCode", dto.getServiceCode());
     paraMap.put("inOrderName", dto.getInOrderName());
     paraMap.put("itemCode", dto.getItemCode());
     paraMap.put("inOrder", dto.getInOrder());
     paraMap.put("endDate", dto.getEndDate());
     paraMap.put("service1Remains", dto.getService1Remains());
     paraMap.put("service2Remains", dto.getService2Remains());
     paraMap.put("service3Remains", dto.getService3Remains());
   } catch (Exception e) {
     logger.error(e);
   }
   Object obj = sqlMapClientTemplate.queryForObject("queryOrderCount", paraMap);
   return obj != null ? Integer.valueOf(obj.toString()) : 0;
 }