Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
#66 불필요한 select 메소드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
ypr821 authored and YPR committed Feb 9, 2022
1 parent 0b2a56f commit 8b2578f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
@Mapper
public interface RestaurantMapper {

Restaurant selectRestaurantBySeq(long restaurantSeq);

int insertRestaurant(Restaurant restaurant);

Restaurant selectRestaurantByRestaurantSeq(Long restaurantSeq);

Long selectRestaurantSeq(Restaurant restaurant);
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ public interface UserAddressMapper {

Optional<Address> selectAddressBySeq(Long addressSeq);

Long selectAddressSeq(Address address);
}
10 changes: 0 additions & 10 deletions src/main/resources/mybatis/mapper/RestaurantMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,4 @@
WHERE RESTAURANT_SEQ = #{restaurantSeq}
</select>

<select id="selectRestaurantSeq"
parameterType="com.flab.doorrush.domain.restaurant.domain.Restaurant"
resultType="Long">
SELECT RESTAURANT_SEQ
FROM RESTAURANT
WHERE OWNER_SEQ = #{ownerSeq}
AND CATEGORY = #{category}
AND RESTAURANT_NAME = #{restaurantName}
AND ADDRESS_SEQ = #{addressSeq};
</select>
</mapper>
10 changes: 0 additions & 10 deletions src/main/resources/mybatis/mapper/UserAddressMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,4 @@
WHERE ADDRESS_SEQ = #{addressSeq}
</select>

<select id="selectAddressSeq"
parameterType="com.flab.doorrush.domain.restaurant.dto.request.RestaurantAddressRequest"
resultType="Long">
SELECT ADDRESS_SEQ
FROM ADDRESS
WHERE POST = #{post}
AND SPOT_Y = #{spotY}
AND SPOT_X = #{spotX}
AND ADDRESS_DETAIL = #{addressDetail}
</select>
</mapper>

0 comments on commit 8b2578f

Please sign in to comment.