MHydzMapper.xml 2.12 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.MHydzDao">
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.hotent.lpg.common.model.WHydz">
        <id column="ID_" property="id"/>
        <result column="REF_ID_" property="refId"/>
        <result column="F_hyyhID" property="fHyyhid"/>
        <result column="F_lxrsf" property="fLxrsf"/>
        <result column="F_lxrs" property="fLxrs"/>
        <result column="F_lxrq" property="fLxrq"/>
        <result column="F_lxrjd" property="fLxrjd"/>
        <result column="F_lxrxxdz" property="fLxrxxdz"/>
        <result column="F_jd" property="fJd"/>
        <result column="F_wd" property="fWd"/>
        <result column="F_lxr" property="fLxr"/>
        <result column="F_lxrdh" property="fLxrdh"/>
        <result column="F_sfmrdz" property="fSfmrdz"/>
        <result column="F_cjr" property="fCjr"/>
        <result column="F_cjsj" property="fCjsj"/>
        <result column="F_gxr" property="fGxr"/>
        <result column="F_gxsj" property="fGxsj"/>
        <result column="F_form_data_rev_" property="fFormDataRev"/>
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        ID_,
        REF_ID_,
        F_hyyhID,
        F_lxrsf,
        F_lxrs,
        F_lxrq,
        F_lxrjd,
        F_lxrxxdz,
        F_jd,
        F_wd,
        F_lxr,
        F_lxrdh,
        F_sfmrdz,
        F_cjr,
        F_cjsj,
        F_gxr,
        F_gxsj,
        F_form_data_rev_
    </sql>

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

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

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