| | |
| | | |
| | | |
| | | |
| | | public Notice notice(Constants.NoticeType noticeType,Integer memberId,Integer objId){ |
| | | public static Notice getNotice(Constants.NoticeType noticeType,Integer memberId,Integer objId){ |
| | | Notice notice = new Notice(); |
| | | notice.setCreateDate(new Date()); |
| | | notice.setIsdeleted(Constants.ZERO); |
| | | notice.setMemberId(memberId); |
| | | notice.setTitle(noticeType.getTitle()); |
| | | notice.setContent(noticeType.getContent()); |
| | | notice.setType(noticeType.getNoticeType()); |
| | | notice.setObjId(objId); |
| | | notice.setObjType(noticeType.getObjType()); |
| | | |
| | | |
| | | notice.setType(noticeType.getNoticeType()); |
| | | notice.setStatus(Constants.ZERO); |
| | | return notice; |
| | | } |
| | | |