Example #1
0
  @Transactional(readOnly = false)
  public void save(OaNotify oaNotify) {
    super.save(oaNotify);

    // 更新发送接受人记录
    oaNotifyRecordDao.deleteByOaNotifyId(oaNotify.getId());
    if (oaNotify.getOaNotifyRecordList().size() > 0) {
      oaNotifyRecordDao.insertAll(oaNotify.getOaNotifyRecordList());
    }
  }
Example #2
0
 public Page<OaNotify> find(Page<OaNotify> page, OaNotify oaNotify) {
   oaNotify.setPage(page);
   page.setList(dao.findList(oaNotify));
   return page;
 }
Example #3
0
 /**
  * 获取通知发送记录
  *
  * @param oaNotify
  * @return
  */
 public OaNotify getRecordList(OaNotify oaNotify) {
   oaNotify.setOaNotifyRecordList(oaNotifyRecordDao.findList(new OaNotifyRecord(oaNotify)));
   return oaNotify;
 }