2023-10-31 05:59:10 +00:00
|
|
|
<?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">
|
|
|
|
|
|
2023-10-31 07:01:46 +00:00
|
|
|
<select id="selectStandardCodeList" parameterType="TnDocumentInfo" resultType="TnDocumentInfo">
|
2023-10-31 05:59:10 +00:00
|
|
|
SELECT
|
2023-11-03 02:24:34 +00:00
|
|
|
tdi.doc_info_seq,
|
|
|
|
|
tdi.use_yn,
|
|
|
|
|
tdi.rvsn_ymd,
|
|
|
|
|
tdi.rvsn_file_grp_id,
|
|
|
|
|
tdi.old_seq,
|
|
|
|
|
tdi.old_kcsc_cd,
|
|
|
|
|
tdi.last_yn,
|
|
|
|
|
tdi.last_chg_id,
|
|
|
|
|
tdi.last_chg_dt,
|
|
|
|
|
tdi.kcsc_cd,
|
|
|
|
|
tdi.group_seq,
|
|
|
|
|
tdi.frst_crt_id,
|
|
|
|
|
tdi.frst_crt_dt,
|
|
|
|
|
tdi.estb_ymd,
|
|
|
|
|
tdi.doc_yr,
|
|
|
|
|
tdi.doc_rvsn_remark,
|
|
|
|
|
tdi.doc_rev_hist_seq,
|
|
|
|
|
tdi.doc_relation,
|
|
|
|
|
tdi.doc_publish,
|
|
|
|
|
tdi.doc_order,
|
|
|
|
|
tdi.doc_nm,
|
|
|
|
|
tdi.doc_file_grp_id,
|
|
|
|
|
tdi.doc_er,
|
|
|
|
|
tdi.doc_dept,
|
|
|
|
|
tdi.doc_cycl,
|
|
|
|
|
tdi.doc_consider,
|
|
|
|
|
tdi.doc_brief,
|
|
|
|
|
tdi.doc_advice,
|
|
|
|
|
tdi.aplcn_end_ymd,
|
|
|
|
|
tdi.aplcn_bgng_ymd
|
2023-10-31 05:59:10 +00:00
|
|
|
FROM
|
2023-11-03 02:24:34 +00:00
|
|
|
tn_document_info tdi, tn_document_group tdg
|
|
|
|
|
<include refid="selectStandardCodeListWhere"></include>
|
|
|
|
|
ORDER BY tdi.kcsc_cd
|
2023-10-31 05:59:10 +00:00
|
|
|
LIMIT #{recordCountPerPage} OFFSET #{firstIndex}
|
|
|
|
|
</select>
|
|
|
|
|
|
2023-10-31 07:01:46 +00:00
|
|
|
<select id="selectStandardCodeListCnt" parameterType="TnDocumentInfo" resultType="int">
|
2023-10-31 05:59:10 +00:00
|
|
|
SELECT count(*)
|
|
|
|
|
FROM
|
2023-11-03 02:24:34 +00:00
|
|
|
tn_document_info tdi, tn_document_group tdg
|
|
|
|
|
<include refid="selectStandardCodeListWhere"></include>
|
2023-10-31 05:59:10 +00:00
|
|
|
</select>
|
|
|
|
|
|
2023-11-03 02:24:34 +00:00
|
|
|
<sql id="selectStandardCodeListWhere">
|
|
|
|
|
<where>
|
|
|
|
|
and tdi.group_seq = tdg.group_seq
|
|
|
|
|
and tdi.kcsc_cd like 'KDS%'
|
|
|
|
|
and tdi.last_yn = 'Y'
|
|
|
|
|
and tdi.use_yn = 'Y'
|
|
|
|
|
<if test="listCode != null and listCode != ''">
|
|
|
|
|
and tdg.group_full_cd like #{listCode} || '%'
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
|
2023-11-07 04:10:11 +00:00
|
|
|
|
|
|
|
|
<select id="selectStandardCodeRevisionhistoryList" resultType="TnDocumentInfo">
|
|
|
|
|
select tdi.aplcn_bgng_ymd,tdi.doc_file_grp_id from tn_document_info tdi, tn_document_group tdg
|
|
|
|
|
where 1 = 1
|
|
|
|
|
and tdi.group_seq = tdg.group_seq
|
|
|
|
|
and tdi.kcsc_cd like 'KDS%'
|
|
|
|
|
and tdi.group_seq =#{groupseq}
|
|
|
|
|
and tdi.use_yn = 'Y'
|
|
|
|
|
order by tdi.kcsc_cd;
|
|
|
|
|
</select>
|
2023-10-31 05:59:10 +00:00
|
|
|
</mapper>
|