|
|
@ -260,6 +260,12 @@ public class AddsNimsController extends ApplicationController {
|
|
|
|
return setCollectionInfo(new ModelAndView("jsonView"), dsuseMgtDocService.getDsuseMgtDocList(query),"","");
|
|
|
|
return setCollectionInfo(new ModelAndView("jsonView"), dsuseMgtDocService.getDsuseMgtDocList(query),"","");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/getHwpForRptDoc.do", name="보고문서 출력 상세 목록 조회", produces = "application/json;charset=UTF-8")
|
|
|
|
|
|
|
|
public ModelAndView getHwpForRptDoc(@ModelAttribute NimsApiRequest.DsuseMgtInqReq dto) {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/makeDisposeResultReportHwp.do", name="폐기결과보고서 HWP파일 생성")
|
|
|
|
@RequestMapping(value="/makeDisposeResultReportHwp.do", name="폐기결과보고서 HWP파일 생성")
|
|
|
|
public ModelAndView makeDisposeResultReportHwp(String dtls) {
|
|
|
|
public ModelAndView makeDisposeResultReportHwp(String dtls) {
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
@ -631,13 +637,27 @@ public class AddsNimsController extends ApplicationController {
|
|
|
|
ApiBaseResponse<List<JSONObject>> parse = json.parse(rslt, new TypeReference<>() {});
|
|
|
|
ApiBaseResponse<List<JSONObject>> parse = json.parse(rslt, new TypeReference<>() {});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<JSONObject> respData = parse.getData();
|
|
|
|
|
|
|
|
List<DataObject> dataForRptdoc = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(JSONObject mgtMaster : respData) {
|
|
|
|
|
|
|
|
List<DataObject> mgtDetails = (List<DataObject>)mgtMaster.get("dsuseMgtDtls");
|
|
|
|
|
|
|
|
String[] keys = mgtMaster.keySet().toArray(new String[mgtMaster.keySet().size()]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mgtDetails.stream().map((detail)->{
|
|
|
|
|
|
|
|
for(String key : keys) {
|
|
|
|
|
|
|
|
if(key.equals("dsuseMgtDtls")) {
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(key.equals("bsshNm") || key.equals("bsshCd")){
|
|
|
|
|
|
|
|
detail.put(key+"0", mgtMaster.get(key));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return detail;
|
|
|
|
|
|
|
|
}).toList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataForRptdoc.addAll(mgtDetails);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return parse;
|
|
|
|
return parse;
|
|
|
|
}
|
|
|
|
}
|
|
|
|