1. 법인 휴대전화번호 컬럼 추가.

2. 기타 수정.
main
JoJH 1 year ago
parent 7e94455564
commit 43cdd8c74d

@ -123,8 +123,6 @@ public class Mngt01Controller extends ApplicationController {
List<DataObject> list = ntcService.getNtcList(req);
return setPagingInfo(mav, list, "");
}
/** .<br />

@ -42,6 +42,11 @@ public class RentEnt extends AbstractEntity {
*/
private String entTelno;
/**
*
*/
private String entMblTelno;
/**
*
*/

@ -96,21 +96,21 @@ public interface LsctMpngMapper extends AbstractMapper {
return !crdnLscts.isEmpty() ? crdnLscts.get(0) : null;
}
/** .
/** .
* @param req
* @return
* @return
*/
List<DataObject> selectLsctMpngList(RentQuery req);
/** .
* @param req
* @return
/** .
* @param req
* @return
*/
List<DataObject> selectLsctMpngs(RentQuery req);
/** .
/** .
* @param req
* @return
* @return
*/
default DataObject selectLsctMpngInfo(RentQuery req) {
// 삭제 여부 확인
@ -127,6 +127,12 @@ public interface LsctMpngMapper extends AbstractMapper {
return !lscts.isEmpty() ? lscts.get(0) : null;
}
/** .
* @param req
* @return
*/
List<DataObject> selectLsctMpngNocs(RentQuery req);
/** .
* @param params
* <ul><li>"lsct" - </li>

@ -62,6 +62,12 @@ public interface LsctMpngService {
*/
DataObject getLsctMpngInfo(RentQuery req);
/** .
* @param req
* @return
*/
List<DataObject> getLsctMpngNocs(RentQuery req);
/** .
* @param req
* @return

@ -70,7 +70,6 @@ public class LsctMpngBean extends AbstractBean {
@Resource(name = "fileBean")
private FileBean fileBean;
/** 납부자 대장 정보 Bean */
@Resource(name = "payerBean")
private PayerBean payerBean;
@ -612,10 +611,10 @@ public class LsctMpngBean extends AbstractBean {
return lsctMpngMapper.selectCrdnLsctMpngInfo(req);
}
/** .
/** .
* TB_CRDN, TB_PAYER .
* @param req
* @return
* @return
* @throws JSchException
* @throws NumberFormatException
*/
@ -623,22 +622,30 @@ public class LsctMpngBean extends AbstractBean {
return lsctMpngMapper.selectLsctMpngList(req);
}
/** .
/** .
* @param req
* @return
* @return
*/
public List<DataObject> getLsctMpngs(RentQuery req) {
return lsctMpngMapper.selectLsctMpngs(req);
}
/** .
/** .
* @param req
* @return
* @return
*/
public DataObject getLsctMpngInfo(RentQuery req) {
return lsctMpngMapper.selectLsctMpngInfo(req);
}
/** .
* @param req
* @return
*/
public List<DataObject> getLsctMpngNocs(RentQuery req) {
return lsctMpngMapper.selectLsctMpngNocs(req);
}
/** .
* TB_CRDN, TB_PAYER .
* @param req

@ -100,6 +100,11 @@ public class LsctMpngServiceBean extends AbstractServiceBean implements LsctMpng
return lsctMpngBean.getLsctMpngInfo(req);
}
@Override
public List<DataObject> getLsctMpngNocs(RentQuery req) {
return lsctMpngBean.getLsctMpngNocs(req);
}
@Override
public List<DataObject> getLsctAprvToMpngList(RentQuery req) {
return lsctMpngBean.getLsctAprvToMpngList(req);

@ -72,6 +72,7 @@ public class Rent02Controller extends ApplicationController {
, removeAttachmentFile = "/040/removeAtchFile.do" // 임대차계약 첨부 파일 삭제
, leaseContractMappingMain = "/050/main.do" // 임대차계약 매핑 대장 관리 메인 화면
, getLeaseContractMappingList = "/050/list.do" // 임대차계약 매핑 대장 관리 대장 목록 조회
, getLeaseContractMappingNumberList = "/050/nocsList.do" // 임대차계약 매핑 대장 건수 조회
, createLeaseContractApproval = "/050/createAprv.do" // 임대차계약 승인 대장 등록
, removeLeaseContractApproval = "/050/removeAprv.do" // 임대차계약 승인 대장 삭제
, getLeaseContractMappingInfo = "/060/info.do" // 임대차계약 매핑 대장 관리 상세 화면
@ -490,7 +491,7 @@ public class Rent02Controller extends ApplicationController {
* {@link #getLsctList(LsctQuery) } .
* @return fims/rent/rent02050-main
*/
@RequestMapping(name = "임대차계약 승인 대장 관리 메인", value=METHOD_URL.leaseContractMappingMain)
@RequestMapping(name = "임대차계약 매핑 대장 관리 메인", value=METHOD_URL.leaseContractMappingMain)
public ModelAndView leaseContractMappingMain() {
ModelAndView mav = new ModelAndView("fims/rent/rent02050-main");
@ -523,7 +524,7 @@ public class Rent02Controller extends ApplicationController {
* }</code></pre>
*/
@Task("CMN")
@RequestMapping(name = "임대차계약 승인 대장 관리 조회", value=METHOD_URL.getLeaseContractMappingList)
@RequestMapping(name = "임대차계약 매핑 대장 관리 조회", value=METHOD_URL.getLeaseContractMappingList)
public ModelAndView getLeaseContractMappingList(RentQuery req) {
if (!"xls".equals(req.getDownload())) {
List<?> result = lsctMpngService.getLsctAprvToMpngList(setFetchSize(req));
@ -584,6 +585,18 @@ public class Rent02Controller extends ApplicationController {
}
}
@Task("CMN")
@RequestMapping(name = "임대차계약 매핑 대장 건수 조회", value=METHOD_URL.getLeaseContractMappingNumberList)
public ModelAndView getLeaseContractMappingNumberList(RentQuery req) {
ModelAndView mav = new ModelAndView("jsonView");
setFetchSize(req);
List<DataObject> list = lsctMpngService.getLsctMpngNocs(req);
return setPagingInfo(mav, list, "");
}
/** .
* @param lsctAprv
* @return jsonView

@ -852,9 +852,9 @@
, (CONCAT(L.CTRT_BGNG_YMD, L.CTRT_BGNG_TM)) AS CTRT_BGNG_DT <!-- 계약 시작 일시 -->
, L.CTRT_END_YMD <!-- 계약 종료 시각 -->
, L.CTRT_END_TM <!-- 계약 종료 일시 -->
, (CONCAT(L.CTRT_END_YMD, L.CTRT_END_TM)) AS CTRT_END_DT <!-- 계약 종료 일시 -->
, (CONCAT(L.CTRT_END_YMD, L.CTRT_END_TM)) AS CTRT_END_DT <!-- 계약 종료 일시 -->
, L.HIRER_SE_CD <!-- 임차인 구분 코드 -->
, (GET_CODE_NM('FIM089', L.HIRER_SE_CD)) AS HIRER_SE_NM <!-- 임차인 구분 명 -->
, (GET_CODE_NM('FIM089', L.HIRER_SE_CD)) AS HIRER_SE_NM <!-- 임차인 구분 명 -->
, L.HIRER_REG_NO <!-- 임차인 등록 번호 -->
, L.HIRER_NM <!-- 임차인 명 -->
, L.HIRER_TELNO <!-- 임차인 전화번호 -->
@ -898,6 +898,12 @@
</if>
<if test="schVhrno != null">
AND LM.VHRNO = #{schVhrno} <!-- 차량번호 -->
</if>
<if test="schDmndDtFrom != null">
AND LM.DMND_DT <![CDATA[>=]]> CONCAT(#{schDmndDtFrom}, '000000') <!-- 요청 일자 시작 -->
</if>
<if test="schDmndDtTo != null">
AND LM.DMND_DT <![CDATA[<=]]> CONCAT(#{schDmndDtTo}, '235959') <!-- 요청 일자 종료 -->
</if>
<if test="rtpyrNos != null">
AND LM.RTPYR_NO IN ( <!-- 납부자 번호s -->
@ -980,6 +986,23 @@
<include refid="utility.orderBy" />
</select>
<select id="selectLsctMpngNocs" parameterType="map" resultType="dataobject">/* 임대차계약 매핑 대장 건수 가져오기(lsctMpngMapper.selectLsctMpngNocs) */
SELECT LM.CHG_APRV_STTS_CD <!-- 변경 승인 상태 코드 -->
, (GET_CODE_NM('CMN010', LM.CHG_APRV_STTS_CD)) AS CHG_APRV_STTS_NM <!-- 변경 승인 상태 명 -->
, COUNT(*) <!-- 건수 -->
FROM TB_LSCT_MPNG LM
<where>
<if test="schDmndDtFrom != null">
AND LM.DMND_DT <![CDATA[>=]]> CONCAT(#{schDmndDtFrom}, '000000') <!-- 요청 일자 시작 -->
</if>
<if test="schDmndDtTo != null">
AND LM.DMND_DT <![CDATA[<=]]> CONCAT(#{schDmndDtTo}, '235959') <!-- 요청 일자 종료 -->
</if>
AND LM.DEL_YN = 'N' <!-- 삭제 여부 -->
</where>
GROUP BY LM.CHG_APRV_STTS_CD
</select>
<insert id="insertLsctMpng" parameterType="cokr.xit.fims.rent.LsctMpng">/* 임대차계약 매핑 대장 등록(lsctMpngMapper.insertLsctMpng) */
<selectKey resultType="string" keyProperty="lsctMpngId" keyColumn="NEW_ID" order="BEFORE">
<include refid="numbering.keyByYear">

@ -8,25 +8,26 @@
============================ -->
<resultMap id="rentEntRow" type="cokr.xit.fims.rent.RentEnt"> <!-- 임대 기업 대장 -->
<result property="entId" column="ENT_ID" /> <!-- 기업 ID -->
<result property="entSeCd" column="ENT_SE_CD" /> <!-- 기업 구분 코드 -->
<result property="entNm" column="ENT_NM" /> <!-- 기업 명 -->
<result property="entRegNo" column="ENT_REG_NO" /> <!-- 기업 번호 -->
<result property="rprsvNm" column="RPRSV_NM" /> <!-- 대표자 명 -->
<result property="entTelno" column="ENT_TELNO" /> <!-- 기업 전화번호 -->
<result property="entFxno" column="ENT_FXNO" /> <!-- 기업 팩스번호 -->
<result property="entEmlAddr" column="ENT_EML_ADDR" /> <!-- 기업 이메일 주소 -->
<result property="entZip" column="ENT_ZIP" /> <!-- 기업 우편번호 -->
<result property="entAddr" column="ENT_ADDR" /> <!-- 기업 주소 -->
<result property="entDtlAddr" column="ENT_DTL_ADDR" /> <!-- 기업 상세 주소 -->
<result property="delYn" column="DEL_YN" /> <!-- 삭제 여부 -->
<result property="createdAt" column="REG_DT" /> <!-- 등록 일시 -->
<result property="createdBy" column="RGTR" /> <!-- 등록자 -->
<result property="lastModified" column="MDFCN_DT" /> <!-- 수정 일시 -->
<result property="modifiedBy" column="MDFR" /> <!-- 수정자 -->
<result property="removedAt" column="DEL_DT" /> <!-- 삭제 일시 -->
<result property="removedBy" column="DLTR" /> <!-- 삭제자 -->
<result property="delRsn" column="DEL_RSN" /> <!-- 삭제 사유 -->
<result property="entId" column="ENT_ID" /> <!-- 기업 ID -->
<result property="entSeCd" column="ENT_SE_CD" /> <!-- 기업 구분 코드 -->
<result property="entNm" column="ENT_NM" /> <!-- 기업 명 -->
<result property="entRegNo" column="ENT_REG_NO" /> <!-- 기업 번호 -->
<result property="rprsvNm" column="RPRSV_NM" /> <!-- 대표자 명 -->
<result property="entTelno" column="ENT_TELNO" /> <!-- 기업 전화번호 -->
<result property="entMblTelno" column="ENT_MBL_TELNO" /> <!-- 기업 휴대 전화번호 -->
<result property="entFxno" column="ENT_FXNO" /> <!-- 기업 팩스번호 -->
<result property="entEmlAddr" column="ENT_EML_ADDR" /> <!-- 기업 이메일 주소 -->
<result property="entZip" column="ENT_ZIP" /> <!-- 기업 우편번호 -->
<result property="entAddr" column="ENT_ADDR" /> <!-- 기업 주소 -->
<result property="entDtlAddr" column="ENT_DTL_ADDR" /> <!-- 기업 상세 주소 -->
<result property="delYn" column="DEL_YN" /> <!-- 삭제 여부 -->
<result property="createdAt" column="REG_DT" /> <!-- 등록 일시 -->
<result property="createdBy" column="RGTR" /> <!-- 등록자 -->
<result property="lastModified" column="MDFCN_DT" /> <!-- 수정 일시 -->
<result property="modifiedBy" column="MDFR" /> <!-- 수정자 -->
<result property="removedAt" column="DEL_DT" /> <!-- 삭제 일시 -->
<result property="removedBy" column="DLTR" /> <!-- 삭제자 -->
<result property="delRsn" column="DEL_RSN" /> <!-- 삭제 사유 -->
</resultMap>
<sql id="select">
@ -37,6 +38,7 @@
, RE.ENT_REG_NO <!-- 기업 등록 번호 -->
, RE.RPRSV_NM <!-- 대표자 명 -->
, RE.ENT_TELNO <!-- 기업 전화번호 -->
, RE.ENT_MBL_TELNO <!-- 기업 휴대 전화번호 -->
, RE.ENT_FXNO <!-- 기업 팩스번호 -->
, RE.ENT_EML_ADDR <!-- 기업 이메일 주소 -->
, RE.ENT_ZIP <!-- 기업 우편번호 -->
@ -111,6 +113,7 @@
, ENT_REG_NO <!-- 기업 등록 번호 -->
, RPRSV_NM <!-- 대표자 명 -->
, ENT_TELNO <!-- 기업 전화번호 -->
, ENT_MBL_TELNO <!-- 기업 휴대 전화번호 -->
, ENT_FXNO <!-- 기업 팩스번호 -->
, ENT_EML_ADDR <!-- 기업 이메일 주소 -->
, ENT_ZIP <!-- 기업 우편번호 -->
@ -132,6 +135,7 @@
, #{entRegNo} <!-- 기업 등록 번호 -->
, #{rprsvNm} <!-- 대표자 명 -->
, #{entTelno} <!-- 기업 전화번호 -->
, #{entMblTelno} <!-- 기업 휴대 전화번호 -->
, #{entFxno} <!-- 기업 팩스번호 -->
, #{entEmlAddr} <!-- 기업 이메일 주소 -->
, #{entZip} <!-- 기업 우편번호 -->
@ -150,20 +154,21 @@
<update id="updateRentEnt" parameterType="cokr.xit.fims.rent.RentEnt">/* 임대 기업 대장 수정(rentEntMapper.updateRentEnt) */
UPDATE TB_RENT_ENT
SET ENT_SE_CD = #{entSeCd} <!-- 기업 구분 코드 -->
, ENT_NM = #{entNm} <!-- 기업 명 -->
, ENT_REG_NO = #{entRegNo} <!-- 기업 등록 번호 -->
, RPRSV_NM = #{rprsvNm} <!-- 대표자 명 -->
, ENT_TELNO = #{entTelno} <!-- 기업 전화번호 -->
, ENT_FXNO = #{entFxno} <!-- 기업 팩스번호 -->
, ENT_EML_ADDR = #{entEmlAddr} <!-- 기업 이메일 주소 -->
, ENT_ZIP = #{entZip} <!-- 기업 우편번호 -->
, ENT_ADDR = #{entAddr} <!-- 기업 주소 -->
, ENT_DTL_ADDR = #{entDtlAddr} <!-- 기업 상세 주소 -->
, MDFCN_DT = <include refid="utility.now" /> <!-- 수정 일시 -->
, MDFR = #{modifiedBy} <!-- 수정자 -->
WHERE ENT_ID = #{entId} <!-- 기업 ID -->
AND DEL_YN = 'N'
SET ENT_SE_CD = #{entSeCd} <!-- 기업 구분 코드 -->
, ENT_NM = #{entNm} <!-- 기업 명 -->
, ENT_REG_NO = #{entRegNo} <!-- 기업 등록 번호 -->
, RPRSV_NM = #{rprsvNm} <!-- 대표자 명 -->
, ENT_TELNO = #{entTelno} <!-- 기업 전화번호 -->
, ENT_MBL_TELNO = #{entMblTelno} <!-- 기업 휴대 전화번호 -->
, ENT_FXNO = #{entFxno} <!-- 기업 팩스번호 -->
, ENT_EML_ADDR = #{entEmlAddr} <!-- 기업 이메일 주소 -->
, ENT_ZIP = #{entZip} <!-- 기업 우편번호 -->
, ENT_ADDR = #{entAddr} <!-- 기업 주소 -->
, ENT_DTL_ADDR = #{entDtlAddr} <!-- 기업 상세 주소 -->
, MDFCN_DT = <include refid="utility.now" /> <!-- 수정 일시 -->
, MDFR = #{modifiedBy} <!-- 수정자 -->
WHERE ENT_ID = #{entId} <!-- 기업 ID -->
AND DEL_YN = 'N'
</update>
<update id="deleteRentEnt" parameterType="cokr.xit.fims.rent.RentEnt">/* 임대 기업 대장 삭제(rentEntMapper.deleteRentEnt) */

Loading…
Cancel
Save