refactor: controller class 정리

dev
Jonguk. Lim 5 months ago
parent a6f98e999e
commit e2ed1e528a

@ -96,7 +96,7 @@ public class AddsNimsController extends AbstractController {
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
// 보고 문서 관리 // 보고 문서 관리
//------------------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------------------
@RequestMapping(value = "dsuseMgtRslt-list.do", name="결과[통보] 처리 조회") @RequestMapping(value = "dsuseMgtDoc-list.do", name="결과[통보] 처리 조회")
public ModelAndView getDsuseMgtDocList(DsuseMgtReceiptQuery query) { public ModelAndView getDsuseMgtDocList(DsuseMgtReceiptQuery query) {
// FIXME : nims_query.sql의 '보고문서 관리' query를 참조하여 구현 // FIXME : nims_query.sql의 '보고문서 관리' query를 참조하여 구현
return null; return null;

@ -295,9 +295,8 @@
userId: "${currentUser.account}" userId: "${currentUser.account}"
} }
let fileArr = [];
var fileArr = []; $("#tbody--productList").find("input[type='file'][name='dsusePrdImgFiles']").each(() => {
$("#tbody--productList").find("input[type='file'][name='dsusePrdImgFiles']").each(function (i) {
fileArr.push(this.files[0]); fileArr.push(this.files[0]);
}); });
@ -306,19 +305,7 @@
dsuseMgtDtlsJsonStr: JSON.stringify(datasetListPrd), dsuseMgtDtlsJsonStr: JSON.stringify(datasetListPrd),
// 폐기상품이미지목록 // 폐기상품이미지목록
dsusePrdImgFiles: fileArr dsusePrdImgFiles: fileArr
} };
let formData = new FormData();
formData.append("dsuseMgtJsonStr", JSON.stringify(saveBsshData));
formData.append("dsuseMgtDtlsJsonStr", JSON.stringify(datasetListPrd));
debugger;
$("input[type='file'][name='dsusePrdImgFiles']").each(function (i) {
//formData.append("dsusePrdImgFiles", $('input[type=file]')[i].files[0]);
formData.append("dsusePrdImgFiles", this.files[0]);
});
let create = (jsonBssh.dscdmngId == ""); let create = (jsonBssh.dscdmngId == "");
@ -332,7 +319,6 @@ debugger;
}); });
return; return;
} }
debugger
//$P.control.onSave(resp) //$P.control.onSave(resp)
dialog.alert("저장됐습니다."); dialog.alert("저장됐습니다.");

Loading…
Cancel
Save