admin
2019-08-13 37194e2d4b4ab85f7f29c1e900c406afe294579a
fanli/src/main/java/com/yeshi/fanli/mapping/taobao/TaoBaoUnionConfigMapper.xml
@@ -14,8 +14,10 @@
      <result column="tc_beizhu" property="beizhu" jdbcType="VARCHAR" />
      <result column="tc_appname" property="appName" jdbcType="VARCHAR" />
      <result column="tc_type" property="type" jdbcType="INTEGER" />
      <result column="tc_state" property="state" jdbcType="INTEGER" />
      <result column="tc_state_desc" property="stateDesc" jdbcType="VARCHAR" />
   </resultMap>
   <sql id="Base_Column_List">tc_id,tc_account,tc_account_id,tc_appkey,tc_appsecret,tc_appid,tc_default_pid,tc_beizhu,tc_appname,tc_type
   <sql id="Base_Column_List">tc_id,tc_account,tc_account_id,tc_appkey,tc_appsecret,tc_appid,tc_default_pid,tc_beizhu,tc_appname,tc_type,tc_state,tc_state_desc
   </sql>
   <select id="selectByPrimaryKey" resultMap="BaseResultMap"
      parameterType="java.lang.Long">
@@ -23,36 +25,34 @@
      <include refid="Base_Column_List" />
      from yeshi_ec_taobao_union_config where tc_id = #{id,jdbcType=BIGINT}
   </select>
   <select id="selectByType" resultMap="BaseResultMap"
      parameterType="java.lang.Integer">
      select
      <include refid="Base_Column_List" />
      from yeshi_ec_taobao_union_config where tc_type = #{type,jdbcType=INTEGER}
      from yeshi_ec_taobao_union_config where tc_type =
      #{type,jdbcType=INTEGER}
   </select>
   <select id="selectByAppId" resultMap="BaseResultMap"
      parameterType="java.lang.String">
      select
      <include refid="Base_Column_List" />
      from yeshi_ec_taobao_union_config where tc_appid = #{0}
   </select>
   <select id="selectByAppKey" resultMap="BaseResultMap"
      parameterType="java.lang.String">
      select
      <include refid="Base_Column_List" />
      from yeshi_ec_taobao_union_config where tc_appkey = #{0}
   </select>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from
      yeshi_ec_taobao_union_config where tc_id = #{id,jdbcType=BIGINT}
   </delete>
   <insert id="insert" parameterType="com.yeshi.fanli.entity.taobao.TaoBaoUnionConfig"
      useGeneratedKeys="true" keyProperty="id">insert into
      yeshi_ec_taobao_union_config
      (tc_id,tc_account,tc_account_id,tc_appkey,tc_appsecret,tc_appid,tc_default_pid,tc_beizhu,tc_appname,tc_type)
      (tc_id,tc_account,tc_account_id,tc_appkey,tc_appsecret,tc_appid,tc_default_pid,tc_beizhu,tc_appname,tc_type,tc_state,tc_state_desc)
      values
      (#{id,jdbcType=BIGINT},#{account,jdbcType=VARCHAR},#{accountId,jdbcType=VARCHAR},#{appKey,jdbcType=VARCHAR},#{appSecret,jdbcType=VARCHAR},#{appId,jdbcType=VARCHAR},#{defaultPid,jdbcType=VARCHAR},#{beizhu,jdbcType=VARCHAR},#{appName,jdbcType=VARCHAR},#{type,jdbcType=INTEGER})
      (#{id,jdbcType=BIGINT},#{account,jdbcType=VARCHAR},#{accountId,jdbcType=VARCHAR},#{appKey,jdbcType=VARCHAR},#{appSecret,jdbcType=VARCHAR},#{appId,jdbcType=VARCHAR},#{defaultPid,jdbcType=VARCHAR},#{beizhu,jdbcType=VARCHAR},#{appName,jdbcType=VARCHAR},#{type,jdbcType=INTEGER},#{state,jdbcType=INTEGER},#{stateDesc,jdbcType=VARCHAR})
   </insert>
   <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.taobao.TaoBaoUnionConfig"
      useGeneratedKeys="true" keyProperty="id">
@@ -68,6 +68,8 @@
         <if test="beizhu != null">tc_beizhu,</if>
         <if test="appName != null">tc_appname,</if>
         <if test="type != null">tc_type,</if>
         <if test="state != null">tc_state,</if>
         <if test="stateDesc != null">tc_state_desc,</if>
      </trim>
      values
      <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -81,6 +83,8 @@
         <if test="beizhu != null">#{beizhu,jdbcType=VARCHAR},</if>
         <if test="appName != null">#{appName,jdbcType=VARCHAR},</if>
         <if test="type != null">#{type,jdbcType=INTEGER},</if>
         <if test="state != null">#{state,jdbcType=INTEGER}</if>
         <if test="stateDesc != null">#{stateDesc,jdbcType=VARCHAR}</if>
      </trim>
   </insert>
   <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.taobao.TaoBaoUnionConfig">update
@@ -92,8 +96,9 @@
      #{appId,jdbcType=VARCHAR},tc_default_pid =
      #{defaultPid,jdbcType=VARCHAR},tc_beizhu =
      #{beizhu,jdbcType=VARCHAR},tc_appname =
      #{appName,jdbcType=VARCHAR},tc_type = #{type,jdbcType=INTEGER} where
      tc_id = #{id,jdbcType=BIGINT}
      #{appName,jdbcType=VARCHAR},tc_type = #{type,jdbcType=INTEGER}
      ,tc_state =#{state,jdbcType=INTEGER} ,tc_state_desc
      =#{stateDesc,jdbcType=VARCHAR} where tc_id = #{id,jdbcType=BIGINT}
   </update>
   <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.taobao.TaoBaoUnionConfig">
      update yeshi_ec_taobao_union_config
@@ -107,6 +112,8 @@
         <if test="beizhu != null">tc_beizhu=#{beizhu,jdbcType=VARCHAR},</if>
         <if test="appName != null">tc_appname=#{appName,jdbcType=VARCHAR},</if>
         <if test="type != null">tc_type=#{type,jdbcType=INTEGER},</if>
         <if test="state !=null">tc_state =#{state,jdbcType=INTEGER},</if>
         <if test="stateDesc !=null">tc_state_desc =#{stateDesc,jdbcType=VARCHAR},</if>
      </set>
      where tc_id = #{id,jdbcType=BIGINT}
   </update>