From 8b2578f221618e156e7f1163966d207955568877 Mon Sep 17 00:00:00 2001 From: promise_yoo <56250078+ypr821@users.noreply.github.com> Date: Wed, 9 Feb 2022 19:25:57 +0900 Subject: [PATCH] =?UTF-8?q?#66=20=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C=20se?= =?UTF-8?q?lect=20=EB=A9=94=EC=86=8C=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/restaurant/dao/RestaurantMapper.java | 3 --- .../dto/request/RestaurantAddressRequest.java | 2 ++ .../doorrush/domain/user/dao/UserAddressMapper.java | 1 - src/main/resources/mybatis/mapper/RestaurantMapper.xml | 10 ---------- .../resources/mybatis/mapper/UserAddressMapper.xml | 10 ---------- 5 files changed, 2 insertions(+), 24 deletions(-) diff --git a/src/main/java/com/flab/doorrush/domain/restaurant/dao/RestaurantMapper.java b/src/main/java/com/flab/doorrush/domain/restaurant/dao/RestaurantMapper.java index 894f74b..3971423 100644 --- a/src/main/java/com/flab/doorrush/domain/restaurant/dao/RestaurantMapper.java +++ b/src/main/java/com/flab/doorrush/domain/restaurant/dao/RestaurantMapper.java @@ -6,11 +6,8 @@ @Mapper public interface RestaurantMapper { - Restaurant selectRestaurantBySeq(long restaurantSeq); - int insertRestaurant(Restaurant restaurant); Restaurant selectRestaurantByRestaurantSeq(Long restaurantSeq); - Long selectRestaurantSeq(Restaurant restaurant); } diff --git a/src/main/java/com/flab/doorrush/domain/restaurant/dto/request/RestaurantAddressRequest.java b/src/main/java/com/flab/doorrush/domain/restaurant/dto/request/RestaurantAddressRequest.java index d1b675f..e9e3e17 100644 --- a/src/main/java/com/flab/doorrush/domain/restaurant/dto/request/RestaurantAddressRequest.java +++ b/src/main/java/com/flab/doorrush/domain/restaurant/dto/request/RestaurantAddressRequest.java @@ -2,11 +2,13 @@ import com.flab.doorrush.domain.user.domain.Address; import javax.validation.constraints.NotNull; +import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; @Getter @Builder +@AllArgsConstructor public class RestaurantAddressRequest { @NotNull diff --git a/src/main/java/com/flab/doorrush/domain/user/dao/UserAddressMapper.java b/src/main/java/com/flab/doorrush/domain/user/dao/UserAddressMapper.java index b055164..304d38b 100644 --- a/src/main/java/com/flab/doorrush/domain/user/dao/UserAddressMapper.java +++ b/src/main/java/com/flab/doorrush/domain/user/dao/UserAddressMapper.java @@ -25,5 +25,4 @@ public interface UserAddressMapper { Optional
selectAddressBySeq(Long addressSeq); - Long selectAddressSeq(Address address); } diff --git a/src/main/resources/mybatis/mapper/RestaurantMapper.xml b/src/main/resources/mybatis/mapper/RestaurantMapper.xml index 5b09fc8..23fdd94 100644 --- a/src/main/resources/mybatis/mapper/RestaurantMapper.xml +++ b/src/main/resources/mybatis/mapper/RestaurantMapper.xml @@ -39,14 +39,4 @@ WHERE RESTAURANT_SEQ = #{restaurantSeq} - \ No newline at end of file diff --git a/src/main/resources/mybatis/mapper/UserAddressMapper.xml b/src/main/resources/mybatis/mapper/UserAddressMapper.xml index abf3231..62ca600 100644 --- a/src/main/resources/mybatis/mapper/UserAddressMapper.xml +++ b/src/main/resources/mybatis/mapper/UserAddressMapper.xml @@ -77,14 +77,4 @@ WHERE ADDRESS_SEQ = #{addressSeq} - \ No newline at end of file