42 lines
1.4 KiB
XML
42 lines
1.4 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.faisp.translator.mapper.TranslatorMapper">
|
||
|
|
|
||
|
|
<select id="selectTranslatorList" resultType="Translator" parameterType="Translator">
|
||
|
|
select
|
||
|
|
translator_key,
|
||
|
|
(select item_value from code_mgt where item_cd = ogdp1) as ogdp1,
|
||
|
|
(select item_value from code_mgt where item_cd = tr_lang) as tr_lang,
|
||
|
|
tr_career,
|
||
|
|
tr_name,
|
||
|
|
(select item_value from code_mgt where item_cd = tr_sex) as tr_sex,
|
||
|
|
tr_age,
|
||
|
|
(select item_value from code_mgt where item_cd = tr_nny) as tr_nny,
|
||
|
|
(select item_value from code_mgt where item_cd = tr_edu) as tr_edu,
|
||
|
|
tr_cft,
|
||
|
|
(select item_value from code_mgt where item_cd = tr_visa) as tr_visa,
|
||
|
|
dml_yn,
|
||
|
|
apt_dt,
|
||
|
|
tr_phone
|
||
|
|
from translator_info
|
||
|
|
where wrt_organ in
|
||
|
|
<foreach collection="organCdList" item="item" index="index" separator="," open="(" close=")">
|
||
|
|
#{item}
|
||
|
|
</foreach>
|
||
|
|
order by translator_key desc
|
||
|
|
limit #{rowCnt} offset #{firstIndex}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="selectTranslatorListCnt" resultType="int" parameterType="Translator">
|
||
|
|
select count(*)
|
||
|
|
from translator_info
|
||
|
|
where wrt_organ in
|
||
|
|
<foreach collection="organCdList" item="item" index="index" separator="," open="(" close=")">
|
||
|
|
#{item}
|
||
|
|
</foreach>
|
||
|
|
</select>
|
||
|
|
|
||
|
|
</mapper>
|