MDdfwrzMapper.xml 1.62 KB
<?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.hotent.lpg.manage.dao.MDdfwrzDao">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.hotent.lpg.common.model.WDdfwrz">
        <id column="ID_" property="id" />
    <result column="REF_ID_" property="refId" />
    <result column="F_qyID" property="fQyid" />
    <result column="F_czID" property="fCzid" />
    <result column="F_fwlx" property="fFwlx" />
    <result column="F_fwnr" property="fFwnr" />
    <result column="F_czsj" property="fCzsj" />
    <result column="F_czrID" property="fCzrid" />
    <result column="F_czrlx" property="fCzrlx" />
    <result column="F_kzjson" property="fKzjson" />
    <result column="F_cjr" property="fCjr" />
    <result column="F_cjsj" property="fCjsj" />
    <result column="F_form_data_rev_" property="fFormDataRev" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        ID_, REF_ID_, F_qyID, F_czID, F_fwlx, F_fwnr, F_czsj, F_czrID, F_czrlx, F_kzjson, F_cjr, F_cjsj, F_form_data_rev_
    </sql>

	<select id="selectPage" resultMap="BaseResultMap">
		select
			<include refid="Base_Column_List"/>
		from
			w_ddfwrz
		${ew.customSqlSegment}
	</select>

	<select id="selectList" resultMap="BaseResultMap">
		select
			<include refid="Base_Column_List"/>
		from
			w_ddfwrz
		${ew.customSqlSegment}
	</select>

	<select id="selectById" resultMap="BaseResultMap">
		select
			<include refid="Base_Column_List"/>
		from
			w_ddfwrz
		where
		    ID_ = #{id}
	</select>
</mapper>