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