kcscDev/kcsc-back-end/src/main/resources/mybatisMapper/StandardCodeMapper.xml

52 lines
1.1 KiB
XML

<?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="com.dbnt.kcscbackend.standardCode.mapper.StandardCodeMapper">
<select id="selectStandardCodeList" parameterType="TnDocumentInfo" resultType="TnDocumentInfo">
SELECT
doc_info_seq,
use_yn,
rvsn_ymd,
rvsn_file_grp_id,
old_seq,
old_kcsc_cd,
last_yn,
last_chg_id,
last_chg_dt,
kcsc_cd,
group_seq,
frst_crt_id,
frst_crt_dt,
estb_ymd,
doc_yr,
doc_rvsn_remark,
doc_rev_hist_seq,
doc_relation,
doc_publish,
doc_order,
doc_nm,
doc_file_grp_id,
doc_er,
doc_dept,
doc_cycl,
doc_consider,
doc_brief,
doc_advice,
aplcn_end_ymd,
aplcn_bgng_ymd
FROM
tn_document_info
WHERE 1 = 1
ORDER BY doc_info_seq desc
LIMIT #{recordCountPerPage} OFFSET #{firstIndex}
</select>
<select id="selectStandardCodeListCnt" parameterType="TnDocumentInfo" resultType="int">
SELECT count(*)
FROM
tn_document_info
WHERE 1 = 1
</select>
</mapper>