Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : 동계방학 생협 운영시간 업데이트 #1144

Merged
merged 4 commits into from
Dec 20, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions src/main/resources/db/migration/V107__update_coop_shop.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
INSERT INTO `coop_semester` (`semester`, `from_date`, `to_date`, `is_applied`)
VALUES ('24-동계방학', '2024-12-23', '2025-03-02', 1);

SET @SEMESTER_ID = LAST_INSERT_ID();

UPDATE `coop_semester`
SET `is_applied` = 0
WHERE `id` = 1;

INSERT INTO `coop_shop` (`name`, `phone`, `location`, `remarks`, `semester_id`)
VALUES ('학생식당', '041-560-1278', '학생회관 2층', '비계절학기 주말 미운영', @SEMESTER_ID),
('복지관식당', '041-560-1778', '복지관 2층', '복지관식당 c코너 별도 운영(계절학기까지)', @SEMESTER_ID),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

복지관 식당 전화번호는 어디 나와있나요..
못찾겠어요

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

복지관이 이번엔 학생식당 C코너로 들어가면서 칸이 합쳐졌는데 24-2학기 거로 보시면 됩니당

('대즐', '041-560-1779', '복지관 1층', '배달 가능', @SEMESTER_ID),
('서점', '041-560-1756', '복지관 1층', '점심시간 12:00 - 13:00', @SEMESTER_ID),
('세탁소', '041-552-1489', '학생회관 2층', NULL, @SEMESTER_ID),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사진이랑 세탁소 전화번호가 다른것 같아요

('복사실', '041-560-1093', '학생회관 2층', '점심시간 11:30 - 12:30', @SEMESTER_ID),
('복지관 참빛관 편의점', '041-560-1093', '복지관 1층, 참빛관 1층', NULL, @SEMESTER_ID),
('미용실', '041-560-1769', '학생회관 1층', '예약제운영', @SEMESTER_ID),
('오락실', '041-560-1472', '학생회관 1층', NULL, @SEMESTER_ID);

SET @COOP_SHOP_ID = LAST_INSERT_ID();

INSERT INTO `coop_opens` (`coop_shop_id`, `type`, `day_of_week`, `open_time`, `close_time`)
VALUES (@COOP_SHOP_ID, '아침', 'WEEKDAYS', '08:00', '09:00'),
(@COOP_SHOP_ID, '점심', 'WEEKDAYS', '11:30', '13:30'),
(@COOP_SHOP_ID, '저녁', 'WEEKDAYS', '17:30', '18:30'),
(@COOP_SHOP_ID, '아침', 'WEEKEND', '휴점(예약)', '휴점(예약)'),
(@COOP_SHOP_ID, '점심', 'WEEKEND', '11:30', '13:30'),
(@COOP_SHOP_ID, '저녁', 'WEEKEND', '17:30', '18:30'),
(@COOP_SHOP_ID + 1, '점심', 'WEEKDAYS', '11:40', '13:30'),
(@COOP_SHOP_ID + 1, '점심', 'WEEKEND', '미운영', '미운영'),
(@COOP_SHOP_ID + 2, NULL, 'WEEKDAYS', '08:30', '19:00'),
(@COOP_SHOP_ID + 2, NULL, 'WEEKDAYS', '휴점', '휴점'),
(@COOP_SHOP_ID + 3, NULL, 'WEEKDAYS', '09:00', '18:00'),
(@COOP_SHOP_ID + 3, NULL, 'WEEKEND', '휴점', '휴점'),
(@COOP_SHOP_ID + 4, NULL, 'WEEKDAYS', '10:30', '16:00'),
(@COOP_SHOP_ID + 4, NULL, 'WEEKEND', '휴점', '휴점'),
(@COOP_SHOP_ID + 5, NULL, 'WEEKDAYS', '10:00', '16:00'),
(@COOP_SHOP_ID + 5, NULL, 'WEEKEND', '휴점', '휴점'),
(@COOP_SHOP_ID + 6, NULL, 'WEEKDAYS', '24시간', '24시간'),
(@COOP_SHOP_ID + 6, NULL, 'WEEKEND', '24시간', '24시간'),
(@COOP_SHOP_ID + 7, NULL, 'WEEKDAYS', '10:00', '16:00'),
(@COOP_SHOP_ID + 7, NULL, 'WEEKEND', '휴점', '휴점'),
(@COOP_SHOP_ID + 8, NULL, 'WEEKDAYS', '24시간', '24시간'),
(@COOP_SHOP_ID + 8, NULL, 'WEEKEND', '24시간', '24시간');
Loading