pcs 메이커 시리즈 조회 api 추가
This commit is contained in:
parent
d1fc048dbf
commit
1a6d6398dc
@ -1,23 +1,19 @@
|
|||||||
package com.interplug.qcast.biz.master;
|
package com.interplug.qcast.biz.master;
|
||||||
|
|
||||||
import com.interplug.qcast.biz.master.dto.ApiConstructionResponse;
|
import com.interplug.qcast.biz.master.dto.*;
|
||||||
import com.interplug.qcast.biz.master.dto.ApiModuleTpResponse;
|
|
||||||
import com.interplug.qcast.biz.master.dto.ApiResponse;
|
|
||||||
import com.interplug.qcast.biz.master.dto.ApiRoofMaterialResponse;
|
|
||||||
import com.interplug.qcast.biz.master.dto.ApiTrestleDetailResponse;
|
|
||||||
import com.interplug.qcast.biz.master.dto.ApiTrestleResponse;
|
|
||||||
import com.interplug.qcast.config.Exception.ErrorCode;
|
import com.interplug.qcast.config.Exception.ErrorCode;
|
||||||
import com.interplug.qcast.config.Exception.QcastException;
|
import com.interplug.qcast.config.Exception.QcastException;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import java.util.List;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/api/v1/master")
|
@RequestMapping("/api/v1/master")
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@ -237,4 +233,12 @@ public class MasterController {
|
|||||||
atdb.getMixMatlNo(),
|
atdb.getMixMatlNo(),
|
||||||
atdb.getRoofPitch());
|
atdb.getRoofPitch());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Operation(description = "PCS 메이커, 시리즈 조회한다.")
|
||||||
|
@GetMapping("/pcsMakerList")
|
||||||
|
public ApiResponse<ApiPcsMakerResponse> getPcsMakerList(@Parameter(description = "PCS 메이커 코드") @RequestParam(required = false) String pcsMkrCd,
|
||||||
|
@Parameter(description = "혼합모듈번호") @RequestParam(required = false) String mixMatlNo) {
|
||||||
|
|
||||||
|
return masterService.getPcsMakerList(pcsMkrCd, mixMatlNo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,16 +1,12 @@
|
|||||||
package com.interplug.qcast.biz.master;
|
package com.interplug.qcast.biz.master;
|
||||||
|
|
||||||
import com.interplug.qcast.biz.master.dto.ApiConstructionResponse;
|
import com.interplug.qcast.biz.master.dto.*;
|
||||||
import com.interplug.qcast.biz.master.dto.ApiModuleTpResponse;
|
|
||||||
import com.interplug.qcast.biz.master.dto.ApiResponse;
|
|
||||||
import com.interplug.qcast.biz.master.dto.ApiRoofMaterialResponse;
|
|
||||||
import com.interplug.qcast.biz.master.dto.ApiTrestleDetailResponse;
|
|
||||||
import com.interplug.qcast.biz.master.dto.ApiTrestleResponse;
|
|
||||||
import java.util.List;
|
|
||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
// @FeignClient(name = "master", url = "${feign.master.url}")
|
// @FeignClient(name = "master", url = "${feign.master.url}")
|
||||||
@FeignClient(name = "master", url = "${qsp.url}/api/master")
|
@FeignClient(name = "master", url = "${qsp.url}/api/master")
|
||||||
public interface MasterService {
|
public interface MasterService {
|
||||||
@ -66,4 +62,9 @@ public interface MasterService {
|
|||||||
@RequestParam String constTp,
|
@RequestParam String constTp,
|
||||||
@RequestParam(required = false) Integer mixMatlNo,
|
@RequestParam(required = false) Integer mixMatlNo,
|
||||||
@RequestParam(required = false) Integer roofPitch);
|
@RequestParam(required = false) Integer roofPitch);
|
||||||
|
|
||||||
|
// PCS Maker, 시리즈 목록 조회
|
||||||
|
@GetMapping("/pcsMakerList")
|
||||||
|
public ApiResponse<ApiPcsMakerResponse> getPcsMakerList(@RequestParam(required = false) String pcsMkrCd,
|
||||||
|
@RequestParam(required = false) String mixMatlNo);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,37 @@
|
|||||||
|
package com.interplug.qcast.biz.master.dto;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Schema(description = "PCS 메이커, 시리즈 목록 조회")
|
||||||
|
public class ApiPcsMakerResponse {
|
||||||
|
|
||||||
|
@Schema(description = "PCS메이커코드")
|
||||||
|
private String pcsMkrCd;
|
||||||
|
|
||||||
|
@Schema(description = "PCS메이커코드명")
|
||||||
|
private String pcsMkrNm;
|
||||||
|
|
||||||
|
@Schema(description = "PCS메이커코드명(일본)")
|
||||||
|
private String pcsMkrNmJp;
|
||||||
|
|
||||||
|
@Schema(description = "PCS시리즈멀티선택타입(멀티:MULTI, 단독:SINGLE, 단독(병설):SINGLE-P)")
|
||||||
|
private String pcsMkrMultiType;
|
||||||
|
|
||||||
|
@Schema(description = "PCS시리즈코드")
|
||||||
|
private String pcsSerCd;
|
||||||
|
|
||||||
|
@Schema(description = "PCS시리즈코드명")
|
||||||
|
private String pcsSerNm;
|
||||||
|
|
||||||
|
@Schema(description = "PCS시리즈코드명(일본)")
|
||||||
|
private String pcsSerNmJp;
|
||||||
|
|
||||||
|
@Schema(description = "PCS시리즈 병설 여부")
|
||||||
|
private String pcsSerParallelYn;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user