|
|
@ -78,6 +78,9 @@ public class AddsNimsController extends ApplicationController {
|
|
|
|
@Value("${app.inf.nims.api.prdMnfSeqInfoOfBarcode}")
|
|
|
|
@Value("${app.inf.nims.api.prdMnfSeqInfoOfBarcode}")
|
|
|
|
private String prdMnfSeqInfoOfBarcodeEndpoint;
|
|
|
|
private String prdMnfSeqInfoOfBarcodeEndpoint;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${app.inf.nims.api.dsuseMgtListForRptDoc}")
|
|
|
|
|
|
|
|
private String dsuseMgtListForRptDocEndpoint;
|
|
|
|
|
|
|
|
|
|
|
|
@Resource(name="sigunguDepartmentService")
|
|
|
|
@Resource(name="sigunguDepartmentService")
|
|
|
|
private SigunguDepartmentService sggDeptService;
|
|
|
|
private SigunguDepartmentService sggDeptService;
|
|
|
|
|
|
|
|
|
|
|
@ -621,4 +624,59 @@ public class AddsNimsController extends ApplicationController {
|
|
|
|
String rslt = ApiUtil.callNimsApi(apiHost + productAndseqInfoEndpoint, dto);
|
|
|
|
String rslt = ApiUtil.callNimsApi(apiHost + productAndseqInfoEndpoint, dto);
|
|
|
|
return json.parse(rslt, new TypeReference<>() {});
|
|
|
|
return json.parse(rslt, new TypeReference<>() {});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/getDsuseMgtListForRptDoc.do", name="보고문서 출력 상세 목록 조회", produces = "application/json;charset=UTF-8")
|
|
|
|
|
|
|
|
public @ResponseBody ApiBaseResponse<List<JSONObject>> getDsuseMgtListForRptDoc(@ModelAttribute NimsApiRequest.DsuseMgtInqReq dto) {
|
|
|
|
|
|
|
|
String rslt = ApiUtil.callNimsApi(apiHost + dsuseMgtListForRptDocEndpoint, dto);
|
|
|
|
|
|
|
|
ApiBaseResponse<List<JSONObject>> parse = json.parse(rslt, new TypeReference<>() {});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return parse;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(let dsuseMgtMaster of respData){
|
|
|
|
|
|
|
|
dsuseMgtMaster.dsuseMgtDtls.map((dtl) => {
|
|
|
|
|
|
|
|
keys = Object.keys(dsuseMgtMaster);
|
|
|
|
|
|
|
|
for(let key of keys){
|
|
|
|
|
|
|
|
if(key == "dsuseMgtDtls"){
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(key == "bsshNm" || key == "bsshCd"){
|
|
|
|
|
|
|
|
dtl[key+"0"] = dsuseMgtMaster[key];
|
|
|
|
|
|
|
|
} else if(dtl[key] == undefined){
|
|
|
|
|
|
|
|
dtl[key] = dsuseMgtMaster[key];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return dtl;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let dtls = [];
|
|
|
|
|
|
|
|
for(let i=0; i < respData.length; i++){
|
|
|
|
|
|
|
|
dtls = dtls.concat(respData[i].dsuseMgtDtls);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let url = "";
|
|
|
|
|
|
|
|
if(ADDS12 == "01"){
|
|
|
|
|
|
|
|
url = wctx.url("/adds/nims/makeDisposeResultReportHwp.do");
|
|
|
|
|
|
|
|
} else if(ADDS12 == "02"){
|
|
|
|
|
|
|
|
url = wctx.url("/adds/nims/makeDisposeProcessDetailsHwp.do");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|