14 changed files with 2119 additions and 115 deletions
@ -0,0 +1,183 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class SysWx implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long userId; |
|||
|
|||
private String openId; |
|||
|
|||
private String unionId; |
|||
|
|||
private String nickname; |
|||
|
|||
private String headImgUrl; |
|||
|
|||
private Byte sex; |
|||
|
|||
private String province; |
|||
|
|||
private String city; |
|||
|
|||
private String country; |
|||
|
|||
private String language; |
|||
|
|||
private String privilege; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public String getOpenId() { |
|||
return openId; |
|||
} |
|||
|
|||
public void setOpenId(String openId) { |
|||
this.openId = openId == null ? null : openId.trim(); |
|||
} |
|||
|
|||
public String getUnionId() { |
|||
return unionId; |
|||
} |
|||
|
|||
public void setUnionId(String unionId) { |
|||
this.unionId = unionId == null ? null : unionId.trim(); |
|||
} |
|||
|
|||
public String getNickname() { |
|||
return nickname; |
|||
} |
|||
|
|||
public void setNickname(String nickname) { |
|||
this.nickname = nickname == null ? null : nickname.trim(); |
|||
} |
|||
|
|||
public String getHeadImgUrl() { |
|||
return headImgUrl; |
|||
} |
|||
|
|||
public void setHeadImgUrl(String headImgUrl) { |
|||
this.headImgUrl = headImgUrl == null ? null : headImgUrl.trim(); |
|||
} |
|||
|
|||
public Byte getSex() { |
|||
return sex; |
|||
} |
|||
|
|||
public void setSex(Byte sex) { |
|||
this.sex = sex; |
|||
} |
|||
|
|||
public String getProvince() { |
|||
return province; |
|||
} |
|||
|
|||
public void setProvince(String province) { |
|||
this.province = province == null ? null : province.trim(); |
|||
} |
|||
|
|||
public String getCity() { |
|||
return city; |
|||
} |
|||
|
|||
public void setCity(String city) { |
|||
this.city = city == null ? null : city.trim(); |
|||
} |
|||
|
|||
public String getCountry() { |
|||
return country; |
|||
} |
|||
|
|||
public void setCountry(String country) { |
|||
this.country = country == null ? null : country.trim(); |
|||
} |
|||
|
|||
public String getLanguage() { |
|||
return language; |
|||
} |
|||
|
|||
public void setLanguage(String language) { |
|||
this.language = language == null ? null : language.trim(); |
|||
} |
|||
|
|||
public String getPrivilege() { |
|||
return privilege; |
|||
} |
|||
|
|||
public void setPrivilege(String privilege) { |
|||
this.privilege = privilege == null ? null : privilege.trim(); |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", openId=").append(openId); |
|||
sb.append(", unionId=").append(unionId); |
|||
sb.append(", nickname=").append(nickname); |
|||
sb.append(", headImgUrl=").append(headImgUrl); |
|||
sb.append(", sex=").append(sex); |
|||
sb.append(", province=").append(province); |
|||
sb.append(", city=").append(city); |
|||
sb.append(", country=").append(country); |
|||
sb.append(", language=").append(language); |
|||
sb.append(", privilege=").append(privilege); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,9 @@ |
|||
package com.ccsens.tall.persist.dao; |
|||
|
|||
import com.ccsens.tall.persist.mapper.SysWxMapper; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
@Repository |
|||
public interface SysWxDao extends SysWxMapper { |
|||
|
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.SysWx; |
|||
import com.ccsens.tall.bean.po.SysWxExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface SysWxMapper { |
|||
long countByExample(SysWxExample example); |
|||
|
|||
int deleteByExample(SysWxExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(SysWx record); |
|||
|
|||
int insertSelective(SysWx record); |
|||
|
|||
List<SysWx> selectByExample(SysWxExample example); |
|||
|
|||
SysWx selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") SysWx record, @Param("example") SysWxExample example); |
|||
|
|||
int updateByExample(@Param("record") SysWx record, @Param("example") SysWxExample example); |
|||
|
|||
int updateByPrimaryKeySelective(SysWx record); |
|||
|
|||
int updateByPrimaryKey(SysWx record); |
|||
} |
@ -0,0 +1,370 @@ |
|||
<?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.ccsens.tall.persist.mapper.SysWxMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.SysWx"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="open_id" jdbcType="VARCHAR" property="openId" /> |
|||
<result column="union_id" jdbcType="VARCHAR" property="unionId" /> |
|||
<result column="nickname" jdbcType="VARCHAR" property="nickname" /> |
|||
<result column="head_img_url" jdbcType="VARCHAR" property="headImgUrl" /> |
|||
<result column="sex" jdbcType="TINYINT" property="sex" /> |
|||
<result column="province" jdbcType="VARCHAR" property="province" /> |
|||
<result column="city" jdbcType="VARCHAR" property="city" /> |
|||
<result column="country" jdbcType="VARCHAR" property="country" /> |
|||
<result column="language" jdbcType="VARCHAR" property="language" /> |
|||
<result column="privilege" jdbcType="VARCHAR" property="privilege" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<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"> |
|||
<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"> |
|||
id, user_id, open_id, union_id, nickname, head_img_url, sex, province, city, country, |
|||
language, privilege, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.SysWxExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_sys_wx |
|||
<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.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_sys_wx |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_sys_wx |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.SysWxExample"> |
|||
delete from t_sys_wx |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.SysWx"> |
|||
insert into t_sys_wx (id, user_id, open_id, |
|||
union_id, nickname, head_img_url, |
|||
sex, province, city, |
|||
country, language, privilege, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{openId,jdbcType=VARCHAR}, |
|||
#{unionId,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR}, #{headImgUrl,jdbcType=VARCHAR}, |
|||
#{sex,jdbcType=TINYINT}, #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, |
|||
#{country,jdbcType=VARCHAR}, #{language,jdbcType=VARCHAR}, #{privilege,jdbcType=VARCHAR}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.SysWx"> |
|||
insert into t_sys_wx |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="openId != null"> |
|||
open_id, |
|||
</if> |
|||
<if test="unionId != null"> |
|||
union_id, |
|||
</if> |
|||
<if test="nickname != null"> |
|||
nickname, |
|||
</if> |
|||
<if test="headImgUrl != null"> |
|||
head_img_url, |
|||
</if> |
|||
<if test="sex != null"> |
|||
sex, |
|||
</if> |
|||
<if test="province != null"> |
|||
province, |
|||
</if> |
|||
<if test="city != null"> |
|||
city, |
|||
</if> |
|||
<if test="country != null"> |
|||
country, |
|||
</if> |
|||
<if test="language != null"> |
|||
language, |
|||
</if> |
|||
<if test="privilege != null"> |
|||
privilege, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="openId != null"> |
|||
#{openId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="unionId != null"> |
|||
#{unionId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="nickname != null"> |
|||
#{nickname,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="headImgUrl != null"> |
|||
#{headImgUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="sex != null"> |
|||
#{sex,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="province != null"> |
|||
#{province,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="city != null"> |
|||
#{city,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="country != null"> |
|||
#{country,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="language != null"> |
|||
#{language,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="privilege != null"> |
|||
#{privilege,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.SysWxExample" resultType="java.lang.Long"> |
|||
select count(*) from t_sys_wx |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_sys_wx |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.openId != null"> |
|||
open_id = #{record.openId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.unionId != null"> |
|||
union_id = #{record.unionId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.nickname != null"> |
|||
nickname = #{record.nickname,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.headImgUrl != null"> |
|||
head_img_url = #{record.headImgUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.sex != null"> |
|||
sex = #{record.sex,jdbcType=TINYINT}, |
|||
</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.country != null"> |
|||
country = #{record.country,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.language != null"> |
|||
language = #{record.language,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.privilege != null"> |
|||
privilege = #{record.privilege,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_sys_wx |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
open_id = #{record.openId,jdbcType=VARCHAR}, |
|||
union_id = #{record.unionId,jdbcType=VARCHAR}, |
|||
nickname = #{record.nickname,jdbcType=VARCHAR}, |
|||
head_img_url = #{record.headImgUrl,jdbcType=VARCHAR}, |
|||
sex = #{record.sex,jdbcType=TINYINT}, |
|||
province = #{record.province,jdbcType=VARCHAR}, |
|||
city = #{record.city,jdbcType=VARCHAR}, |
|||
country = #{record.country,jdbcType=VARCHAR}, |
|||
language = #{record.language,jdbcType=VARCHAR}, |
|||
privilege = #{record.privilege,jdbcType=VARCHAR}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.SysWx"> |
|||
update t_sys_wx |
|||
<set> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="openId != null"> |
|||
open_id = #{openId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="unionId != null"> |
|||
union_id = #{unionId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="nickname != null"> |
|||
nickname = #{nickname,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="headImgUrl != null"> |
|||
head_img_url = #{headImgUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="sex != null"> |
|||
sex = #{sex,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="province != null"> |
|||
province = #{province,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="city != null"> |
|||
city = #{city,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="country != null"> |
|||
country = #{country,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="language != null"> |
|||
language = #{language,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="privilege != null"> |
|||
privilege = #{privilege,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.SysWx"> |
|||
update t_sys_wx |
|||
set user_id = #{userId,jdbcType=BIGINT}, |
|||
open_id = #{openId,jdbcType=VARCHAR}, |
|||
union_id = #{unionId,jdbcType=VARCHAR}, |
|||
nickname = #{nickname,jdbcType=VARCHAR}, |
|||
head_img_url = #{headImgUrl,jdbcType=VARCHAR}, |
|||
sex = #{sex,jdbcType=TINYINT}, |
|||
province = #{province,jdbcType=VARCHAR}, |
|||
city = #{city,jdbcType=VARCHAR}, |
|||
country = #{country,jdbcType=VARCHAR}, |
|||
language = #{language,jdbcType=VARCHAR}, |
|||
privilege = #{privilege,jdbcType=VARCHAR}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue