diff --git a/src/main/java/com/interplug/qcast/biz/master/MasterController.java b/src/main/java/com/interplug/qcast/biz/master/MasterController.java index aa347d91..ae347152 100644 --- a/src/main/java/com/interplug/qcast/biz/master/MasterController.java +++ b/src/main/java/com/interplug/qcast/biz/master/MasterController.java @@ -15,6 +15,7 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @@ -44,19 +45,25 @@ public class MasterController { @Operation(description = "가대 목록 조회") @GetMapping("/getTrestleList") - public ApiResponse getTrestleList(@RequestParam ApiTrestleRequest params) { + public ApiResponse getTrestleList(@ModelAttribute ApiTrestleRequest params) { + System.out.println(" >>>>>>>>>>>>>>>>>>>>>>>>>> " + params.getConstMthdCd()); + System.out.println(" >>>>>>>>>>>>>>>>>>>>>>>>>> " + params.getModuleTpCd()); + System.out.println(" >>>>>>>>>>>>>>>>>>>>>>>>>> " + params.getRaftBaseCd()); + System.out.println(" >>>>>>>>>>>>>>>>>>>>>>>>>> " + params.getRoofBaseCd()); + System.out.println(" >>>>>>>>>>>>>>>>>>>>>>>>>> " + params.getRoofMatlCd()); + System.out.println(" >>>>>>>>>>>>>>>>>>>>>>>>>> " + params.getTrestleMkrCd()); return masterService.getTrestleList(params); } @Operation(description = "시공법 목록 조회") @GetMapping("/getConstructionList") - public ApiResponse getConstructionList(@RequestParam ApiConstructionRequest params) { + public ApiResponse getConstructionList(@ModelAttribute ApiConstructionRequest params) { return masterService.getConstructionList(params); } @Operation(description = "가대 상세 조회") @GetMapping("/getTrestleDetailList") - public ApiResponse getTrestleDetailList(@RequestParam ApiTrestleDetailRequest params) { + public ApiResponse getTrestleDetailList(@ModelAttribute ApiTrestleDetailRequest params) { return masterService.getTrestleDetailList(params); } } diff --git a/src/main/java/com/interplug/qcast/biz/master/MasterService.java b/src/main/java/com/interplug/qcast/biz/master/MasterService.java index 0ba61cf0..ec5c9957 100644 --- a/src/main/java/com/interplug/qcast/biz/master/MasterService.java +++ b/src/main/java/com/interplug/qcast/biz/master/MasterService.java @@ -11,6 +11,7 @@ import com.interplug.qcast.biz.master.dto.ApiTrestleRequest; import com.interplug.qcast.biz.master.dto.ApiTrestleResponse; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestParam; // @FeignClient(name = "master", url = "${feign.master.url}") @@ -28,13 +29,13 @@ public interface MasterService { // 가대 목록 조회 @GetMapping("/trestle") - public ApiResponse getTrestleList(@RequestParam ApiTrestleRequest params); + public ApiResponse getTrestleList(@ModelAttribute ApiTrestleRequest params); // 시공법 목록 조회 @GetMapping("/construction") - public ApiResponse getConstructionList(@RequestParam ApiConstructionRequest params); + public ApiResponse getConstructionList(@ModelAttribute ApiConstructionRequest params); // 가대 상세 조회 @GetMapping("/trestle/detail") - public ApiResponse getTrestleDetailList(@RequestParam ApiTrestleDetailRequest params); + public ApiResponse getTrestleDetailList(@ModelAttribute ApiTrestleDetailRequest params); }