Changeset 8f1f460 for src/main/java/it
- Timestamp:
- 01/11/21 18:58:30 (4 years ago)
- Branches:
- master
- Children:
- 33d4f5d
- Parents:
- 5f9d25a
- Location:
- src/main/java/it/finki/tinki
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/tinki/service/WorkService.java
r5f9d25a r8f1f460 7 7 import it.finki.tinki.model.dto.response.work.JobResponseDTO; 8 8 import it.finki.tinki.model.dto.response.work.ProjectResponseDTO; 9 import it.finki.tinki.model.dto.response.work.WorkResponseDTO;10 9 import it.finki.tinki.model.enumerator.AccountType; 11 10 -
src/main/java/it/finki/tinki/web/controller/WorkEditController.java
r5f9d25a r8f1f460 40 40 @RequestBody InternshipRegisterDTO body){ 41 41 42 if(body.getAccountId().equals(this.workService.get JobById(id).getAccount().getId())){42 if(body.getAccountId().equals(this.workService.getInternshipById(id).getAccount().getId())){ 43 43 Internship k = this.workService.editInternship(id, body.getTitle(), body.getDescription(), body.getSalary(), body.getOpenSpots()); 44 44 return new InternshipResponseDTO(k); … … 51 51 @RequestBody ProjectRegisterDTO body){ 52 52 53 if(body.getAccountId().equals(this.workService.get JobById(id).getAccount().getId())) {53 if(body.getAccountId().equals(this.workService.getProjectById(id).getAccount().getId())) { 54 54 Project k = this.workService.editProject(id, body.getTitle(), body.getDescription(), body.getSalary()); 55 55 return new ProjectResponseDTO(k);
Note:
See TracChangeset
for help on using the changeset viewer.