소스 정리

main
이범준 5 months ago
parent 183636b84d
commit b2589230d2

@ -13,7 +13,6 @@ public class OgdpQuery extends QueryRequest {
private String useYn; // 사용 여부
private String delYn; // 삭제 여부
private String selectAdd;
public String getSggCd() {
return ifEmpty(sggCd, () -> null);
@ -60,12 +59,5 @@ public class OgdpQuery extends QueryRequest {
return self();
}
public String getSelectAdd() {
return ifEmpty(selectAdd, () -> null);
}
public <T extends OgdpQuery> T setSelectAdd(String selectAdd) {
this.selectAdd = selectAdd;
return self();
}
}

@ -16,6 +16,30 @@ import cokr.xit.foundation.data.DataObject;
@Mapper("ogdpMapper")
public interface OgdpMapper extends AbstractMapper {
public static String selectAdd = """
, D.CVLCPT_LINK_SE_CD <!-- -->
, D.VRBACNT_LINK_SE_CD <!-- -->
, D.PSTOFC_NM <!-- -->
, D.RG_NO_HEADER <!-- -->
, D.SNDNG_LINK_SE_CD <!-- -->
, D.EGP_CON_ORG <!-- E -->
, D.EGP_RCEPT_ID <!-- E -->
, D.EGP_APVL_NB <!-- E -->
, D.EGP_ESB_PATH <!-- E ESB -->
, D.EGP_POST_INST_ID <!-- E ID -->
, D.EGP_CERT_CN <!-- E CN -->
, D.ENS_INTERFACE_ID <!-- ID -->
, D.ENS_SOURCE_CD <!-- -->
, D.ENS_TARGET_CD <!-- -->
, D.ENS_URL <!-- URL -->
, D.NXRP_LINK_YN <!-- -->
, D.NXRP_LINK_SRVC_URL <!-- URL -->
, D.NXRP_RGN_SE_CD <!-- -->
, D.DTBN_BANK_NM <!-- -->
, D.DTBN_ACTNO <!-- -->
, D.DOC_HEADER <!-- 릿 -->
, D.SRVR_OS <!-- OS -->
""";
/** , .<br />
* @param
@ -345,7 +369,6 @@ public interface OgdpMapper extends AbstractMapper {
</where>
""";
String selectAdd = req.getSelectAdd() == null ? "" : req.getSelectAdd();
return select + selectAdd + fromWhere;
}

@ -20,30 +20,7 @@ import cokr.xit.foundation.data.DataObject;
@Component("ogdpBean")
public class OgdpBean extends AbstractBean {
public static String selectAdd = """
, D.CVLCPT_LINK_SE_CD <!-- -->
, D.VRBACNT_LINK_SE_CD <!-- -->
, D.PSTOFC_NM <!-- -->
, D.RG_NO_HEADER <!-- -->
, D.SNDNG_LINK_SE_CD <!-- -->
, D.EGP_CON_ORG <!-- E -->
, D.EGP_RCEPT_ID <!-- E -->
, D.EGP_APVL_NB <!-- E -->
, D.EGP_ESB_PATH <!-- E ESB -->
, D.EGP_POST_INST_ID <!-- E ID -->
, D.EGP_CERT_CN <!-- E CN -->
, D.ENS_INTERFACE_ID <!-- ID -->
, D.ENS_SOURCE_CD <!-- -->
, D.ENS_TARGET_CD <!-- -->
, D.ENS_URL <!-- URL -->
, D.NXRP_LINK_YN <!-- -->
, D.NXRP_LINK_SRVC_URL <!-- URL -->
, D.NXRP_RGN_SE_CD <!-- -->
, D.DTBN_BANK_NM <!-- -->
, D.DTBN_ACTNO <!-- -->
, D.DOC_HEADER <!-- 릿 -->
, D.SRVR_OS <!-- OS -->
""";
@Resource(name="ogdpMapper")
private OgdpMapper ogdpMapper;
@ -122,7 +99,7 @@ public class OgdpBean extends AbstractBean {
}
}
query.setSelectAdd(selectAdd);
return ogdpMapper.selectDeptList(query);
}
@ -130,7 +107,7 @@ public class OgdpBean extends AbstractBean {
public DataObject getDeptInfo(OgdpQuery query) {
query.setSelectAdd(selectAdd);
return ogdpMapper.selectDeptInfo(query);
}

Loading…
Cancel
Save