Пример #1
0
 /*    */ public PostsExt update(Integer extId, Integer userId, String ip) {
   /* 39 */ PostsExt ext = findById(extId);
   /* 40 */ ext.setEditer(this.userService.findById(userId));
   /* 41 */ ext.setCreateIp(ip);
   /* 42 */ ext.setEditCount(Integer.valueOf(ext.getEditCount().intValue() + 1));
   /* 43 */ return ext;
   /*    */ }
Пример #2
0
 /*    */ public PostsExt save(String ip, Posts posts) {
   /* 29 */ PostsExt ext = new PostsExt();
   /* 30 */ ext.setCreateIp(ip);
   /* 31 */ ext.setPosts(posts);
   /* 32 */ ext.init();
   /* 33 */ this.dao.save(ext);
   /* 34 */ posts.setExt(ext);
   /* 35 */ return ext;
   /*    */ }