Authored by mingdan.ge

cps三期联盟用户申请表

  1 +package com.yoho.unions.dal;
  2 +
  3 +import com.yoho.unions.dal.model.UnionShareUserApply;
  4 +
  5 +public interface UnionShareUserApplyMapper {
  6 + int deleteByPrimaryKey(Integer id);
  7 +
  8 + int insert(UnionShareUserApply record);
  9 +
  10 + int insertSelective(UnionShareUserApply record);
  11 +
  12 + UnionShareUserApply selectByPrimaryKey(Integer id);
  13 +
  14 + int updateByPrimaryKeySelective(UnionShareUserApply record);
  15 +
  16 + int updateByPrimaryKey(UnionShareUserApply record);
  17 +}
  1 +package com.yoho.unions.dal.model;
  2 +
  3 +public class UnionShareUserApply {
  4 + private Integer id;
  5 +
  6 + private Integer uid;
  7 +
  8 + private String name;
  9 +
  10 + private Byte socialMediaType;
  11 +
  12 + private String socialMediaAccount;
  13 +
  14 + private Integer socialMediaFans;
  15 +
  16 + private Byte status;
  17 +
  18 + private Byte delFlag;
  19 +
  20 + private Integer createTime;
  21 +
  22 + private Integer checkTime;
  23 +
  24 + public Integer getId() {
  25 + return id;
  26 + }
  27 +
  28 + public void setId(Integer id) {
  29 + this.id = id;
  30 + }
  31 +
  32 + public Integer getUid() {
  33 + return uid;
  34 + }
  35 +
  36 + public void setUid(Integer uid) {
  37 + this.uid = uid;
  38 + }
  39 +
  40 + public String getName() {
  41 + return name;
  42 + }
  43 +
  44 + public void setName(String name) {
  45 + this.name = name == null ? null : name.trim();
  46 + }
  47 +
  48 + public Byte getSocialMediaType() {
  49 + return socialMediaType;
  50 + }
  51 +
  52 + public void setSocialMediaType(Byte socialMediaType) {
  53 + this.socialMediaType = socialMediaType;
  54 + }
  55 +
  56 + public String getSocialMediaAccount() {
  57 + return socialMediaAccount;
  58 + }
  59 +
  60 + public void setSocialMediaAccount(String socialMediaAccount) {
  61 + this.socialMediaAccount = socialMediaAccount == null ? null : socialMediaAccount.trim();
  62 + }
  63 +
  64 + public Integer getSocialMediaFans() {
  65 + return socialMediaFans;
  66 + }
  67 +
  68 + public void setSocialMediaFans(Integer socialMediaFans) {
  69 + this.socialMediaFans = socialMediaFans;
  70 + }
  71 +
  72 + public Byte getStatus() {
  73 + return status;
  74 + }
  75 +
  76 + public void setStatus(Byte status) {
  77 + this.status = status;
  78 + }
  79 +
  80 + public Byte getDelFlag() {
  81 + return delFlag;
  82 + }
  83 +
  84 + public void setDelFlag(Byte delFlag) {
  85 + this.delFlag = delFlag;
  86 + }
  87 +
  88 + public Integer getCreateTime() {
  89 + return createTime;
  90 + }
  91 +
  92 + public void setCreateTime(Integer createTime) {
  93 + this.createTime = createTime;
  94 + }
  95 +
  96 + public Integer getCheckTime() {
  97 + return checkTime;
  98 + }
  99 +
  100 + public void setCheckTime(Integer checkTime) {
  101 + this.checkTime = checkTime;
  102 + }
  103 +}
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3 +<mapper namespace="com.yoho.unions.dal.UnionShareUserApplyMapper" >
  4 + <resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.UnionShareUserApply" >
  5 + <id column="id" property="id" jdbcType="INTEGER" />
  6 + <result column="uid" property="uid" jdbcType="INTEGER" />
  7 + <result column="name" property="name" jdbcType="VARCHAR" />
  8 + <result column="social_media_type" property="socialMediaType" jdbcType="TINYINT" />
  9 + <result column="social_media_account" property="socialMediaAccount" jdbcType="VARCHAR" />
  10 + <result column="social_media_fans" property="socialMediaFans" jdbcType="INTEGER" />
  11 + <result column="status" property="status" jdbcType="TINYINT" />
  12 + <result column="del_flag" property="delFlag" jdbcType="TINYINT" />
  13 + <result column="create_time" property="createTime" jdbcType="INTEGER" />
  14 + <result column="check_time" property="checkTime" jdbcType="INTEGER" />
  15 + </resultMap>
  16 + <sql id="Base_Column_List" >
  17 + id, uid, name, social_media_type, social_media_account, social_media_fans, status,
  18 + del_flag, create_time, check_time
  19 + </sql>
  20 + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  21 + select
  22 + <include refid="Base_Column_List" />
  23 + from union_share_user_apply
  24 + where id = #{id,jdbcType=INTEGER}
  25 + </select>
  26 + <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  27 + delete from union_share_user_apply
  28 + where id = #{id,jdbcType=INTEGER}
  29 + </delete>
  30 + <insert id="insert" parameterType="com.yoho.unions.dal.model.UnionShareUserApply" >
  31 + insert into union_share_user_apply (id, uid, name,
  32 + social_media_type, social_media_account, social_media_fans,
  33 + status, del_flag, create_time,
  34 + check_time)
  35 + values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
  36 + #{socialMediaType,jdbcType=TINYINT}, #{socialMediaAccount,jdbcType=VARCHAR}, #{socialMediaFans,jdbcType=INTEGER},
  37 + #{status,jdbcType=TINYINT}, #{delFlag,jdbcType=TINYINT}, #{createTime,jdbcType=INTEGER},
  38 + #{checkTime,jdbcType=INTEGER})
  39 + </insert>
  40 + <insert id="insertSelective" parameterType="com.yoho.unions.dal.model.UnionShareUserApply" >
  41 + insert into union_share_user_apply
  42 + <trim prefix="(" suffix=")" suffixOverrides="," >
  43 + <if test="id != null" >
  44 + id,
  45 + </if>
  46 + <if test="uid != null" >
  47 + uid,
  48 + </if>
  49 + <if test="name != null" >
  50 + name,
  51 + </if>
  52 + <if test="socialMediaType != null" >
  53 + social_media_type,
  54 + </if>
  55 + <if test="socialMediaAccount != null" >
  56 + social_media_account,
  57 + </if>
  58 + <if test="socialMediaFans != null" >
  59 + social_media_fans,
  60 + </if>
  61 + <if test="status != null" >
  62 + status,
  63 + </if>
  64 + <if test="delFlag != null" >
  65 + del_flag,
  66 + </if>
  67 + <if test="createTime != null" >
  68 + create_time,
  69 + </if>
  70 + <if test="checkTime != null" >
  71 + check_time,
  72 + </if>
  73 + </trim>
  74 + <trim prefix="values (" suffix=")" suffixOverrides="," >
  75 + <if test="id != null" >
  76 + #{id,jdbcType=INTEGER},
  77 + </if>
  78 + <if test="uid != null" >
  79 + #{uid,jdbcType=INTEGER},
  80 + </if>
  81 + <if test="name != null" >
  82 + #{name,jdbcType=VARCHAR},
  83 + </if>
  84 + <if test="socialMediaType != null" >
  85 + #{socialMediaType,jdbcType=TINYINT},
  86 + </if>
  87 + <if test="socialMediaAccount != null" >
  88 + #{socialMediaAccount,jdbcType=VARCHAR},
  89 + </if>
  90 + <if test="socialMediaFans != null" >
  91 + #{socialMediaFans,jdbcType=INTEGER},
  92 + </if>
  93 + <if test="status != null" >
  94 + #{status,jdbcType=TINYINT},
  95 + </if>
  96 + <if test="delFlag != null" >
  97 + #{delFlag,jdbcType=TINYINT},
  98 + </if>
  99 + <if test="createTime != null" >
  100 + #{createTime,jdbcType=INTEGER},
  101 + </if>
  102 + <if test="checkTime != null" >
  103 + #{checkTime,jdbcType=INTEGER},
  104 + </if>
  105 + </trim>
  106 + </insert>
  107 + <update id="updateByPrimaryKeySelective" parameterType="com.yoho.unions.dal.model.UnionShareUserApply" >
  108 + update union_share_user_apply
  109 + <set >
  110 + <if test="uid != null" >
  111 + uid = #{uid,jdbcType=INTEGER},
  112 + </if>
  113 + <if test="name != null" >
  114 + name = #{name,jdbcType=VARCHAR},
  115 + </if>
  116 + <if test="socialMediaType != null" >
  117 + social_media_type = #{socialMediaType,jdbcType=TINYINT},
  118 + </if>
  119 + <if test="socialMediaAccount != null" >
  120 + social_media_account = #{socialMediaAccount,jdbcType=VARCHAR},
  121 + </if>
  122 + <if test="socialMediaFans != null" >
  123 + social_media_fans = #{socialMediaFans,jdbcType=INTEGER},
  124 + </if>
  125 + <if test="status != null" >
  126 + status = #{status,jdbcType=TINYINT},
  127 + </if>
  128 + <if test="delFlag != null" >
  129 + del_flag = #{delFlag,jdbcType=TINYINT},
  130 + </if>
  131 + <if test="createTime != null" >
  132 + create_time = #{createTime,jdbcType=INTEGER},
  133 + </if>
  134 + <if test="checkTime != null" >
  135 + check_time = #{checkTime,jdbcType=INTEGER},
  136 + </if>
  137 + </set>
  138 + where id = #{id,jdbcType=INTEGER}
  139 + </update>
  140 + <update id="updateByPrimaryKey" parameterType="com.yoho.unions.dal.model.UnionShareUserApply" >
  141 + update union_share_user_apply
  142 + set uid = #{uid,jdbcType=INTEGER},
  143 + name = #{name,jdbcType=VARCHAR},
  144 + social_media_type = #{socialMediaType,jdbcType=TINYINT},
  145 + social_media_account = #{socialMediaAccount,jdbcType=VARCHAR},
  146 + social_media_fans = #{socialMediaFans,jdbcType=INTEGER},
  147 + status = #{status,jdbcType=TINYINT},
  148 + del_flag = #{delFlag,jdbcType=TINYINT},
  149 + create_time = #{createTime,jdbcType=INTEGER},
  150 + check_time = #{checkTime,jdbcType=INTEGER}
  151 + where id = #{id,jdbcType=INTEGER}
  152 + </update>
  153 +</mapper>
