smartGeoinfoOriginal/target/classes/egovframework/mapper/sgis/com/ComCodeMapper.xml

23 lines
536 B
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="sgis.com.mapper.ComCodeMapper">
<select id="selectComCodeList" resultType="egovMap">
<![CDATA[
select
code_val as code,
code_txt as label
from comtb_code02
where 1=1
]]>
<if test='cdGrp != null and cdGrp != ""'>
<![CDATA[
and cd_grp = (#{cdGrp})
]]>
</if>
<![CDATA[
and use_yn = 'Y'
order by code_val
]]>
</select>
</mapper>