Authored by mingdan.ge

cps三期联盟用户申请表

package com.yoho.unions.dal;
import com.yoho.unions.dal.model.UnionShareUserApply;
public interface UnionShareUserApplyMapper {
int deleteByPrimaryKey(Integer id);
int insert(UnionShareUserApply record);
int insertSelective(UnionShareUserApply record);
UnionShareUserApply selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(UnionShareUserApply record);
int updateByPrimaryKey(UnionShareUserApply record);
}
\ No newline at end of file
... ...
package com.yoho.unions.dal.model;
public class UnionShareUserApply {
private Integer id;
private Integer uid;
private String name;
private Byte socialMediaType;
private String socialMediaAccount;
private Integer socialMediaFans;
private Byte status;
private Byte delFlag;
private Integer createTime;
private Integer checkTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getUid() {
return uid;
}
public void setUid(Integer uid) {
this.uid = uid;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public Byte getSocialMediaType() {
return socialMediaType;
}
public void setSocialMediaType(Byte socialMediaType) {
this.socialMediaType = socialMediaType;
}
public String getSocialMediaAccount() {
return socialMediaAccount;
}
public void setSocialMediaAccount(String socialMediaAccount) {
this.socialMediaAccount = socialMediaAccount == null ? null : socialMediaAccount.trim();
}
public Integer getSocialMediaFans() {
return socialMediaFans;
}
public void setSocialMediaFans(Integer socialMediaFans) {
this.socialMediaFans = socialMediaFans;
}
public Byte getStatus() {
return status;
}
public void setStatus(Byte status) {
this.status = status;
}
public Byte getDelFlag() {
return delFlag;
}
public void setDelFlag(Byte delFlag) {
this.delFlag = delFlag;
}
public Integer getCreateTime() {
return createTime;
}
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
public Integer getCheckTime() {
return checkTime;
}
public void setCheckTime(Integer checkTime) {
this.checkTime = checkTime;
}
}
\ No newline at end of file
... ...
<?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.yoho.unions.dal.UnionShareUserApplyMapper" >
<resultMap id="BaseResultMap" type="com.yoho.unions.dal.model.UnionShareUserApply" >
<id column="id" property="id" jdbcType="INTEGER" />
<result column="uid" property="uid" jdbcType="INTEGER" />
<result column="name" property="name" jdbcType="VARCHAR" />
<result column="social_media_type" property="socialMediaType" jdbcType="TINYINT" />
<result column="social_media_account" property="socialMediaAccount" jdbcType="VARCHAR" />
<result column="social_media_fans" property="socialMediaFans" jdbcType="INTEGER" />
<result column="status" property="status" jdbcType="TINYINT" />
<result column="del_flag" property="delFlag" jdbcType="TINYINT" />
<result column="create_time" property="createTime" jdbcType="INTEGER" />
<result column="check_time" property="checkTime" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List" >
id, uid, name, social_media_type, social_media_account, social_media_fans, status,
del_flag, create_time, check_time
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from union_share_user_apply
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
delete from union_share_user_apply
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.yoho.unions.dal.model.UnionShareUserApply" >
insert into union_share_user_apply (id, uid, name,
social_media_type, social_media_account, social_media_fans,
status, del_flag, create_time,
check_time)
values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
#{socialMediaType,jdbcType=TINYINT}, #{socialMediaAccount,jdbcType=VARCHAR}, #{socialMediaFans,jdbcType=INTEGER},
#{status,jdbcType=TINYINT}, #{delFlag,jdbcType=TINYINT}, #{createTime,jdbcType=INTEGER},
#{checkTime,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.yoho.unions.dal.model.UnionShareUserApply" >
insert into union_share_user_apply
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
id,
</if>
<if test="uid != null" >
uid,
</if>
<if test="name != null" >
name,
</if>
<if test="socialMediaType != null" >
social_media_type,
</if>
<if test="socialMediaAccount != null" >
social_media_account,
</if>
<if test="socialMediaFans != null" >
social_media_fans,
</if>
<if test="status != null" >
status,
</if>
<if test="delFlag != null" >
del_flag,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="checkTime != null" >
check_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=INTEGER},
</if>
<if test="uid != null" >
#{uid,jdbcType=INTEGER},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="socialMediaType != null" >
#{socialMediaType,jdbcType=TINYINT},
</if>
<if test="socialMediaAccount != null" >
#{socialMediaAccount,jdbcType=VARCHAR},
</if>
<if test="socialMediaFans != null" >
#{socialMediaFans,jdbcType=INTEGER},
</if>
<if test="status != null" >
#{status,jdbcType=TINYINT},
</if>
<if test="delFlag != null" >
#{delFlag,jdbcType=TINYINT},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
#{checkTime,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.unions.dal.model.UnionShareUserApply" >
update union_share_user_apply
<set >
<if test="uid != null" >
uid = #{uid,jdbcType=INTEGER},
</if>
<if test="name != null" >
name = #{name,jdbcType=VARCHAR},
</if>
<if test="socialMediaType != null" >
social_media_type = #{socialMediaType,jdbcType=TINYINT},
</if>
<if test="socialMediaAccount != null" >
social_media_account = #{socialMediaAccount,jdbcType=VARCHAR},
</if>
<if test="socialMediaFans != null" >
social_media_fans = #{socialMediaFans,jdbcType=INTEGER},
</if>
<if test="status != null" >
status = #{status,jdbcType=TINYINT},
</if>
<if test="delFlag != null" >
del_flag = #{delFlag,jdbcType=TINYINT},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=INTEGER},
</if>
<if test="checkTime != null" >
check_time = #{checkTime,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yoho.unions.dal.model.UnionShareUserApply" >
update union_share_user_apply
set uid = #{uid,jdbcType=INTEGER},
name = #{name,jdbcType=VARCHAR},
social_media_type = #{socialMediaType,jdbcType=TINYINT},
social_media_account = #{socialMediaAccount,jdbcType=VARCHAR},
social_media_fans = #{socialMediaFans,jdbcType=INTEGER},
status = #{status,jdbcType=TINYINT},
del_flag = #{delFlag,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=INTEGER},
check_time = #{checkTime,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
... ...
... ... @@ -76,6 +76,7 @@ datasources:
- com.yoho.unions.dal.UnionShareSettlementMapper
- com.yoho.unions.dal.UnionShareUserMapper
- com.yoho.unions.dal.UnionShareUserBankMapper
- com.yoho.unions.dal.UnionShareUserApplyMapper
bigdata_yh_unions:
... ...
... ... @@ -68,6 +68,7 @@ datasources:
- com.yoho.unions.dal.UnionShareSettlementMapper
- com.yoho.unions.dal.UnionShareUserMapper
- com.yoho.unions.dal.UnionShareUserBankMapper
- com.yoho.unions.dal.UnionShareUserApplyMapper
bigdata_yh_unions:
servers:
... ...