|
|
@@ -0,0 +1,540 @@
|
|
|
+<?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.BusinessProjectMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.goafanti.common.model.BusinessProject">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ <id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
+ <result column="create_id" jdbcType="VARCHAR" property="createId" />
|
|
|
+ <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
+ <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
+ <result column="delete_sign" jdbcType="INTEGER" property="deleteSign" />
|
|
|
+ <result column="bname" jdbcType="VARCHAR" property="bname" />
|
|
|
+ <result column="cid" jdbcType="VARCHAR" property="cid" />
|
|
|
+ <result column="price" jdbcType="DECIMAL" property="price" />
|
|
|
+ <result column="offset" jdbcType="DECIMAL" property="offset" />
|
|
|
+ <result column="activity_price" jdbcType="DECIMAL" property="activityPrice" />
|
|
|
+ <result column="activity_flag" jdbcType="VARCHAR" property="activityFlag" />
|
|
|
+ <result column="member_price" jdbcType="DECIMAL" property="memberPrice" />
|
|
|
+ <result column="introduce" jdbcType="VARCHAR" property="introduce" />
|
|
|
+ <result column="status" jdbcType="VARCHAR" property="status" />
|
|
|
+ <result column="country" jdbcType="VARCHAR" property="country" />
|
|
|
+ <result column="province" jdbcType="VARCHAR" property="province" />
|
|
|
+ <result column="city" jdbcType="VARCHAR" property="city" />
|
|
|
+ <result column="district" jdbcType="VARCHAR" property="district" />
|
|
|
+ <result column="principal_id" jdbcType="VARCHAR" property="principalId" />
|
|
|
+ <result column="Value_effect" jdbcType="VARCHAR" property="valueEffect" />
|
|
|
+ <result column="client_size" jdbcType="VARCHAR" property="clientSize" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ <where>
|
|
|
+ <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Update_By_Example_Where_Clause">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ <where>
|
|
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ id, create_id, create_time, update_time, delete_sign, bname, cid, price, offset,
|
|
|
+ activity_price, activity_flag, member_price, introduce, status, country, province,
|
|
|
+ city, district, principal_id, Value_effect, client_size
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.goafanti.common.model.BusinessProjectExample" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from business_project
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from business_project
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ delete from business_project
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.goafanti.common.model.BusinessProjectExample">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ delete from business_project
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.goafanti.common.model.BusinessProject">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ insert into business_project (id, create_id, create_time,
|
|
|
+ update_time, delete_sign, bname,
|
|
|
+ cid, price, offset,
|
|
|
+ activity_price, activity_flag, member_price,
|
|
|
+ introduce, status, country,
|
|
|
+ province, city, district,
|
|
|
+ principal_id, Value_effect, client_size
|
|
|
+ )
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{createId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP}, #{deleteSign,jdbcType=INTEGER}, #{bname,jdbcType=VARCHAR},
|
|
|
+ #{cid,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{offset,jdbcType=DECIMAL},
|
|
|
+ #{activityPrice,jdbcType=DECIMAL}, #{activityFlag,jdbcType=VARCHAR}, #{memberPrice,jdbcType=DECIMAL},
|
|
|
+ #{introduce,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{country,jdbcType=VARCHAR},
|
|
|
+ #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{district,jdbcType=VARCHAR},
|
|
|
+ #{principalId,jdbcType=VARCHAR}, #{valueEffect,jdbcType=VARCHAR}, #{clientSize,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.goafanti.common.model.BusinessProject">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ insert into business_project
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="createId != null">
|
|
|
+ create_id,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time,
|
|
|
+ </if>
|
|
|
+ <if test="deleteSign != null">
|
|
|
+ delete_sign,
|
|
|
+ </if>
|
|
|
+ <if test="bname != null">
|
|
|
+ bname,
|
|
|
+ </if>
|
|
|
+ <if test="cid != null">
|
|
|
+ cid,
|
|
|
+ </if>
|
|
|
+ <if test="price != null">
|
|
|
+ price,
|
|
|
+ </if>
|
|
|
+ <if test="offset != null">
|
|
|
+ offset,
|
|
|
+ </if>
|
|
|
+ <if test="activityPrice != null">
|
|
|
+ activity_price,
|
|
|
+ </if>
|
|
|
+ <if test="activityFlag != null">
|
|
|
+ activity_flag,
|
|
|
+ </if>
|
|
|
+ <if test="memberPrice != null">
|
|
|
+ member_price,
|
|
|
+ </if>
|
|
|
+ <if test="introduce != null">
|
|
|
+ introduce,
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ status,
|
|
|
+ </if>
|
|
|
+ <if test="country != null">
|
|
|
+ country,
|
|
|
+ </if>
|
|
|
+ <if test="province != null">
|
|
|
+ province,
|
|
|
+ </if>
|
|
|
+ <if test="city != null">
|
|
|
+ city,
|
|
|
+ </if>
|
|
|
+ <if test="district != null">
|
|
|
+ district,
|
|
|
+ </if>
|
|
|
+ <if test="principalId != null">
|
|
|
+ principal_id,
|
|
|
+ </if>
|
|
|
+ <if test="valueEffect != null">
|
|
|
+ Value_effect,
|
|
|
+ </if>
|
|
|
+ <if test="clientSize != null">
|
|
|
+ client_size,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">
|
|
|
+ #{id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createId != null">
|
|
|
+ #{createId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="deleteSign != null">
|
|
|
+ #{deleteSign,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bname != null">
|
|
|
+ #{bname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cid != null">
|
|
|
+ #{cid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="price != null">
|
|
|
+ #{price,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="offset != null">
|
|
|
+ #{offset,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="activityPrice != null">
|
|
|
+ #{activityPrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="activityFlag != null">
|
|
|
+ #{activityFlag,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="memberPrice != null">
|
|
|
+ #{memberPrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="introduce != null">
|
|
|
+ #{introduce,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ #{status,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="country != null">
|
|
|
+ #{country,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="province != null">
|
|
|
+ #{province,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="city != null">
|
|
|
+ #{city,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="district != null">
|
|
|
+ #{district,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="principalId != null">
|
|
|
+ #{principalId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="valueEffect != null">
|
|
|
+ #{valueEffect,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="clientSize != null">
|
|
|
+ #{clientSize,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.goafanti.common.model.BusinessProjectExample" resultType="java.lang.Long">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ select count(*) from business_project
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ update business_project
|
|
|
+ <set>
|
|
|
+ <if test="record.id != null">
|
|
|
+ id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createId != null">
|
|
|
+ create_id = #{record.createId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.createTime != null">
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.updateTime != null">
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="record.deleteSign != null">
|
|
|
+ delete_sign = #{record.deleteSign,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.bname != null">
|
|
|
+ bname = #{record.bname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.cid != null">
|
|
|
+ cid = #{record.cid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.price != null">
|
|
|
+ price = #{record.price,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.offset != null">
|
|
|
+ offset = #{record.offset,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.activityPrice != null">
|
|
|
+ activity_price = #{record.activityPrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.activityFlag != null">
|
|
|
+ activity_flag = #{record.activityFlag,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.memberPrice != null">
|
|
|
+ member_price = #{record.memberPrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="record.introduce != null">
|
|
|
+ introduce = #{record.introduce,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.status != null">
|
|
|
+ status = #{record.status,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.country != null">
|
|
|
+ country = #{record.country,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.province != null">
|
|
|
+ province = #{record.province,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.city != null">
|
|
|
+ city = #{record.city,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.district != null">
|
|
|
+ district = #{record.district,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.principalId != null">
|
|
|
+ principal_id = #{record.principalId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.valueEffect != null">
|
|
|
+ Value_effect = #{record.valueEffect,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.clientSize != null">
|
|
|
+ client_size = #{record.clientSize,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ update business_project
|
|
|
+ set id = #{record.id,jdbcType=VARCHAR},
|
|
|
+ create_id = #{record.createId,jdbcType=VARCHAR},
|
|
|
+ create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ delete_sign = #{record.deleteSign,jdbcType=INTEGER},
|
|
|
+ bname = #{record.bname,jdbcType=VARCHAR},
|
|
|
+ cid = #{record.cid,jdbcType=VARCHAR},
|
|
|
+ price = #{record.price,jdbcType=DECIMAL},
|
|
|
+ offset = #{record.offset,jdbcType=DECIMAL},
|
|
|
+ activity_price = #{record.activityPrice,jdbcType=DECIMAL},
|
|
|
+ activity_flag = #{record.activityFlag,jdbcType=VARCHAR},
|
|
|
+ member_price = #{record.memberPrice,jdbcType=DECIMAL},
|
|
|
+ introduce = #{record.introduce,jdbcType=VARCHAR},
|
|
|
+ status = #{record.status,jdbcType=VARCHAR},
|
|
|
+ country = #{record.country,jdbcType=VARCHAR},
|
|
|
+ province = #{record.province,jdbcType=VARCHAR},
|
|
|
+ city = #{record.city,jdbcType=VARCHAR},
|
|
|
+ district = #{record.district,jdbcType=VARCHAR},
|
|
|
+ principal_id = #{record.principalId,jdbcType=VARCHAR},
|
|
|
+ Value_effect = #{record.valueEffect,jdbcType=VARCHAR},
|
|
|
+ client_size = #{record.clientSize,jdbcType=VARCHAR}
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.BusinessProject">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ update business_project
|
|
|
+ <set>
|
|
|
+ <if test="createId != null">
|
|
|
+ create_id = #{createId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="deleteSign != null">
|
|
|
+ delete_sign = #{deleteSign,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="bname != null">
|
|
|
+ bname = #{bname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cid != null">
|
|
|
+ cid = #{cid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="price != null">
|
|
|
+ price = #{price,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="offset != null">
|
|
|
+ offset = #{offset,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="activityPrice != null">
|
|
|
+ activity_price = #{activityPrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="activityFlag != null">
|
|
|
+ activity_flag = #{activityFlag,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="memberPrice != null">
|
|
|
+ member_price = #{memberPrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="introduce != null">
|
|
|
+ introduce = #{introduce,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ status = #{status,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="country != null">
|
|
|
+ country = #{country,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="province != null">
|
|
|
+ province = #{province,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="city != null">
|
|
|
+ city = #{city,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="district != null">
|
|
|
+ district = #{district,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="principalId != null">
|
|
|
+ principal_id = #{principalId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="valueEffect != null">
|
|
|
+ Value_effect = #{valueEffect,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="clientSize != null">
|
|
|
+ client_size = #{clientSize,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.BusinessProject">
|
|
|
+ <!--
|
|
|
+ WARNING - @mbg.generated
|
|
|
+ This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
+ This element was generated on Mon Dec 04 15:29:25 CST 2017.
|
|
|
+ -->
|
|
|
+ update business_project
|
|
|
+ set create_id = #{createId,jdbcType=VARCHAR},
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ delete_sign = #{deleteSign,jdbcType=INTEGER},
|
|
|
+ bname = #{bname,jdbcType=VARCHAR},
|
|
|
+ cid = #{cid,jdbcType=VARCHAR},
|
|
|
+ price = #{price,jdbcType=DECIMAL},
|
|
|
+ offset = #{offset,jdbcType=DECIMAL},
|
|
|
+ activity_price = #{activityPrice,jdbcType=DECIMAL},
|
|
|
+ activity_flag = #{activityFlag,jdbcType=VARCHAR},
|
|
|
+ member_price = #{memberPrice,jdbcType=DECIMAL},
|
|
|
+ introduce = #{introduce,jdbcType=VARCHAR},
|
|
|
+ status = #{status,jdbcType=VARCHAR},
|
|
|
+ country = #{country,jdbcType=VARCHAR},
|
|
|
+ province = #{province,jdbcType=VARCHAR},
|
|
|
+ city = #{city,jdbcType=VARCHAR},
|
|
|
+ district = #{district,jdbcType=VARCHAR},
|
|
|
+ principal_id = #{principalId,jdbcType=VARCHAR},
|
|
|
+ Value_effect = #{valueEffect,jdbcType=VARCHAR},
|
|
|
+ client_size = #{clientSize,jdbcType=VARCHAR}
|
|
|
+ where id = #{id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|