@@ -76,6 +76,7 @@ datasources: @@ -76,6 +76,7 @@ datasources:
76 - com.yoho.unions.dal.UnionShareSettlementMapper 76 - com.yoho.unions.dal.UnionShareSettlementMapper
77 - com.yoho.unions.dal.UnionShareUserMapper 77 - com.yoho.unions.dal.UnionShareUserMapper
78 - com.yoho.unions.dal.UnionShareUserBankMapper 78 - com.yoho.unions.dal.UnionShareUserBankMapper
  79 + - com.yoho.unions.dal.UnionShareUserApplyMapper
79 80
80 81
81 bigdata_yh_unions: 82 bigdata_yh_unions:
@@ -68,6 +68,7 @@ datasources: @@ -68,6 +68,7 @@ datasources:
68 - com.yoho.unions.dal.UnionShareSettlementMapper 68 - com.yoho.unions.dal.UnionShareSettlementMapper
69 - com.yoho.unions.dal.UnionShareUserMapper 69 - com.yoho.unions.dal.UnionShareUserMapper
70 - com.yoho.unions.dal.UnionShareUserBankMapper 70 - com.yoho.unions.dal.UnionShareUserBankMapper
  71 + - com.yoho.unions.dal.UnionShareUserApplyMapper
71 72
72 bigdata_yh_unions: 73 bigdata_yh_unions:
73 servers: 74 servers: