| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <?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.goafanti.common.dao.OrgTechCenterMapper" >
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.OrgTechCenter" >
- <id column="id" property="id" jdbcType="VARCHAR" />
- <result column="uid" property="uid" jdbcType="VARCHAR" />
- <result column="center_name" property="centerName" jdbcType="VARCHAR" />
- <result column="founding_time" property="foundingTime" jdbcType="TIMESTAMP" />
- <result column="principal" property="principal" jdbcType="VARCHAR" />
- <result column="comment" property="comment" jdbcType="VARCHAR" />
- <result column="system_url" property="systemUrl" jdbcType="VARCHAR" />
- <result column="deleted_sign" property="deletedSign" jdbcType="INTEGER" />
- </resultMap>
- <resultMap id="ResultMapWithBLOBs" type="com.goafanti.common.model.OrgTechCenter" extends="BaseResultMap" >
- <result column="system_catalog" property="systemCatalog" jdbcType="LONGVARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, uid, center_name, founding_time, principal, comment, system_url, deleted_sign
- </sql>
- <sql id="Blob_Column_List" >
- system_catalog
- </sql>
- <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- ,
- <include refid="Blob_Column_List" />
- from org_tech_center
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
- delete from org_tech_center
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <insert id="insert" parameterType="com.goafanti.common.model.OrgTechCenter" >
- insert into org_tech_center (id, uid, center_name, founding_time,
- principal, comment, system_url, deleted_sign,
- system_catalog)
- values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{centerName,jdbcType=VARCHAR}, #{foundingTime,jdbcType=TIMESTAMP},
- #{principal,jdbcType=VARCHAR}, #{comment,jdbcType=VARCHAR}, #{systemUrl,jdbcType=VARCHAR}, #{deletedSign,jdbcType=INTEGER},
- #{systemCatalog,jdbcType=LONGVARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.goafanti.common.model.OrgTechCenter" >
- insert into org_tech_center
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="uid != null" >
- uid,
- </if>
- <if test="centerName != null" >
- center_name,
- </if>
- <if test="foundingTime != null" >
- founding_time,
- </if>
- <if test="principal != null" >
- principal,
- </if>
- <if test="comment != null" >
- comment,
- </if>
- <if test="systemUrl != null" >
- system_url,
- </if>
- <if test="deletedSign != null" >
- deleted_sign,
- </if>
- <if test="systemCatalog != null" >
- system_catalog,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- #{id,jdbcType=VARCHAR},
- </if>
- <if test="uid != null" >
- #{uid,jdbcType=VARCHAR},
- </if>
- <if test="centerName != null" >
- #{centerName,jdbcType=VARCHAR},
- </if>
- <if test="foundingTime != null" >
- #{foundingTime,jdbcType=TIMESTAMP},
- </if>
- <if test="principal != null" >
- #{principal,jdbcType=VARCHAR},
- </if>
- <if test="comment != null" >
- #{comment,jdbcType=VARCHAR},
- </if>
- <if test="systemUrl != null" >
- #{systemUrl,jdbcType=VARCHAR},
- </if>
- <if test="deletedSign != null" >
- #{deletedSign,jdbcType=INTEGER},
- </if>
- <if test="systemCatalog != null" >
- #{systemCatalog,jdbcType=LONGVARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrgTechCenter" >
- update org_tech_center
- <set >
- <if test="uid != null" >
- uid = #{uid,jdbcType=VARCHAR},
- </if>
- <if test="centerName != null" >
- center_name = #{centerName,jdbcType=VARCHAR},
- </if>
- <if test="foundingTime != null" >
- founding_time = #{foundingTime,jdbcType=TIMESTAMP},
- </if>
- <if test="principal != null" >
- principal = #{principal,jdbcType=VARCHAR},
- </if>
- <if test="comment != null" >
- comment = #{comment,jdbcType=VARCHAR},
- </if>
- <if test="systemUrl != null" >
- system_url = #{systemUrl,jdbcType=VARCHAR},
- </if>
- <if test="deletedSign != null" >
- deleted_sign = #{deletedSign,jdbcType=INTEGER},
- </if>
- <if test="systemCatalog != null" >
- system_catalog = #{systemCatalog,jdbcType=LONGVARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.goafanti.common.model.OrgTechCenter" >
- update org_tech_center
- set uid = #{uid,jdbcType=VARCHAR},
- center_name = #{centerName,jdbcType=VARCHAR},
- founding_time = #{foundingTime,jdbcType=TIMESTAMP},
- principal = #{principal,jdbcType=VARCHAR},
- comment = #{comment,jdbcType=VARCHAR},
- system_url = #{systemUrl,jdbcType=VARCHAR},
- deleted_sign = #{deletedSign,jdbcType=INTEGER},
- system_catalog = #{systemCatalog,jdbcType=LONGVARCHAR}
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.OrgTechCenter" >
- update org_tech_center
- set uid = #{uid,jdbcType=VARCHAR},
- center_name = #{centerName,jdbcType=VARCHAR},
- founding_time = #{foundingTime,jdbcType=TIMESTAMP},
- principal = #{principal,jdbcType=VARCHAR},
- comment = #{comment,jdbcType=VARCHAR},
- system_url = #{systemUrl,jdbcType=VARCHAR},
- deleted_sign = #{deletedSign,jdbcType=INTEGER}
- where id = #{id,jdbcType=VARCHAR}
- </update>
-
- <select id="selectOrgTechCenterByUid" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
- select
- <include refid="Base_Column_List" />
- ,
- <include refid="Blob_Column_List" />
- from org_tech_center
- where uid = #{uid,jdbcType=VARCHAR}
- </select>
- </mapper>
|