|
|
|
@ -160,32 +160,22 @@ public class AddsNimsController extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/dsuseMgtReceipt-info.do", name="신청서 접수 상세")
|
|
|
|
|
public ModelAndView getDsuseMgtReceiptInfo(DsuseRsltInfo dsuseReceptInfo, String productList) {
|
|
|
|
|
public ModelAndView getDsuseMgtReceiptInfo(DsuseRsltInfo dsuseReceptInfo) {
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
setCmmCode("ADDS04", mav);
|
|
|
|
|
|
|
|
|
|
List<DataObject> fileInfo = new ArrayList<DataObject>();
|
|
|
|
|
if(fileInfo == null) { fileInfo = new ArrayList<DataObject>();}
|
|
|
|
|
fileInfo = fileInfo.stream()
|
|
|
|
|
.filter((item) -> item.string("USE_YN").equals("Y"))
|
|
|
|
|
.sorted((item1, item2) -> item1.string("SUB_TYPE").compareTo(item2.string("SUB_TYPE")))
|
|
|
|
|
.toList();
|
|
|
|
|
List<DataObject> fileInfo = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
if(!isEmpty(dsuseReceptInfo) && !isEmpty(dsuseReceptInfo.getDscdmngId())){
|
|
|
|
|
mav.setViewName("adds/nims/dsuseMgtReceipt-edit");
|
|
|
|
|
mav.addObject("dsuseReceptInfo", toJson(dsuseReceptInfo));
|
|
|
|
|
mav.addObject("dsuseReceptDtlInfo", toJson(dsuseMgtReceiptService.getDsuseMgtDetailList(dsuseReceptInfo.getDscdmngId())));
|
|
|
|
|
|
|
|
|
|
FileQuery fileQuery = new FileQuery().setInfoType("100").setInfoKeys(dsuseReceptInfo.getDscdmngId()).setOrderBy("SUB_TYPE");
|
|
|
|
|
fileInfo = fileService.getFileList(fileQuery);
|
|
|
|
|
}else{
|
|
|
|
|
mav.setViewName("adds/nims/dsuseMgtReceipt-info");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(productList != null) {
|
|
|
|
|
List<DsuseReceiptDtl> DsuseReceiptDtls = fromJson(productList, new TypeReference<List<DsuseReceiptDtl>>() {});
|
|
|
|
|
mav.addObject("dsuseReceptDtlInfo", toJson(DsuseReceiptDtls));
|
|
|
|
|
mav.setViewName("adds/nims/dsuseMgtReceipt-edit");
|
|
|
|
|
}else{
|
|
|
|
|
mav.addObject("dsuseReceptDtlInfo", toJson(new ArrayList<DsuseReceiptDtl>()));
|
|
|
|
|
mav.setViewName("adds/nims/dsuseMgtReceipt-info");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mav.addObject("fileInfo", toJson(fileInfo));
|
|
|
|
|