SpmkJqgzMapper.xml 5.06 KB
Newer Older
yuquan.zhu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
<?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="cn.timer.api.dao.spmk.SpmkJqgzMapper">

    <resultMap id="BaseResultMap" type="cn.timer.api.bean.spmk.SpmkJqgz" >
                <id column="id" property="id" />
                <result column="org_code" property="orgCode" />
                <result column="name" property="name" />
                <result column="ygztqjgz" property="ygztqjgz" />
                <result column="zxqjdw_type" property="zxqjdwType" />
                <result column="qjschsfs_type" property="qjschsfsType" />
                <result column="syfw" property="syfw" />
                <result column="is_jrxc" property="isJrxc" />
                <result column="create_time" property="createTime" />
    </resultMap>

    <sql id="Base_Column_List">
                id,
                org_code,
                name,
                ygztqjgz,
                zxqjdw_type,
                qjschsfs_type,
                syfw,
                is_jrxc,
                create_time
    </sql>
    
    <sql id="Base_Column_List_Alias">
                id SpmkJqgz_id,
                org_code SpmkJqgz_org_code,
                name SpmkJqgz_name,
                ygztqjgz SpmkJqgz_ygztqjgz,
                zxqjdw_type SpmkJqgz_zxqjdw_type,
                qjschsfs_type SpmkJqgz_qjschsfs_type,
                syfw SpmkJqgz_syfw,
                is_jrxc SpmkJqgz_is_jrxc,
                create_time SpmkJqgz_create_time
    </sql>

	<!-- 

    <insert id="insert" useGeneratedKeys="true" keyColumn="id" parameterType="cn.timer.api.bean.spmk.SpmkJqgz">
        INSERT INTO spmk_jqgz
        <trim prefix="(" suffix=")" suffixOverrides=",">
                        <if test ='null != orgCode'>
                        org_code,
                        </if>
                        <if test ='null != name'>
                        name,
                        </if>
                        <if test ='null != ygztqjgz'>
                        ygztqjgz,
                        </if>
                        <if test ='null != zxqjdwType'>
                        zxqjdw_type,
                        </if>
                        <if test ='null != qjschsfsType'>
                        qjschsfs_type,
                        </if>
                        <if test ='null != syfw'>
                        syfw,
                        </if>
                        <if test ='null != isJrxc'>
                        is_jrxc,
                        </if>
                        <if test ='null != createTime'>
                        create_time
                        </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
                        <if test ='null != orgCode'>
                        #{orgCode},
                        </if>
                        <if test ='null != name'>
                        #{name},
                        </if>
                        <if test ='null != ygztqjgz'>
                        #{ygztqjgz},
                        </if>
                        <if test ='null != zxqjdwType'>
                        #{zxqjdwType},
                        </if>
                        <if test ='null != qjschsfsType'>
                        #{qjschsfsType},
                        </if>
                        <if test ='null != syfw'>
                        #{syfw},
                        </if>
                        <if test ='null != isJrxc'>
                        #{isJrxc},
                        </if>
                        <if test ='null != createTime'>
                        #{createTime}
                        </if>
        </trim>
    </insert>

    <delete id="delete" >
        DELETE FROM spmk_jqgz
        WHERE id = #{id}
    </delete>

    <update id="update" parameterType="cn.timer.api.bean.spmk.SpmkJqgz">
        UPDATE spmk_jqgz
        <set>
                    <if test ='null != orgCode'>org_code = #{orgCode},</if>
                    <if test ='null != name'>name = #{name},</if>
                    <if test ='null != ygztqjgz'>ygztqjgz = #{ygztqjgz},</if>
                    <if test ='null != zxqjdwType'>zxqjdw_type = #{zxqjdwType},</if>
                    <if test ='null != qjschsfsType'>qjschsfs_type = #{qjschsfsType},</if>
                    <if test ='null != syfw'>syfw = #{syfw},</if>
                    <if test ='null != isJrxc'>is_jrxc = #{isJrxc},</if>
                    <if test ='null != createTime'>create_time = #{createTime}</if>
        </set>
        WHERE id = #{id}
    </update>


    <select id="load" resultMap="BaseResultMap">
        SELECT <include refid="Base_Column_List" />
        FROM spmk_jqgz
        WHERE id = #{id}
    </select>

    <select id="pageList" resultMap="BaseResultMap">
        SELECT <include refid="Base_Column_List" />
        FROM spmk_jqgz
        LIMIT #{offset}, #{pageSize}
    </select>

    <select id="pageListCount" resultType="java.lang.Integer">
        SELECT count(1)
        FROM spmk_jqgz
    </select>

	 -->

</mapper>