소스정리

main
이범준 5 months ago
parent 4e3fdf6952
commit 1b84e85ec8

@ -71,68 +71,7 @@ public class FimsOgdpBean extends AbstractOgdpBean {
} }
@Override
public boolean createDept(Department dept) {
if(dept != null && dept instanceof FimsDepartment fimsDept) {
String insertIntoAdd = """
, CVLCPT_LINK_SE_CD <!-- -->
, VRBACNT_LINK_SE_CD <!-- -->
, PSTOFC_NM <!-- -->
, RG_NO_HEADER <!-- -->
, SNDNG_LINK_SE_CD <!-- -->
, EGP_CON_ORG <!-- E -->
, EGP_RCEPT_ID <!-- E -->
, EGP_APVL_NB <!-- E -->
, EGP_ESB_PATH <!-- E ESB -->
, EGP_POST_INST_ID <!-- E ID -->
, EGP_CERT_CN <!-- E CN -->
, ENS_INTERFACE_ID <!-- ID -->
, ENS_SOURCE_CD <!-- -->
, ENS_TARGET_CD <!-- -->
, ENS_URL <!-- URL -->
, NXRP_LINK_YN <!-- -->
, NXRP_RGN_SE_CD <!-- -->
, DTBN_BANK_NM <!-- -->
, DTBN_ACTNO <!-- -->
, DOC_HEADER <!-- 릿 -->
, SRVR_OS <!-- OS -->
""";
String valuesAdd = """
, #{dept.cvlcptLinkSeCd} <!-- -->
, #{dept.vrbacntLinkSeCd} <!-- -->
, #{dept.pstofcNm} <!-- -->
, #{dept.rgNoHeader} <!-- -->
, #{dept.sndngLinkSeCd} <!-- -->
, #{dept.egpConOrg} <!-- E -->
, #{dept.egpRceptId} <!-- E -->
, #{dept.egpApvlNb} <!-- E -->
, #{dept.egpEsbPath} <!-- E ESB -->
, #{dept.egpPostInstId} <!-- E ID -->
, #{dept.egpCertCn} <!-- E CN -->
, #{dept.ensInterfaceId} <!-- ID -->
, #{dept.ensSourceCd} <!-- -->
, #{dept.ensTargetCd} <!-- -->
, #{dept.ensUrl} <!-- URL -->
, #{dept.nxrpLinkYn} <!-- -->
, #{dept.nxrpRgnSeCd} <!-- -->
, #{dept.dtbnBankNm} <!-- -->
, #{dept.dtbnActno} <!-- -->
, #{dept.docHeader} <!-- 릿 -->
, #{dept.srvrOs} <!-- OS -->
""";
boolean result = ogdpMapper.insertDept(
new DataObject()
.set("currentUser", currentUser())
.set("dept", fimsDept)
.set("insertIntoAdd", insertIntoAdd)
.set("valuesAdd",valuesAdd)) == 1;
return result;
}
return false;
}
@Override @Override
public boolean updateDept(Department dept) { public boolean updateDept(Department dept) {

@ -29,9 +29,7 @@ public class Mngt04Controller extends ApplicationController {
public static final String public static final String
deptMngtMain = "/010/main.do" deptMngtMain = "/010/main.do"
, getDeptList = "/010/list.do" , getDeptList = "/010/list.do"
, removeDept = "/010/remove.do"
, getDeptInfo = "/020/info.do" , getDeptInfo = "/020/info.do"
, createDept = "/020/create.do"
, updateDept = "/020/update.do" , updateDept = "/020/update.do"
; ;
} }
@ -98,38 +96,8 @@ public class Mngt04Controller extends ApplicationController {
return mav; return mav;
} }
/** .
* @param deptCds
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@RequestMapping(name="부서 삭제", value=METHOD_URL.removeDept)
public ModelAndView removeDept(String... deptCds) {
ModelAndView mav = new ModelAndView("jsonView");
boolean saved = fimsOgdpBean.remove(deptCds);
mav.addObject("saved", saved);
return mav;
}
/** .
* @param dept
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@RequestMapping(name="부서 등록", value=METHOD_URL.createDept)
public ModelAndView createDept(FimsDepartment dept) {
ModelAndView mav = new ModelAndView("jsonView");
boolean saved = fimsOgdpBean.createDept(dept);
mav.addObject("saved", saved);
return mav;
}
/** . /** .
* @param dept * @param dept

@ -27,12 +27,9 @@
<input name="instNm" type="text" class="form-control" readonly /> <input name="instNm" type="text" class="form-control" readonly />
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<label class="w-px-140 col-form-label text-sm-end pe-2" for=""> <input name="instZipCode" type="text" class="form-control w-px-80" hidden />
주소 <input name="instAddress" type="text" class="form-control w-px-300" hidden />
</label> <input name="instDetailAddress" type="text" class="form-control w-px-300" hidden />
<input name="instZipCode" type="text" class="form-control w-px-80" />
<input name="instAddress" type="text" class="form-control w-px-300" />
<input name="instDetailAddress" type="text" class="form-control w-px-300" />
</div> </div>
<div class="col-md-4 d-flex align-items-center"> <div class="col-md-4 d-flex align-items-center">
<label class="w-px-140 col-form-label text-sm-end pe-2"> <label class="w-px-140 col-form-label text-sm-end pe-2">

Loading…
Cancel
Save