From 8f0fbdb67f54de4b5eb3e86f86073979d4ca1c46 Mon Sep 17 00:00:00 2001 From: Jaeyoung Lee Date: Thu, 26 Sep 2024 10:34:16 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Session=EA=B4=80=EB=A6=AC=EB=A5=BC=20front?= =?UTF-8?q?=20office=EC=97=90=EC=84=9C=20=EC=A0=84=EB=8B=B4=ED=95=98?= =?UTF-8?q?=EA=B8=B0=20=EC=9C=84=ED=95=B4=20authorize=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/interplug/qcast/config/security/SecurityConfig.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/com/interplug/qcast/config/security/SecurityConfig.java b/src/main/java/com/interplug/qcast/config/security/SecurityConfig.java index bdcc1dcf..84e42829 100644 --- a/src/main/java/com/interplug/qcast/config/security/SecurityConfig.java +++ b/src/main/java/com/interplug/qcast/config/security/SecurityConfig.java @@ -30,10 +30,7 @@ public class SecurityConfig { httpSecurity .httpBasic(HttpBasicConfigurer::disable) .csrf(CsrfConfigurer::disable) - .cors(Customizer.withDefaults()) - .authorizeHttpRequests( - authorize -> - authorize.requestMatchers(WHITELIST).permitAll().anyRequest().authenticated()); + .cors(Customizer.withDefaults()); return httpSecurity.build(); } From 57c1f0db8a0822a28004f94e0c4ed92f19d7bb7e Mon Sep 17 00:00:00 2001 From: "DESKTOP-6ARNG1Q\\dlsgk" Date: Thu, 26 Sep 2024 11:07:54 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EB=85=B8=EC=B6=9C=EC=95=84=EC=9D=B4?= =?UTF-8?q?=ED=85=9C=20api=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../displayItem/DisplayItemController.java | 21 ++++++------- .../biz/displayItem/DisplayItemMapper.java | 4 +-- .../biz/displayItem/DisplayItemService.java | 8 ++--- .../qcast/biz/excelDown/ExcelDownService.java | 30 +++++++------------ .../storeFavorite/StoreFavoriteMapper.java | 4 +-- .../mappers/displayItem/displayItemMapper.xml | 2 +- .../resources/mappers/user/userMapper.xml | 2 -- 7 files changed, 29 insertions(+), 42 deletions(-) diff --git a/src/main/java/com/interplug/qcast/biz/displayItem/DisplayItemController.java b/src/main/java/com/interplug/qcast/biz/displayItem/DisplayItemController.java index 3e8cdb21..cb5993e7 100644 --- a/src/main/java/com/interplug/qcast/biz/displayItem/DisplayItemController.java +++ b/src/main/java/com/interplug/qcast/biz/displayItem/DisplayItemController.java @@ -6,10 +6,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.http.HttpStatus; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.ResponseStatus; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; @Slf4j @RestController @@ -17,13 +14,13 @@ import org.springframework.web.bind.annotation.RestController; @RequiredArgsConstructor @Tag(name = "DisplayItemController", description = "전시(표시) 제품 관련 API") public class DisplayItemController { - private final DisplayItemService displayItemService; - - @Operation(description = "전시제품 정보를 등록/수정한다. (동기화)") - @GetMapping("/display-item-save") - @ResponseStatus(HttpStatus.OK) - public void setStoreDisplayItemSave(DisplayItemRequest displayItemRequest) throws Exception { - displayItemService.setStoreDisplayItemSave(displayItemRequest); - } + private final DisplayItemService displayItemService; + @Operation(description = "전시제품 정보를 등록/수정한다. (동기화)") + @PostMapping("/display-item-save") + @ResponseStatus(HttpStatus.OK) + public void setStoreDisplayItemSave(@RequestBody DisplayItemRequest displayItemRequest) + throws Exception { + displayItemService.setStoreDisplayItemSave(displayItemRequest); + } } diff --git a/src/main/java/com/interplug/qcast/biz/displayItem/DisplayItemMapper.java b/src/main/java/com/interplug/qcast/biz/displayItem/DisplayItemMapper.java index 60923dea..9c1bf003 100644 --- a/src/main/java/com/interplug/qcast/biz/displayItem/DisplayItemMapper.java +++ b/src/main/java/com/interplug/qcast/biz/displayItem/DisplayItemMapper.java @@ -4,7 +4,7 @@ import com.interplug.qcast.biz.displayItem.dto.DisplayItemRequest; import org.apache.ibatis.annotations.Mapper; @Mapper -interface DisplayItemMapper { +public interface DisplayItemMapper { - int setStoreDisplayItemSave(DisplayItemRequest displayItemRequest) throws Exception; + void setStoreDisplayItemSave(DisplayItemRequest displayItemRequest) throws Exception; } diff --git a/src/main/java/com/interplug/qcast/biz/displayItem/DisplayItemService.java b/src/main/java/com/interplug/qcast/biz/displayItem/DisplayItemService.java index 6b9e6b3f..c74ad7aa 100644 --- a/src/main/java/com/interplug/qcast/biz/displayItem/DisplayItemService.java +++ b/src/main/java/com/interplug/qcast/biz/displayItem/DisplayItemService.java @@ -10,9 +10,9 @@ import org.springframework.stereotype.Service; @RequiredArgsConstructor public class DisplayItemService { - private final DisplayItemMapper displayItemMapper; + private final DisplayItemMapper displayItemMapper; - public void setStoreDisplayItemSave(DisplayItemRequest displayItemRequest) throws Exception { - displayItemMapper.setStoreDisplayItemSave(displayItemRequest); - } + public void setStoreDisplayItemSave(DisplayItemRequest displayItemRequest) throws Exception { + displayItemMapper.setStoreDisplayItemSave(displayItemRequest); + } } diff --git a/src/main/java/com/interplug/qcast/biz/excelDown/ExcelDownService.java b/src/main/java/com/interplug/qcast/biz/excelDown/ExcelDownService.java index f2e2e7fc..70a1fa00 100644 --- a/src/main/java/com/interplug/qcast/biz/excelDown/ExcelDownService.java +++ b/src/main/java/com/interplug/qcast/biz/excelDown/ExcelDownService.java @@ -1,26 +1,19 @@ package com.interplug.qcast.biz.excelDown; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.stereotype.Service; -import com.interplug.qcast.biz.excelDown.dto.NtrCtsCmpRequest; -import com.interplug.qcast.biz.excelDown.dto.NtrCtsCmpResponse; -import com.interplug.qcast.biz.excelDown.dto.QuotItemResponse; -import com.interplug.qcast.biz.excelDown.dto.QuotPlanResponse; -import com.interplug.qcast.biz.excelDown.dto.QuotRequest; -import com.interplug.qcast.biz.excelDown.dto.WrntIsncCmplFileResponse; -import com.interplug.qcast.biz.excelDown.dto.WrntIsncCmplRequest; -import com.interplug.qcast.biz.excelDown.dto.WrntIsncCmplResponse; +import com.interplug.qcast.biz.excelDown.dto.*; import com.interplug.qcast.config.Exception.BaseException; import com.interplug.qcast.config.message.Messages; import com.interplug.qcast.util.ZipFileManager; import jakarta.servlet.http.HttpServletResponse; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; @Slf4j @Service @@ -30,8 +23,7 @@ public class ExcelDownService { private final ZipFileManager zipFileManager; - @Autowired - Messages message; + @Autowired Messages message; @Value("${file.ini.root.path}") private String baseDirPath; @@ -56,8 +48,8 @@ public class ExcelDownService { return excelDownMapper.selectWarrantyIssuedCmpExclDownData(wrntIsncCmplRequest); } - public void selectWarrantyIssuedCmpFileData(WrntIsncCmplRequest wrntIsncCmplRequest, - HttpServletResponse response) throws Exception { + public void selectWarrantyIssuedCmpFileData( + WrntIsncCmplRequest wrntIsncCmplRequest, HttpServletResponse response) throws Exception { List listData = excelDownMapper.selectWarrantyIssuedCmpFileData(wrntIsncCmplRequest); diff --git a/src/main/java/com/interplug/qcast/biz/storeFavorite/StoreFavoriteMapper.java b/src/main/java/com/interplug/qcast/biz/storeFavorite/StoreFavoriteMapper.java index 87d98547..12e1a978 100644 --- a/src/main/java/com/interplug/qcast/biz/storeFavorite/StoreFavoriteMapper.java +++ b/src/main/java/com/interplug/qcast/biz/storeFavorite/StoreFavoriteMapper.java @@ -6,5 +6,5 @@ import org.apache.ibatis.annotations.Mapper; @Mapper public interface StoreFavoriteMapper { - int setStoreFavoriteSave(StoreFavoriteRequest req) throws Exception; -} \ No newline at end of file + int setStoreFavoriteSave(StoreFavoriteRequest storeFavoriteRequest) throws Exception; +} diff --git a/src/main/resources/mappers/displayItem/displayItemMapper.xml b/src/main/resources/mappers/displayItem/displayItemMapper.xml index dc073a38..b84cba3a 100644 --- a/src/main/resources/mappers/displayItem/displayItemMapper.xml +++ b/src/main/resources/mappers/displayItem/displayItemMapper.xml @@ -2,6 +2,7 @@ + /* sqlid : com.interplug.qcast.displayItem.setStoreDisplayItemSave */ MERGE M_SALES_STORE_DISP_ITEM AS A @@ -20,7 +21,6 @@ START_DATE = #{startDate} , END_DATE = #{endDate} , DEL_FLG = #{delFlg} - , DISP_ORDER = #{dispOrder} , LAST_EDIT_DATETIME = #{lastEditDatetime} WHEN NOT MATCHED THEN INSERT ( diff --git a/src/main/resources/mappers/user/userMapper.xml b/src/main/resources/mappers/user/userMapper.xml index 4d90cd96..6d268ce6 100644 --- a/src/main/resources/mappers/user/userMapper.xml +++ b/src/main/resources/mappers/user/userMapper.xml @@ -2,8 +2,6 @@ - - /* sqlid : com.interplug.qcast.user.setStoreSapCdSave */ WITH SALES_STORE_CTE AS (