|
|
@@ -0,0 +1,153 @@
|
|
|
+<?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.OrgIntellectualPropertyMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.goafanti.common.model.OrgIntellectualProperty" >
|
|
|
+ <id column="id" property="id" jdbcType="VARCHAR" />
|
|
|
+ <result column="uid" property="uid" jdbcType="VARCHAR" />
|
|
|
+ <result column="intellectual_property_number" property="intellectualPropertyNumber" jdbcType="VARCHAR" />
|
|
|
+ <result column="intellectual_property_name" property="intellectualPropertyName" jdbcType="VARCHAR" />
|
|
|
+ <result column="sort_number" property="sortNumber" jdbcType="VARCHAR" />
|
|
|
+ <result column="catagory" property="catagory" jdbcType="INTEGER" />
|
|
|
+ <result column="obtain_way" property="obtainWay" jdbcType="INTEGER" />
|
|
|
+ <result column="authorization_number" property="authorizationNumber" jdbcType="VARCHAR" />
|
|
|
+ <result column="authorization_date" property="authorizationDate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="evaluation_category" property="evaluationCategory" jdbcType="INTEGER" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List" >
|
|
|
+ id, uid, intellectual_property_number, intellectual_property_name, sort_number, catagory,
|
|
|
+ obtain_way, authorization_number, authorization_date, evaluation_category
|
|
|
+ </sql>
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from org_intellectual_property
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
+ delete from org_intellectual_property
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.goafanti.common.model.OrgIntellectualProperty" >
|
|
|
+ insert into org_intellectual_property (id, uid, intellectual_property_number,
|
|
|
+ intellectual_property_name, sort_number, catagory,
|
|
|
+ obtain_way, authorization_number, authorization_date,
|
|
|
+ evaluation_category)
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{intellectualPropertyNumber,jdbcType=VARCHAR},
|
|
|
+ #{intellectualPropertyName,jdbcType=VARCHAR}, #{sortNumber,jdbcType=VARCHAR}, #{catagory,jdbcType=INTEGER},
|
|
|
+ #{obtainWay,jdbcType=INTEGER}, #{authorizationNumber,jdbcType=VARCHAR}, #{authorizationDate,jdbcType=TIMESTAMP},
|
|
|
+ #{evaluationCategory,jdbcType=INTEGER})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.goafanti.common.model.OrgIntellectualProperty" >
|
|
|
+ insert into org_intellectual_property
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="id != null" >
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="uid != null" >
|
|
|
+ uid,
|
|
|
+ </if>
|
|
|
+ <if test="intellectualPropertyNumber != null" >
|
|
|
+ intellectual_property_number,
|
|
|
+ </if>
|
|
|
+ <if test="intellectualPropertyName != null" >
|
|
|
+ intellectual_property_name,
|
|
|
+ </if>
|
|
|
+ <if test="sortNumber != null" >
|
|
|
+ sort_number,
|
|
|
+ </if>
|
|
|
+ <if test="catagory != null" >
|
|
|
+ catagory,
|
|
|
+ </if>
|
|
|
+ <if test="obtainWay != null" >
|
|
|
+ obtain_way,
|
|
|
+ </if>
|
|
|
+ <if test="authorizationNumber != null" >
|
|
|
+ authorization_number,
|
|
|
+ </if>
|
|
|
+ <if test="authorizationDate != null" >
|
|
|
+ authorization_date,
|
|
|
+ </if>
|
|
|
+ <if test="evaluationCategory != null" >
|
|
|
+ evaluation_category,
|
|
|
+ </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="intellectualPropertyNumber != null" >
|
|
|
+ #{intellectualPropertyNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="intellectualPropertyName != null" >
|
|
|
+ #{intellectualPropertyName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sortNumber != null" >
|
|
|
+ #{sortNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="catagory != null" >
|
|
|
+ #{catagory,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="obtainWay != null" >
|
|
|
+ #{obtainWay,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="authorizationNumber != null" >
|
|
|
+ #{authorizationNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="authorizationDate != null" >
|
|
|
+ #{authorizationDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="evaluationCategory != null" >
|
|
|
+ #{evaluationCategory,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrgIntellectualProperty" >
|
|
|
+ update org_intellectual_property
|
|
|
+ <set >
|
|
|
+ <if test="uid != null" >
|
|
|
+ uid = #{uid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="intellectualPropertyNumber != null" >
|
|
|
+ intellectual_property_number = #{intellectualPropertyNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="intellectualPropertyName != null" >
|
|
|
+ intellectual_property_name = #{intellectualPropertyName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="sortNumber != null" >
|
|
|
+ sort_number = #{sortNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="catagory != null" >
|
|
|
+ catagory = #{catagory,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="obtainWay != null" >
|
|
|
+ obtain_way = #{obtainWay,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="authorizationNumber != null" >
|
|
|
+ authorization_number = #{authorizationNumber,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="authorizationDate != null" >
|
|
|
+ authorization_date = #{authorizationDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="evaluationCategory != null" >
|
|
|
+ evaluation_category = #{evaluationCategory,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.OrgIntellectualProperty" >
|
|
|
+ update org_intellectual_property
|
|
|
+ set uid = #{uid,jdbcType=VARCHAR},
|
|
|
+ intellectual_property_number = #{intellectualPropertyNumber,jdbcType=VARCHAR},
|
|
|
+ intellectual_property_name = #{intellectualPropertyName,jdbcType=VARCHAR},
|
|
|
+ sort_number = #{sortNumber,jdbcType=VARCHAR},
|
|
|
+ catagory = #{catagory,jdbcType=INTEGER},
|
|
|
+ obtain_way = #{obtainWay,jdbcType=INTEGER},
|
|
|
+ authorization_number = #{authorizationNumber,jdbcType=VARCHAR},
|
|
|
+ authorization_date = #{authorizationDate,jdbcType=TIMESTAMP},
|
|
|
+ evaluation_category = #{evaluationCategory,jdbcType=INTEGER}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|