| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <?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.OrganizationInfoMapper" >
- <resultMap id="BaseResultMap" type="com.goafanti.common.model.OrganizationInfo" >
- <id column="id" property="id" jdbcType="VARCHAR" />
- <result column="uid" property="uid" jdbcType="VARCHAR" />
- <result column="identity_type" property="identityType" jdbcType="VARCHAR" />
- <result column="company_name" property="companyName" jdbcType="VARCHAR" />
- <result column="location" property="location" jdbcType="VARCHAR" />
- <result column="unit_size" property="unitSize" jdbcType="VARCHAR" />
- <result column="company_introduction" property="companyIntroduction" jdbcType="VARCHAR" />
- <result column="home_unit" property="homeUnit" jdbcType="VARCHAR" />
- <result column="enterprise qualification" property="enterpriseQualification" jdbcType="VARCHAR" />
- <result column="logo" property="logo" jdbcType="VARCHAR" />
- <result column="publicity _picture" property="publicityPicture" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- id, uid, identity_type, company_name, location, unit_size, company_introduction,
- home_unit, "enterprise qualification", logo, "publicity _picture"
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- from organization_info
- where id = #{id,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
- delete from organization_info
- where id = #{id,jdbcType=VARCHAR}
- </delete>
- <insert id="insert" parameterType="com.goafanti.common.model.OrganizationInfo" >
- insert into organization_info (id, uid, identity_type,
- company_name, location, unit_size,
- company_introduction, home_unit, "enterprise qualification",
- logo, "publicity _picture")
- values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{identityType,jdbcType=VARCHAR},
- #{companyName,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, #{unitSize,jdbcType=VARCHAR},
- #{companyIntroduction,jdbcType=VARCHAR}, #{homeUnit,jdbcType=VARCHAR}, #{enterpriseQualification,jdbcType=VARCHAR},
- #{logo,jdbcType=VARCHAR}, #{publicityPicture,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.goafanti.common.model.OrganizationInfo" >
- insert into organization_info
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="id != null" >
- id,
- </if>
- <if test="uid != null" >
- uid,
- </if>
- <if test="identityType != null" >
- identity_type,
- </if>
- <if test="companyName != null" >
- company_name,
- </if>
- <if test="location != null" >
- location,
- </if>
- <if test="unitSize != null" >
- unit_size,
- </if>
- <if test="companyIntroduction != null" >
- company_introduction,
- </if>
- <if test="homeUnit != null" >
- home_unit,
- </if>
- <if test="enterpriseQualification != null" >
- "enterprise qualification",
- </if>
- <if test="logo != null" >
- logo,
- </if>
- <if test="publicityPicture != null" >
- "publicity _picture",
- </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="identityType != null" >
- #{identityType,jdbcType=VARCHAR},
- </if>
- <if test="companyName != null" >
- #{companyName,jdbcType=VARCHAR},
- </if>
- <if test="location != null" >
- #{location,jdbcType=VARCHAR},
- </if>
- <if test="unitSize != null" >
- #{unitSize,jdbcType=VARCHAR},
- </if>
- <if test="companyIntroduction != null" >
- #{companyIntroduction,jdbcType=VARCHAR},
- </if>
- <if test="homeUnit != null" >
- #{homeUnit,jdbcType=VARCHAR},
- </if>
- <if test="enterpriseQualification != null" >
- #{enterpriseQualification,jdbcType=VARCHAR},
- </if>
- <if test="logo != null" >
- #{logo,jdbcType=VARCHAR},
- </if>
- <if test="publicityPicture != null" >
- #{publicityPicture,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrganizationInfo" >
- update organization_info
- <set >
- <if test="uid != null" >
- uid = #{uid,jdbcType=VARCHAR},
- </if>
- <if test="identityType != null" >
- identity_type = #{identityType,jdbcType=VARCHAR},
- </if>
- <if test="companyName != null" >
- company_name = #{companyName,jdbcType=VARCHAR},
- </if>
- <if test="location != null" >
- location = #{location,jdbcType=VARCHAR},
- </if>
- <if test="unitSize != null" >
- unit_size = #{unitSize,jdbcType=VARCHAR},
- </if>
- <if test="companyIntroduction != null" >
- company_introduction = #{companyIntroduction,jdbcType=VARCHAR},
- </if>
- <if test="homeUnit != null" >
- home_unit = #{homeUnit,jdbcType=VARCHAR},
- </if>
- <if test="enterpriseQualification != null" >
- "enterprise qualification" = #{enterpriseQualification,jdbcType=VARCHAR},
- </if>
- <if test="logo != null" >
- logo = #{logo,jdbcType=VARCHAR},
- </if>
- <if test="publicityPicture != null" >
- "publicity _picture" = #{publicityPicture,jdbcType=VARCHAR},
- </if>
- </set>
- where id = #{id,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.OrganizationInfo" >
- update organization_info
- set uid = #{uid,jdbcType=VARCHAR},
- identity_type = #{identityType,jdbcType=VARCHAR},
- company_name = #{companyName,jdbcType=VARCHAR},
- location = #{location,jdbcType=VARCHAR},
- unit_size = #{unitSize,jdbcType=VARCHAR},
- company_introduction = #{companyIntroduction,jdbcType=VARCHAR},
- home_unit = #{homeUnit,jdbcType=VARCHAR},
- "enterprise qualification" = #{enterpriseQualification,jdbcType=VARCHAR},
- logo = #{logo,jdbcType=VARCHAR},
- "publicity _picture" = #{publicityPicture,jdbcType=VARCHAR}
- where id = #{id,jdbcType=VARCHAR}
- </update>
-
- <select id="selectOrgInfoByUserId" parameterType="java.lang.String" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from organization_info
- where uid = #{uid,jdbcType=VARCHAR}
- </select>
- </mapper>
|