<?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.stylefeng.guns.modular.system.dao.DictDao">

	<sql id="Base_Column_List">
		id, code, num, pid, name, tips, version
	</sql>

	<select id="selectByCode" resultType="dict">
		select
		<include refid="Base_Column_List" />
		from _dict
		where code = #{code}
	</select>

</mapper>