2 Commits

Author SHA1 Message Date
s-choi
48ba386c88 [ADD] warファイルを作成しました。 2026-09-30 11:27:18 +09:00
a10a4053cf [FIX]不要なコメントを排除しました 2026-09-30 11:13:34 +09:00
5 changed files with 5 additions and 7 deletions

BIN
Monegement.war Normal file

Binary file not shown.

View File

@@ -130,19 +130,14 @@ 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";
}

View File

@@ -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")) {

View File

@@ -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);

View File

@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path: