示例#1
0
 public void findAllTest() {
   FileQueryDTO fileQueryDTO = null;
   ;
   Page<FileDTO> files = fileService.findAll(fileQueryDTO, 1, 10, "id", "desc");
   System.out.println("\n\n\n————————————————————————");
   for (FileDTO a : files.getObjectsList()) {
     System.out.println(a);
   }
 }
示例#2
0
 @Test
 public void updateTest() {
   File f = fileService.findById(2l);
   //		User u = userService.findById(8l);
   //		Activity a = activityService.findById(8l);
   //		f.setUploader(u.getRealName());
   //		f.setActivity(a);
   Organization o = organizationService.findById(8l);
   f.setOrganization(o);
   fileDao.update(f);
 }