배치 API req/res 신규 추가
This commit is contained in:
parent
a6977abcd8
commit
9f03c9adb8
@ -22,7 +22,6 @@ public class CanvasSettingService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Canvas Setting 등록
|
// Canvas Setting 등록
|
||||||
@SuppressWarnings("static-access")
|
|
||||||
public Map<String, String> insertCanvasSetting(CanvasSettingInfo csi) throws QcastException {
|
public Map<String, String> insertCanvasSetting(CanvasSettingInfo csi) throws QcastException {
|
||||||
|
|
||||||
Map<String, String> response = new HashMap<>();
|
Map<String, String> response = new HashMap<>();
|
||||||
@ -36,8 +35,6 @@ public class CanvasSettingService {
|
|||||||
// 먼저 데이터가 존재하는지 확인
|
// 먼저 데이터가 존재하는지 확인
|
||||||
CanvasSettingInfo cntData = canvasSettingMapper.getCanvasSettingCnt(csi.getObjectNo());
|
CanvasSettingInfo cntData = canvasSettingMapper.getCanvasSettingCnt(csi.getObjectNo());
|
||||||
|
|
||||||
System.out.println("dssdsssdsdsds cnt : " + cntData.getCnt().intValue());
|
|
||||||
|
|
||||||
// 데이터가 존재하지 않으면 insert
|
// 데이터가 존재하지 않으면 insert
|
||||||
if (cntData.getCnt().intValue() < 1) {
|
if (cntData.getCnt().intValue() < 1) {
|
||||||
canvasSettingMapper.insertCanvasSetting(csi);
|
canvasSettingMapper.insertCanvasSetting(csi);
|
||||||
|
|||||||
@ -3,11 +3,22 @@ package com.interplug.qcast.biz.master;
|
|||||||
import com.interplug.qcast.biz.master.dto.ApiModuleTpResponse;
|
import com.interplug.qcast.biz.master.dto.ApiModuleTpResponse;
|
||||||
import com.interplug.qcast.biz.master.dto.ApiResponse;
|
import com.interplug.qcast.biz.master.dto.ApiResponse;
|
||||||
import com.interplug.qcast.biz.master.dto.ApiRoofMaterialResponse;
|
import com.interplug.qcast.biz.master.dto.ApiRoofMaterialResponse;
|
||||||
|
import com.interplug.qcast.biz.master.dto.ApiTrestleRequest;
|
||||||
|
import com.interplug.qcast.biz.master.dto.ApiTrestleResponse;
|
||||||
|
import com.interplug.qcast.biz.master.dto.ApiConstructionRequest;
|
||||||
|
import com.interplug.qcast.biz.master.dto.ApiConstructionResponse;
|
||||||
|
import com.interplug.qcast.biz.master.dto.ApiTrestleDetailRequest;
|
||||||
|
import com.interplug.qcast.biz.master.dto.ApiTrestleDetailResponse;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@ -30,4 +41,22 @@ public class MasterController {
|
|||||||
@PathVariable("roofMaterialCd") String roofMaterialCd) {
|
@PathVariable("roofMaterialCd") String roofMaterialCd) {
|
||||||
return masterService.getModuleTypeItemList(roofMaterialCd);
|
return masterService.getModuleTypeItemList(roofMaterialCd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Operation(description = "Q.CAST용 가대 목록 조회")
|
||||||
|
@PostMapping("/getTrestleList")
|
||||||
|
public List<ApiTrestleResponse> getTrestleList(@RequestBody ApiTrestleRequest params) {
|
||||||
|
return masterService.getTrestleList(params);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Operation(description = "Q.CAST용 시공법 목록 조회")
|
||||||
|
@PostMapping("/getConstructionList")
|
||||||
|
public List<ApiConstructionResponse> getConstructionList(@RequestBody ApiConstructionRequest params) {
|
||||||
|
return masterService.getConstructionList(params);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Operation(description = "Q.CAST용 가대 상세 조회")
|
||||||
|
@PostMapping("/getConstructionDetailList")
|
||||||
|
public List<ApiTrestleDetailResponse> getConstructionDetailList(@RequestBody ApiTrestleDetailRequest params) {
|
||||||
|
return masterService.getConstructionDetailList(params);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -3,9 +3,17 @@ package com.interplug.qcast.biz.master;
|
|||||||
import com.interplug.qcast.biz.master.dto.ApiModuleTpResponse;
|
import com.interplug.qcast.biz.master.dto.ApiModuleTpResponse;
|
||||||
import com.interplug.qcast.biz.master.dto.ApiResponse;
|
import com.interplug.qcast.biz.master.dto.ApiResponse;
|
||||||
import com.interplug.qcast.biz.master.dto.ApiRoofMaterialResponse;
|
import com.interplug.qcast.biz.master.dto.ApiRoofMaterialResponse;
|
||||||
|
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 com.interplug.qcast.biz.master.dto.ApiTrestleRequest;
|
||||||
|
import com.interplug.qcast.biz.master.dto.ApiTrestleResponse;
|
||||||
|
import com.interplug.qcast.biz.master.dto.ApiConstructionRequest;
|
||||||
|
import com.interplug.qcast.biz.master.dto.ApiConstructionResponse;
|
||||||
|
import com.interplug.qcast.biz.master.dto.ApiTrestleDetailRequest;
|
||||||
|
import com.interplug.qcast.biz.master.dto.ApiTrestleDetailResponse;
|
||||||
|
|
||||||
// @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")
|
||||||
@ -19,4 +27,16 @@ public interface MasterService {
|
|||||||
@GetMapping("/moduleTypeItemList")
|
@GetMapping("/moduleTypeItemList")
|
||||||
public ApiResponse<ApiModuleTpResponse> getModuleTypeItemList(
|
public ApiResponse<ApiModuleTpResponse> getModuleTypeItemList(
|
||||||
@RequestParam("roofMaterialCd") String roofMaterialCd);
|
@RequestParam("roofMaterialCd") String roofMaterialCd);
|
||||||
|
|
||||||
|
// Q.CAST용 가대 목록 조회
|
||||||
|
@GetMapping("/trestle")
|
||||||
|
public List<ApiTrestleResponse> getTrestleList(@RequestParam ApiTrestleRequest params);
|
||||||
|
|
||||||
|
// Q.CAST용 시공법 목록 조회
|
||||||
|
@GetMapping("/construction")
|
||||||
|
public List<ApiConstructionResponse> getConstructionList(@RequestParam ApiConstructionRequest params);
|
||||||
|
|
||||||
|
// Q.CAST용 가대 상세 조회
|
||||||
|
@GetMapping("/trestle/detail")
|
||||||
|
public List<ApiTrestleDetailResponse> getConstructionDetailList(@RequestParam ApiTrestleDetailRequest params);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,51 @@
|
|||||||
|
package com.interplug.qcast.biz.master.dto;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Tag(name = "ApiConstructionReq", description = "Api 시공법 목록 조회 요청 객체")
|
||||||
|
public class ApiConstructionRequest {
|
||||||
|
|
||||||
|
/** Language Code */
|
||||||
|
private String langCd;
|
||||||
|
|
||||||
|
/** Module Type Code */
|
||||||
|
private String moduleTpCd;
|
||||||
|
|
||||||
|
/** Roofing Material Code */
|
||||||
|
private String roofMatlCd;
|
||||||
|
|
||||||
|
/** Trestle Maker Code */
|
||||||
|
private String trestleMkrCd;
|
||||||
|
|
||||||
|
/** Construction Method Code */
|
||||||
|
private String constMthdCd;
|
||||||
|
|
||||||
|
/** Roof Base Code */
|
||||||
|
private String roofBaseCd;
|
||||||
|
|
||||||
|
/** Illumination Type */
|
||||||
|
private String illuminationTp;
|
||||||
|
|
||||||
|
/** Installation Height */
|
||||||
|
private String instHt;
|
||||||
|
|
||||||
|
/** Standard Wind Speed */
|
||||||
|
private String stdWindSpeed;
|
||||||
|
|
||||||
|
/** Standard Snow Load */
|
||||||
|
private String stdSnowLd;
|
||||||
|
|
||||||
|
/** Incline Code */
|
||||||
|
private String inclCd;
|
||||||
|
|
||||||
|
/** Rafter Base Code */
|
||||||
|
private String raftBaseCd;
|
||||||
|
|
||||||
|
/** Roof Pitch */
|
||||||
|
private int roofPitch;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
package com.interplug.qcast.biz.master.dto;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Tag(name = "ApiConstructionRes", description = "Api 시공법 목록 조회 응답 객체")
|
||||||
|
public class ApiConstructionResponse {
|
||||||
|
|
||||||
|
/** Construction Type */
|
||||||
|
private String constTp;
|
||||||
|
|
||||||
|
/** Construction Type Name */
|
||||||
|
private String constTpNm;
|
||||||
|
|
||||||
|
/** Construction Type Japan */
|
||||||
|
private String constTpJp;
|
||||||
|
|
||||||
|
/** Construction Possible Yn */
|
||||||
|
private String constPossYn;
|
||||||
|
|
||||||
|
/** Plover Possible Yn */
|
||||||
|
private String plvrYn;
|
||||||
|
|
||||||
|
/** Coverable Installation Possible Yn */
|
||||||
|
private String cvrYn;
|
||||||
|
|
||||||
|
/** Cover Limit Rows Single */
|
||||||
|
private int cvrLmtRow;
|
||||||
|
|
||||||
|
/** Snow Guard Installation Possible Yn */
|
||||||
|
private String snowGdPossYn;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,33 @@
|
|||||||
|
package com.interplug.qcast.biz.master.dto;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Tag(name = "ApiTrestleDetailModuleRes", description = "Api 가대 상세 모듈 조회 응답 객체")
|
||||||
|
public class ApiTrestleDetailModuleResponse {
|
||||||
|
|
||||||
|
/** Module Type Code */
|
||||||
|
private String moduleTpCd;
|
||||||
|
|
||||||
|
/** Long Axis mm */
|
||||||
|
private double longAxis;
|
||||||
|
|
||||||
|
/** Short Axis1 mm */
|
||||||
|
private double shortAxis;
|
||||||
|
|
||||||
|
/** Thickness */
|
||||||
|
private double thickness;
|
||||||
|
|
||||||
|
/** Color */
|
||||||
|
private String color;
|
||||||
|
|
||||||
|
/** Module Max Rows */
|
||||||
|
private int moduleMaxRows;
|
||||||
|
|
||||||
|
/** Sort Order */
|
||||||
|
private int priority;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
package com.interplug.qcast.biz.master.dto;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Tag(name = "ApiTrestleDetailRackRes", description = "Api 가대 상세 랙 조회 응답 객체")
|
||||||
|
public class ApiTrestleDetailRackResponse {
|
||||||
|
|
||||||
|
/** Module Rows */
|
||||||
|
private int moduleRows;
|
||||||
|
|
||||||
|
/** Rack Rows Codes */
|
||||||
|
private String rackRowsCds;
|
||||||
|
|
||||||
|
/** Intervals */
|
||||||
|
private String intvls;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,51 @@
|
|||||||
|
package com.interplug.qcast.biz.master.dto;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Tag(name = "ApiTrestleDetailReq", description = "Api 가대 상세 조회 요청 객체")
|
||||||
|
public class ApiTrestleDetailRequest {
|
||||||
|
|
||||||
|
/** Language Code */
|
||||||
|
private String langCd;
|
||||||
|
|
||||||
|
/** Module Type Code */
|
||||||
|
private String moduleTpCd;
|
||||||
|
|
||||||
|
/** Roofing Material Code */
|
||||||
|
private String roofMatlCd;
|
||||||
|
|
||||||
|
/** Trestle Maker Code */
|
||||||
|
private String trestleMkrCd;
|
||||||
|
|
||||||
|
/** Construction Method Code */
|
||||||
|
private String constMthdCd;
|
||||||
|
|
||||||
|
/** Roof Base Code */
|
||||||
|
private String roofBaseCd;
|
||||||
|
|
||||||
|
/** Illumination Type */
|
||||||
|
private String illuminationTp;
|
||||||
|
|
||||||
|
/** Installation Height */
|
||||||
|
private String instHt;
|
||||||
|
|
||||||
|
/** Standard Wind Speed */
|
||||||
|
private String stdWindSpeed;
|
||||||
|
|
||||||
|
/** Standard Snow Load */
|
||||||
|
private String stdSnowLd;
|
||||||
|
|
||||||
|
/** Incline Code */
|
||||||
|
private String inclCd;
|
||||||
|
|
||||||
|
/** Construction Type */
|
||||||
|
private String constTp;
|
||||||
|
|
||||||
|
/** Mix Meterial No */
|
||||||
|
private int mixMatlNo;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,62 @@
|
|||||||
|
package com.interplug.qcast.biz.master.dto;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Tag(name = "ApiTrestleDetailRes", description = "Api 가대 상세 조회 응답 객체")
|
||||||
|
public class ApiTrestleDetailResponse {
|
||||||
|
|
||||||
|
/** Rack Yn */
|
||||||
|
private String rackYn;
|
||||||
|
|
||||||
|
/** Plover Possible Yn */
|
||||||
|
private String plvrYn;
|
||||||
|
|
||||||
|
/** Module Max Rows */
|
||||||
|
private int moduleMaxRows;
|
||||||
|
|
||||||
|
/** Module Max Columns */
|
||||||
|
private int moduleMaxCols;
|
||||||
|
|
||||||
|
/** Eave Interval */
|
||||||
|
private double eaveIntvl;
|
||||||
|
|
||||||
|
/** Ridge Interval */
|
||||||
|
private double ridgeIntvl;
|
||||||
|
|
||||||
|
/** Keraba Interval */
|
||||||
|
private double kerabaIntvl;
|
||||||
|
|
||||||
|
/** Module Interval Horizontal */
|
||||||
|
private double moduleIntvlHor;
|
||||||
|
|
||||||
|
/** Module Interval Vertical */
|
||||||
|
private double moduleIntvlVer;
|
||||||
|
|
||||||
|
/** Cover Plover Possible Yn */
|
||||||
|
private String cvrPlvrYn;
|
||||||
|
|
||||||
|
/** Less Support Fittings Qty */
|
||||||
|
private double lessSupFitQty;
|
||||||
|
|
||||||
|
/** Less Support Fittings Interval Percent */
|
||||||
|
private double lessSupFitIntvlPct;
|
||||||
|
|
||||||
|
/** Rack Qty */
|
||||||
|
private double rackQty;
|
||||||
|
|
||||||
|
/** Rack Interval Percent */
|
||||||
|
private double rackIntvlPct;
|
||||||
|
|
||||||
|
/** Module List */
|
||||||
|
private List<ApiTrestleDetailModuleResponse> module;
|
||||||
|
|
||||||
|
/** Rack List */
|
||||||
|
private List<ApiTrestleDetailRackResponse> rack;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,30 @@
|
|||||||
|
package com.interplug.qcast.biz.master.dto;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Tag(name = "ApiTrestleReq", description = "Api 가대 목록 조회 요청 객체")
|
||||||
|
public class ApiTrestleRequest {
|
||||||
|
|
||||||
|
/** Module Type Code */
|
||||||
|
private String moduleTpCd;
|
||||||
|
|
||||||
|
/** Roofing Material Code */
|
||||||
|
private String roofMatlCd;
|
||||||
|
|
||||||
|
/** Rafter Base Code */
|
||||||
|
private String raftBaseCd;
|
||||||
|
|
||||||
|
/** Trestle Maker Code */
|
||||||
|
private String trestleMkrCd;
|
||||||
|
|
||||||
|
/** Construction Method Code */
|
||||||
|
private String constMthdCd;
|
||||||
|
|
||||||
|
/** Roof Base Code */
|
||||||
|
private String roofBaseCd;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,63 @@
|
|||||||
|
package com.interplug.qcast.biz.master.dto;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Tag(name = "ApiTrestleRes", description = "Api 가대 목록 조회 응답 객체")
|
||||||
|
public class ApiTrestleResponse {
|
||||||
|
|
||||||
|
/** Module Type Code */
|
||||||
|
private String moduleTpCd;
|
||||||
|
|
||||||
|
/** Module Type Code Name */
|
||||||
|
private String moduleTpCdNm;
|
||||||
|
|
||||||
|
/** Module Type Code Japan */
|
||||||
|
private String moduleTpCdJp;
|
||||||
|
|
||||||
|
/** Roofing Material Code */
|
||||||
|
private String roofMatlCd;
|
||||||
|
|
||||||
|
/** Roofing Material Code Name */
|
||||||
|
private String roofMatlCdNm;
|
||||||
|
|
||||||
|
/** Roofing Material Code Japan */
|
||||||
|
private String roofMatlCdJp;
|
||||||
|
|
||||||
|
/** Trestle Maker Code */
|
||||||
|
private String trestleMkrCd;
|
||||||
|
|
||||||
|
/** Trestle Maker Code Name */
|
||||||
|
private String trestleMkrCdNm;
|
||||||
|
|
||||||
|
/** Trestle Maker Code Japan */
|
||||||
|
private String trestleMkrCdJp;
|
||||||
|
|
||||||
|
/** Construction Method Code */
|
||||||
|
private String constMthdCd;
|
||||||
|
|
||||||
|
/** Construction Method Code Name */
|
||||||
|
private String constMthdCdNm;
|
||||||
|
|
||||||
|
/** Construction Method Code Japan */
|
||||||
|
private String constMthdCdJp;
|
||||||
|
|
||||||
|
/** Roof Base Code */
|
||||||
|
private String roofBaseCd;
|
||||||
|
|
||||||
|
/** Roof Base Code Name */
|
||||||
|
private String roofBaseCdNm;
|
||||||
|
|
||||||
|
/** Roof Base Code Japan */
|
||||||
|
private String roofBaseCdJp;
|
||||||
|
|
||||||
|
/** Rack Yn */
|
||||||
|
private String rackYn;
|
||||||
|
|
||||||
|
/** Sort Order */
|
||||||
|
private int priority;
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user