Compare commits
15 Commits
master
...
7e2017a341
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e2017a341 | |||
| 26c9be6f71 | |||
| 181adcd933 | |||
| 2ed56f2413 | |||
| baab2a822d | |||
| 25986b455e | |||
| c7a33c997c | |||
| 3818da7b4e | |||
| f37dd792a0 | |||
| 109b8125d6 | |||
| 626c4d6721 | |||
| e43958a1fb | |||
| 57a76ae044 | |||
| 4880a4285e | |||
| 03b1b7d982 |
BIN
Monegement.war
BIN
Monegement.war
Binary file not shown.
@@ -49,7 +49,7 @@ public class GlobalExceptionHandler {
|
||||
|
||||
LOGGER.log(Level.SEVERE, SEVERE_ERROR_MESSAGE_ILLEGAL_TRANSITION, e);
|
||||
|
||||
System.out.println("session invalidated");
|
||||
System.out.println("session invalidated method not supported exception");
|
||||
session.invalidate();
|
||||
|
||||
return TransitionTargetPageNameKeyword.ERROR_HTML;
|
||||
@@ -61,7 +61,7 @@ public class GlobalExceptionHandler {
|
||||
e.printStackTrace();
|
||||
|
||||
System.out.println("session invalidated exception");
|
||||
// session.invalidate();
|
||||
session.invalidate();
|
||||
return TransitionTargetPageNameKeyword.ERROR_HTML;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,14 +130,19 @@ public class CourseServiceImpl implements CourseService {
|
||||
public String deleteCourse(Long courseId, Long userId) {
|
||||
|
||||
UserEntity userEntity = userRepository.findById(userId).orElse(null);
|
||||
System.out.println("***********************ここでエラー1");
|
||||
if (userEntity.getCourseEntity().getCourseId() == courseId) {
|
||||
return "selected";
|
||||
} else if (courseId <= 6) {
|
||||
return "original";
|
||||
}
|
||||
System.out.println("***********************ここでエラー2");
|
||||
allocationRepository.deleteByCourseId(courseId);
|
||||
System.out.println("***********************ここでエラー3");
|
||||
courseOwnerRepository.deleteByCourseId(courseId);
|
||||
System.out.println("***********************ここでエラー4");
|
||||
courseRepository.deleteById(courseId);
|
||||
System.out.println("***********************ここでエラー5");
|
||||
return "ok";
|
||||
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ public class CourseController {
|
||||
|
||||
LoginModel loginUser = (LoginModel) session.getAttribute(SessionKeyword.LOGIN_USER);
|
||||
|
||||
// System.out.println("**********************cousrId: " + courseId);
|
||||
System.out.println("**********************cousrId: " + courseId);
|
||||
String condition = courseService.deleteCourse(courseId, loginUser.getUserId());
|
||||
|
||||
if (condition.equals("selected")) {
|
||||
|
||||
@@ -275,7 +275,7 @@ public class GoalController {
|
||||
|
||||
int currentAmount = goalService.getCurrentAmount(userId);
|
||||
|
||||
// System.out.println("************************currentAmount : " + currentAmount);
|
||||
System.out.println("************************currentAmount : " + currentAmount);
|
||||
|
||||
session.setAttribute(PageReturnAttributeKeyword.CURRENT_AMOUNT, currentAmount);
|
||||
|
||||
|
||||
@@ -430,6 +430,7 @@ public class TransactionController {
|
||||
UserForm userForm = UserForm.convertFrom(userService.findByUserId(loginUser.getUserId()));
|
||||
|
||||
List<GoalForm> resultList = goalForm.stream().filter(goal -> goal.getGoalComplete() == 0 && goal.getDeadline().isAfter(today) )
|
||||
|
||||
.collect(Collectors.toList());
|
||||
|
||||
if (!resultList.isEmpty()) {
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Class-Path:
|
||||
|
||||
Reference in New Issue
Block a user