소스 정리
parent
12fadbea71
commit
8f4915d8d6
@ -0,0 +1,28 @@
|
||||
package cokr.xit.fims.crdn.dao;
|
||||
|
||||
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
|
||||
|
||||
import cokr.xit.fims.crdn.CrdnQuery;
|
||||
import cokr.xit.foundation.component.AbstractMapper;
|
||||
|
||||
@Mapper("globalStngMapper")
|
||||
public interface GlobalStngMapper extends AbstractMapper {
|
||||
|
||||
/**기본금액을 조회한다.<br />
|
||||
* {@link cokr.xit.fims.crdn.service.bean.CrdnStngBean#getBasicAmt(CrdnQuery)} 참고
|
||||
* @param query 단속자료 정보
|
||||
* @return 기본금액
|
||||
*/
|
||||
int selectBasicAmt(CrdnQuery query);
|
||||
|
||||
/**기관코드에 따른 시군구코드를 조회한다.<br />
|
||||
* @param institute 기관코드
|
||||
* @return 시군구코드
|
||||
*/
|
||||
String selectSggCd(String institute);
|
||||
|
||||
default String selectSggCdForCurrentUser() {
|
||||
return selectSggCd(currentUser().getInstitute());
|
||||
};
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cokr.xit.fims.crdn.dao.GlobalStngMapper">
|
||||
|
||||
<select id="selectBasicAmt" parameterType="cokr.xit.fims.crdn.CrdnQuery" resultType="int">
|
||||
/* 기본금액 조회(crdn05Mapper.selectBasicAmt) */
|
||||
SELECT AMT
|
||||
FROM TB_AMT_INFO
|
||||
WHERE USE_YN = 'Y'
|
||||
AND TASK_SE_CD = #{taskSeCd}
|
||||
AND BGNG_YMD <![CDATA[ <= ]]> #{aplcnYmd}
|
||||
AND END_YMD <![CDATA[ >= ]]> #{aplcnYmd}
|
||||
<if test="amtDcsnCdGroupId != null">
|
||||
AND AMT_DCSN_CD_GROUP_ID = #{amtDcsnCdGroupId}
|
||||
AND AMT_DCSN_CD = #{amtDcsnCd}
|
||||
</if>
|
||||
<if test="dtlAmtDcsnCdGroupId != null">
|
||||
AND DTL_AMT_DCSN_CD_GROUP_ID = #{dtlAmtDcsnCdGroupId}
|
||||
AND DTL_AMT_DCSN_CD = #{dtlAmtDcsnCd}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectSggCd" parameterType="string" resultType="string">
|
||||
/* 시군구코드 조회(crdn05Mapper.selectSggCd) */
|
||||
SELECT SGG_CD
|
||||
FROM TB_SGG_INFO
|
||||
WHERE INST_CD = #{institute}
|
||||
</select>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue