33 changed files with 368 additions and 2824 deletions
@ -1,260 +0,0 @@ |
|||
package com.ccsens.game.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class GameMember implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long userId; |
|||
|
|||
private Byte grade; |
|||
|
|||
private Byte subscribe; |
|||
|
|||
private String openid; |
|||
|
|||
private String unionid; |
|||
|
|||
private String nickname; |
|||
|
|||
private String headimgurl; |
|||
|
|||
private Byte sex; |
|||
|
|||
private String language; |
|||
|
|||
private String city; |
|||
|
|||
private String province; |
|||
|
|||
private String country; |
|||
|
|||
private Long subscribeTime; |
|||
|
|||
private String remark; |
|||
|
|||
private Long groupid; |
|||
|
|||
private String subscribeScene; |
|||
|
|||
private Long qrScene; |
|||
|
|||
private String qrSceneStr; |
|||
|
|||
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 Byte getGrade() { |
|||
return grade; |
|||
} |
|||
|
|||
public void setGrade(Byte grade) { |
|||
this.grade = grade; |
|||
} |
|||
|
|||
public Byte getSubscribe() { |
|||
return subscribe; |
|||
} |
|||
|
|||
public void setSubscribe(Byte subscribe) { |
|||
this.subscribe = subscribe; |
|||
} |
|||
|
|||
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 getLanguage() { |
|||
return language; |
|||
} |
|||
|
|||
public void setLanguage(String language) { |
|||
this.language = language == null ? null : language.trim(); |
|||
} |
|||
|
|||
public String getCity() { |
|||
return city; |
|||
} |
|||
|
|||
public void setCity(String city) { |
|||
this.city = city == null ? null : city.trim(); |
|||
} |
|||
|
|||
public String getProvince() { |
|||
return province; |
|||
} |
|||
|
|||
public void setProvince(String province) { |
|||
this.province = province == null ? null : province.trim(); |
|||
} |
|||
|
|||
public String getCountry() { |
|||
return country; |
|||
} |
|||
|
|||
public void setCountry(String country) { |
|||
this.country = country == null ? null : country.trim(); |
|||
} |
|||
|
|||
public Long getSubscribeTime() { |
|||
return subscribeTime; |
|||
} |
|||
|
|||
public void setSubscribeTime(Long subscribeTime) { |
|||
this.subscribeTime = subscribeTime; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
public Long getGroupid() { |
|||
return groupid; |
|||
} |
|||
|
|||
public void setGroupid(Long groupid) { |
|||
this.groupid = groupid; |
|||
} |
|||
|
|||
public String getSubscribeScene() { |
|||
return subscribeScene; |
|||
} |
|||
|
|||
public void setSubscribeScene(String subscribeScene) { |
|||
this.subscribeScene = subscribeScene == null ? null : subscribeScene.trim(); |
|||
} |
|||
|
|||
public Long getQrScene() { |
|||
return qrScene; |
|||
} |
|||
|
|||
public void setQrScene(Long qrScene) { |
|||
this.qrScene = qrScene; |
|||
} |
|||
|
|||
public String getQrSceneStr() { |
|||
return qrSceneStr; |
|||
} |
|||
|
|||
public void setQrSceneStr(String qrSceneStr) { |
|||
this.qrSceneStr = qrSceneStr == null ? null : qrSceneStr.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(", grade=").append(grade); |
|||
sb.append(", subscribe=").append(subscribe); |
|||
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(", language=").append(language); |
|||
sb.append(", city=").append(city); |
|||
sb.append(", province=").append(province); |
|||
sb.append(", country=").append(country); |
|||
sb.append(", subscribeTime=").append(subscribeTime); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", groupid=").append(groupid); |
|||
sb.append(", subscribeScene=").append(subscribeScene); |
|||
sb.append(", qrScene=").append(qrScene); |
|||
sb.append(", qrSceneStr=").append(qrSceneStr); |
|||
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
@ -1,8 +0,0 @@ |
|||
package com.ccsens.game.persist.dao; |
|||
|
|||
import com.ccsens.game.persist.mapper.GameMemberMapper; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
@Repository |
|||
public interface GameMemberDao extends GameMemberMapper{ |
|||
} |
@ -1,8 +0,0 @@ |
|||
package com.ccsens.game.persist.dao; |
|||
|
|||
import com.ccsens.game.persist.mapper.GameMemberJoinMapper; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
@Repository |
|||
public interface GameMemberJoinDao extends GameMemberJoinMapper{ |
|||
} |
@ -1,9 +0,0 @@ |
|||
package com.ccsens.game.persist.dao; |
|||
|
|||
import com.ccsens.game.persist.mapper.GameTypeMemberMapper; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
@Repository |
|||
public interface GameTypeMemberDao extends GameTypeMemberMapper{ |
|||
|
|||
} |
@ -0,0 +1,8 @@ |
|||
package com.ccsens.game.persist.dao; |
|||
|
|||
import com.ccsens.game.persist.mapper.GameUserJoinMapper; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
@Repository |
|||
public interface GameUserJoinDao extends GameUserJoinMapper { |
|||
} |
@ -0,0 +1,9 @@ |
|||
package com.ccsens.game.persist.dao; |
|||
|
|||
import com.ccsens.game.persist.mapper.GameUserPayMapper; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
@Repository |
|||
public interface GameUserPayDao extends GameUserPayMapper{ |
|||
|
|||
} |
@ -1,30 +0,0 @@ |
|||
package com.ccsens.game.persist.mapper; |
|||
|
|||
import com.ccsens.game.bean.po.GameMemberJoin; |
|||
import com.ccsens.game.bean.po.GameMemberJoinExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface GameMemberJoinMapper { |
|||
long countByExample(GameMemberJoinExample example); |
|||
|
|||
int deleteByExample(GameMemberJoinExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(GameMemberJoin record); |
|||
|
|||
int insertSelective(GameMemberJoin record); |
|||
|
|||
List<GameMemberJoin> selectByExample(GameMemberJoinExample example); |
|||
|
|||
GameMemberJoin selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") GameMemberJoin record, @Param("example") GameMemberJoinExample example); |
|||
|
|||
int updateByExample(@Param("record") GameMemberJoin record, @Param("example") GameMemberJoinExample example); |
|||
|
|||
int updateByPrimaryKeySelective(GameMemberJoin record); |
|||
|
|||
int updateByPrimaryKey(GameMemberJoin record); |
|||
} |
@ -1,30 +0,0 @@ |
|||
package com.ccsens.game.persist.mapper; |
|||
|
|||
import com.ccsens.game.bean.po.GameMember; |
|||
import com.ccsens.game.bean.po.GameMemberExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface GameMemberMapper { |
|||
long countByExample(GameMemberExample example); |
|||
|
|||
int deleteByExample(GameMemberExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(GameMember record); |
|||
|
|||
int insertSelective(GameMember record); |
|||
|
|||
List<GameMember> selectByExample(GameMemberExample example); |
|||
|
|||
GameMember selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") GameMember record, @Param("example") GameMemberExample example); |
|||
|
|||
int updateByExample(@Param("record") GameMember record, @Param("example") GameMemberExample example); |
|||
|
|||
int updateByPrimaryKeySelective(GameMember record); |
|||
|
|||
int updateByPrimaryKey(GameMember record); |
|||
} |
@ -1,30 +0,0 @@ |
|||
package com.ccsens.game.persist.mapper; |
|||
|
|||
import com.ccsens.game.bean.po.GameTypeMember; |
|||
import com.ccsens.game.bean.po.GameTypeMemberExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface GameTypeMemberMapper { |
|||
long countByExample(GameTypeMemberExample example); |
|||
|
|||
int deleteByExample(GameTypeMemberExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(GameTypeMember record); |
|||
|
|||
int insertSelective(GameTypeMember record); |
|||
|
|||
List<GameTypeMember> selectByExample(GameTypeMemberExample example); |
|||
|
|||
GameTypeMember selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") GameTypeMember record, @Param("example") GameTypeMemberExample example); |
|||
|
|||
int updateByExample(@Param("record") GameTypeMember record, @Param("example") GameTypeMemberExample example); |
|||
|
|||
int updateByPrimaryKeySelective(GameTypeMember record); |
|||
|
|||
int updateByPrimaryKey(GameTypeMember record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.game.persist.mapper; |
|||
|
|||
import com.ccsens.game.bean.po.GameUserJoin; |
|||
import com.ccsens.game.bean.po.GameUserJoinExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface GameUserJoinMapper { |
|||
long countByExample(GameUserJoinExample example); |
|||
|
|||
int deleteByExample(GameUserJoinExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(GameUserJoin record); |
|||
|
|||
int insertSelective(GameUserJoin record); |
|||
|
|||
List<GameUserJoin> selectByExample(GameUserJoinExample example); |
|||
|
|||
GameUserJoin selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") GameUserJoin record, @Param("example") GameUserJoinExample example); |
|||
|
|||
int updateByExample(@Param("record") GameUserJoin record, @Param("example") GameUserJoinExample example); |
|||
|
|||
int updateByPrimaryKeySelective(GameUserJoin record); |
|||
|
|||
int updateByPrimaryKey(GameUserJoin record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.game.persist.mapper; |
|||
|
|||
import com.ccsens.game.bean.po.GameUserPay; |
|||
import com.ccsens.game.bean.po.GameUserPayExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface GameUserPayMapper { |
|||
long countByExample(GameUserPayExample example); |
|||
|
|||
int deleteByExample(GameUserPayExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(GameUserPay record); |
|||
|
|||
int insertSelective(GameUserPay record); |
|||
|
|||
List<GameUserPay> selectByExample(GameUserPayExample example); |
|||
|
|||
GameUserPay selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") GameUserPay record, @Param("example") GameUserPayExample example); |
|||
|
|||
int updateByExample(@Param("record") GameUserPay record, @Param("example") GameUserPayExample example); |
|||
|
|||
int updateByPrimaryKeySelective(GameUserPay record); |
|||
|
|||
int updateByPrimaryKey(GameUserPay record); |
|||
} |
@ -1,480 +0,0 @@ |
|||
<?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.game.persist.mapper.GameMemberMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.game.bean.po.GameMember"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="grade" jdbcType="TINYINT" property="grade" /> |
|||
<result column="subscribe" jdbcType="TINYINT" property="subscribe" /> |
|||
<result column="openid" jdbcType="VARCHAR" property="openid" /> |
|||
<result column="unionid" jdbcType="VARCHAR" property="unionid" /> |
|||
<result column="nickname" jdbcType="VARCHAR" property="nickname" /> |
|||
<result column="headimgurl" jdbcType="VARCHAR" property="headimgurl" /> |
|||
<result column="sex" jdbcType="TINYINT" property="sex" /> |
|||
<result column="language" jdbcType="VARCHAR" property="language" /> |
|||
<result column="city" jdbcType="VARCHAR" property="city" /> |
|||
<result column="province" jdbcType="VARCHAR" property="province" /> |
|||
<result column="country" jdbcType="VARCHAR" property="country" /> |
|||
<result column="subscribe_time" jdbcType="BIGINT" property="subscribeTime" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="groupid" jdbcType="BIGINT" property="groupid" /> |
|||
<result column="subscribe_scene" jdbcType="VARCHAR" property="subscribeScene" /> |
|||
<result column="qr_scene" jdbcType="BIGINT" property="qrScene" /> |
|||
<result column="qr_scene_str" jdbcType="VARCHAR" property="qrSceneStr" /> |
|||
<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, grade, subscribe, openid, unionid, nickname, headimgurl, sex, language, |
|||
city, province, country, subscribe_time, remark, groupid, subscribe_scene, qr_scene, |
|||
qr_scene_str, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.game.bean.po.GameMemberExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_game_member |
|||
<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_game_member |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_game_member |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.game.bean.po.GameMemberExample"> |
|||
delete from t_game_member |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.game.bean.po.GameMember"> |
|||
insert into t_game_member (id, user_id, grade, |
|||
subscribe, openid, unionid, |
|||
nickname, headimgurl, sex, |
|||
language, city, province, |
|||
country, subscribe_time, remark, |
|||
groupid, subscribe_scene, qr_scene, |
|||
qr_scene_str, created_at, updated_at, |
|||
rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{grade,jdbcType=TINYINT}, |
|||
#{subscribe,jdbcType=TINYINT}, #{openid,jdbcType=VARCHAR}, #{unionid,jdbcType=VARCHAR}, |
|||
#{nickname,jdbcType=VARCHAR}, #{headimgurl,jdbcType=VARCHAR}, #{sex,jdbcType=TINYINT}, |
|||
#{language,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, |
|||
#{country,jdbcType=VARCHAR}, #{subscribeTime,jdbcType=BIGINT}, #{remark,jdbcType=VARCHAR}, |
|||
#{groupid,jdbcType=BIGINT}, #{subscribeScene,jdbcType=VARCHAR}, #{qrScene,jdbcType=BIGINT}, |
|||
#{qrSceneStr,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|||
#{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.game.bean.po.GameMember"> |
|||
insert into t_game_member |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="grade != null"> |
|||
grade, |
|||
</if> |
|||
<if test="subscribe != null"> |
|||
subscribe, |
|||
</if> |
|||
<if test="openid != null"> |
|||
openid, |
|||
</if> |
|||
<if test="unionid != null"> |
|||
unionid, |
|||
</if> |
|||
<if test="nickname != null"> |
|||
nickname, |
|||
</if> |
|||
<if test="headimgurl != null"> |
|||
headimgurl, |
|||
</if> |
|||
<if test="sex != null"> |
|||
sex, |
|||
</if> |
|||
<if test="language != null"> |
|||
language, |
|||
</if> |
|||
<if test="city != null"> |
|||
city, |
|||
</if> |
|||
<if test="province != null"> |
|||
province, |
|||
</if> |
|||
<if test="country != null"> |
|||
country, |
|||
</if> |
|||
<if test="subscribeTime != null"> |
|||
subscribe_time, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="groupid != null"> |
|||
groupid, |
|||
</if> |
|||
<if test="subscribeScene != null"> |
|||
subscribe_scene, |
|||
</if> |
|||
<if test="qrScene != null"> |
|||
qr_scene, |
|||
</if> |
|||
<if test="qrSceneStr != null"> |
|||
qr_scene_str, |
|||
</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="grade != null"> |
|||
#{grade,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="subscribe != null"> |
|||
#{subscribe,jdbcType=TINYINT}, |
|||
</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="language != null"> |
|||
#{language,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="city != null"> |
|||
#{city,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="province != null"> |
|||
#{province,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="country != null"> |
|||
#{country,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="subscribeTime != null"> |
|||
#{subscribeTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="groupid != null"> |
|||
#{groupid,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="subscribeScene != null"> |
|||
#{subscribeScene,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="qrScene != null"> |
|||
#{qrScene,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="qrSceneStr != null"> |
|||
#{qrSceneStr,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.game.bean.po.GameMemberExample" resultType="java.lang.Long"> |
|||
select count(*) from t_game_member |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_game_member |
|||
<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.grade != null"> |
|||
grade = #{record.grade,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.subscribe != null"> |
|||
subscribe = #{record.subscribe,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.openid != null"> |
|||
openid = #{record.openid,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.unionid != null"> |
|||
unionid = #{record.unionid,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.nickname != null"> |
|||
nickname = #{record.nickname,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.headimgurl != null"> |
|||
headimgurl = #{record.headimgurl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.sex != null"> |
|||
sex = #{record.sex,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.language != null"> |
|||
language = #{record.language,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.city != null"> |
|||
city = #{record.city,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.province != null"> |
|||
province = #{record.province,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.country != null"> |
|||
country = #{record.country,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.subscribeTime != null"> |
|||
subscribe_time = #{record.subscribeTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.groupid != null"> |
|||
groupid = #{record.groupid,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.subscribeScene != null"> |
|||
subscribe_scene = #{record.subscribeScene,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.qrScene != null"> |
|||
qr_scene = #{record.qrScene,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.qrSceneStr != null"> |
|||
qr_scene_str = #{record.qrSceneStr,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_game_member |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
grade = #{record.grade,jdbcType=TINYINT}, |
|||
subscribe = #{record.subscribe,jdbcType=TINYINT}, |
|||
openid = #{record.openid,jdbcType=VARCHAR}, |
|||
unionid = #{record.unionid,jdbcType=VARCHAR}, |
|||
nickname = #{record.nickname,jdbcType=VARCHAR}, |
|||
headimgurl = #{record.headimgurl,jdbcType=VARCHAR}, |
|||
sex = #{record.sex,jdbcType=TINYINT}, |
|||
language = #{record.language,jdbcType=VARCHAR}, |
|||
city = #{record.city,jdbcType=VARCHAR}, |
|||
province = #{record.province,jdbcType=VARCHAR}, |
|||
country = #{record.country,jdbcType=VARCHAR}, |
|||
subscribe_time = #{record.subscribeTime,jdbcType=BIGINT}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
groupid = #{record.groupid,jdbcType=BIGINT}, |
|||
subscribe_scene = #{record.subscribeScene,jdbcType=VARCHAR}, |
|||
qr_scene = #{record.qrScene,jdbcType=BIGINT}, |
|||
qr_scene_str = #{record.qrSceneStr,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.game.bean.po.GameMember"> |
|||
update t_game_member |
|||
<set> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="grade != null"> |
|||
grade = #{grade,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="subscribe != null"> |
|||
subscribe = #{subscribe,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="openid != null"> |
|||
openid = #{openid,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="unionid != null"> |
|||
unionid = #{unionid,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="nickname != null"> |
|||
nickname = #{nickname,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="headimgurl != null"> |
|||
headimgurl = #{headimgurl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="sex != null"> |
|||
sex = #{sex,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="language != null"> |
|||
language = #{language,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="city != null"> |
|||
city = #{city,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="province != null"> |
|||
province = #{province,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="country != null"> |
|||
country = #{country,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="subscribeTime != null"> |
|||
subscribe_time = #{subscribeTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="groupid != null"> |
|||
groupid = #{groupid,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="subscribeScene != null"> |
|||
subscribe_scene = #{subscribeScene,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="qrScene != null"> |
|||
qr_scene = #{qrScene,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="qrSceneStr != null"> |
|||
qr_scene_str = #{qrSceneStr,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.game.bean.po.GameMember"> |
|||
update t_game_member |
|||
set user_id = #{userId,jdbcType=BIGINT}, |
|||
grade = #{grade,jdbcType=TINYINT}, |
|||
subscribe = #{subscribe,jdbcType=TINYINT}, |
|||
openid = #{openid,jdbcType=VARCHAR}, |
|||
unionid = #{unionid,jdbcType=VARCHAR}, |
|||
nickname = #{nickname,jdbcType=VARCHAR}, |
|||
headimgurl = #{headimgurl,jdbcType=VARCHAR}, |
|||
sex = #{sex,jdbcType=TINYINT}, |
|||
language = #{language,jdbcType=VARCHAR}, |
|||
city = #{city,jdbcType=VARCHAR}, |
|||
province = #{province,jdbcType=VARCHAR}, |
|||
country = #{country,jdbcType=VARCHAR}, |
|||
subscribe_time = #{subscribeTime,jdbcType=BIGINT}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
groupid = #{groupid,jdbcType=BIGINT}, |
|||
subscribe_scene = #{subscribeScene,jdbcType=VARCHAR}, |
|||
qr_scene = #{qrScene,jdbcType=BIGINT}, |
|||
qr_scene_str = #{qrSceneStr,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