提交汇付会员实体类

This commit is contained in:
2023-06-07 15:01:49 +08:00
parent eb1e678378
commit da5d3d1457
5 changed files with 406 additions and 0 deletions

View File

@@ -0,0 +1,84 @@
package com.jsowell.pile.domain;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* 汇付会员表
*/
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AdapayMemberInfo {
/**
* 主键
*/
private Integer id;
/**
* 汇付会员id
*/
private String memberId;
/**
* MALEFEMALE为空时表示未填写
*/
private String gender;
/**
* 是否已实名认证YN
*/
private String identified;
/**
* 用户手机号,使用 收银台对象 功能必填 若创建用户对象用于分账功能,则手机号字段一定不要上送
*/
private Integer telNo;
/**
* 是否 prod模式true 是 prod模式false 是 mock模式
*/
private String prodMode;
/**
* 用户昵称
*/
private String nickname;
/**
* 是否禁用该用户YN
*/
private String disabled;
/**
* 用户地址
*/
private String location;
private Integer appId;
/**
* 用户邮箱
*/
private String email;
private String object;
/**
* 当前交易状态
*/
private String status;
private Date createTime;
/**
* 删除标识0-正常1-删除)
*/
private String delFlag;
}

View File

@@ -0,0 +1,47 @@
package com.jsowell.pile.mapper;
import com.jsowell.pile.domain.AdapayMemberInfo;
public interface AdapayMemberInfoMapper {
/**
* delete by primary key
* @param id primaryKey
* @return deleteCount
*/
int deleteByPrimaryKey(Integer id);
/**
* insert record to table
* @param record the record
* @return insert count
*/
int insert(AdapayMemberInfo record);
/**
* insert record to table selective
* @param record the record
* @return insert count
*/
int insertSelective(AdapayMemberInfo record);
/**
* select by primary key
* @param id primary key
* @return object by primary key
*/
AdapayMemberInfo selectByPrimaryKey(Integer id);
/**
* update record selective
* @param record the updated record
* @return update count
*/
int updateByPrimaryKeySelective(AdapayMemberInfo record);
/**
* update record
* @param record the updated record
* @return update count
*/
int updateByPrimaryKey(AdapayMemberInfo record);
}

View File

@@ -0,0 +1,17 @@
package com.jsowell.pile.service;
import com.jsowell.pile.domain.AdapayMemberInfo;
public interface AdapayMemberInfoService {
int deleteByPrimaryKey(Integer id);
int insert(AdapayMemberInfo record);
int insertSelective(AdapayMemberInfo record);
AdapayMemberInfo selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(AdapayMemberInfo record);
int updateByPrimaryKey(AdapayMemberInfo record);
}

View File

@@ -0,0 +1,45 @@
package com.jsowell.pile.service.impl;
import com.jsowell.pile.domain.AdapayMemberInfo;
import com.jsowell.pile.mapper.AdapayMemberInfoMapper;
import com.jsowell.pile.service.AdapayMemberInfoService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service
public class AdapayMemberInfoServiceImpl implements AdapayMemberInfoService {
@Resource
private AdapayMemberInfoMapper adapayMemberInfoMapper;
@Override
public int deleteByPrimaryKey(Integer id) {
return adapayMemberInfoMapper.deleteByPrimaryKey(id);
}
@Override
public int insert(AdapayMemberInfo record) {
return adapayMemberInfoMapper.insert(record);
}
@Override
public int insertSelective(AdapayMemberInfo record) {
return adapayMemberInfoMapper.insertSelective(record);
}
@Override
public AdapayMemberInfo selectByPrimaryKey(Integer id) {
return adapayMemberInfoMapper.selectByPrimaryKey(id);
}
@Override
public int updateByPrimaryKeySelective(AdapayMemberInfo record) {
return adapayMemberInfoMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(AdapayMemberInfo record) {
return adapayMemberInfoMapper.updateByPrimaryKey(record);
}
}

View File

@@ -0,0 +1,213 @@
<?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.jsowell.pile.mapper.AdapayMemberInfoMapper">
<resultMap id="BaseResultMap" type="com.jsowell.pile.domain.AdapayMemberInfo">
<!--@mbg.generated-->
<!--@Table adapay_member_info-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="member_id" jdbcType="VARCHAR" property="memberId" />
<result column="gender" jdbcType="VARCHAR" property="gender" />
<result column="identified" jdbcType="VARCHAR" property="identified" />
<result column="tel_no" jdbcType="INTEGER" property="telNo" />
<result column="prod_mode" jdbcType="VARCHAR" property="prodMode" />
<result column="nickname" jdbcType="VARCHAR" property="nickname" />
<result column="disabled" jdbcType="VARCHAR" property="disabled" />
<result column="location" jdbcType="VARCHAR" property="location" />
<result column="app_id" jdbcType="INTEGER" property="appId" />
<result column="email" jdbcType="VARCHAR" property="email" />
<result column="object" jdbcType="VARCHAR" property="object" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="del_flag" jdbcType="VARCHAR" property="delFlag" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, member_id, gender, `identified`, tel_no, prod_mode, nickname, disabled, `location`,
app_id, email, `object`, `status`, create_time, del_flag
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from adapay_member_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from adapay_member_info
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.AdapayMemberInfo" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into adapay_member_info (member_id, gender, `identified`,
tel_no, prod_mode, nickname,
disabled, `location`, app_id,
email, `object`, `status`,
create_time, del_flag)
values (#{memberId,jdbcType=VARCHAR}, #{gender,jdbcType=VARCHAR}, #{identified,jdbcType=VARCHAR},
#{telNo,jdbcType=INTEGER}, #{prodMode,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR},
#{disabled,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, #{appId,jdbcType=INTEGER},
#{email,jdbcType=VARCHAR}, #{object,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.AdapayMemberInfo" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into adapay_member_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="memberId != null">
member_id,
</if>
<if test="gender != null">
gender,
</if>
<if test="identified != null">
`identified`,
</if>
<if test="telNo != null">
tel_no,
</if>
<if test="prodMode != null">
prod_mode,
</if>
<if test="nickname != null">
nickname,
</if>
<if test="disabled != null">
disabled,
</if>
<if test="location != null">
`location`,
</if>
<if test="appId != null">
app_id,
</if>
<if test="email != null">
email,
</if>
<if test="object != null">
`object`,
</if>
<if test="status != null">
`status`,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="delFlag != null">
del_flag,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="memberId != null">
#{memberId,jdbcType=VARCHAR},
</if>
<if test="gender != null">
#{gender,jdbcType=VARCHAR},
</if>
<if test="identified != null">
#{identified,jdbcType=VARCHAR},
</if>
<if test="telNo != null">
#{telNo,jdbcType=INTEGER},
</if>
<if test="prodMode != null">
#{prodMode,jdbcType=VARCHAR},
</if>
<if test="nickname != null">
#{nickname,jdbcType=VARCHAR},
</if>
<if test="disabled != null">
#{disabled,jdbcType=VARCHAR},
</if>
<if test="location != null">
#{location,jdbcType=VARCHAR},
</if>
<if test="appId != null">
#{appId,jdbcType=INTEGER},
</if>
<if test="email != null">
#{email,jdbcType=VARCHAR},
</if>
<if test="object != null">
#{object,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="delFlag != null">
#{delFlag,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.jsowell.pile.domain.AdapayMemberInfo">
<!--@mbg.generated-->
update adapay_member_info
<set>
<if test="memberId != null">
member_id = #{memberId,jdbcType=VARCHAR},
</if>
<if test="gender != null">
gender = #{gender,jdbcType=VARCHAR},
</if>
<if test="identified != null">
`identified` = #{identified,jdbcType=VARCHAR},
</if>
<if test="telNo != null">
tel_no = #{telNo,jdbcType=INTEGER},
</if>
<if test="prodMode != null">
prod_mode = #{prodMode,jdbcType=VARCHAR},
</if>
<if test="nickname != null">
nickname = #{nickname,jdbcType=VARCHAR},
</if>
<if test="disabled != null">
disabled = #{disabled,jdbcType=VARCHAR},
</if>
<if test="location != null">
`location` = #{location,jdbcType=VARCHAR},
</if>
<if test="appId != null">
app_id = #{appId,jdbcType=INTEGER},
</if>
<if test="email != null">
email = #{email,jdbcType=VARCHAR},
</if>
<if test="object != null">
`object` = #{object,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="delFlag != null">
del_flag = #{delFlag,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.jsowell.pile.domain.AdapayMemberInfo">
<!--@mbg.generated-->
update adapay_member_info
set member_id = #{memberId,jdbcType=VARCHAR},
gender = #{gender,jdbcType=VARCHAR},
`identified` = #{identified,jdbcType=VARCHAR},
tel_no = #{telNo,jdbcType=INTEGER},
prod_mode = #{prodMode,jdbcType=VARCHAR},
nickname = #{nickname,jdbcType=VARCHAR},
disabled = #{disabled,jdbcType=VARCHAR},
`location` = #{location,jdbcType=VARCHAR},
app_id = #{appId,jdbcType=INTEGER},
email = #{email,jdbcType=VARCHAR},
`object` = #{object,jdbcType=VARCHAR},
`status` = #{status,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
del_flag = #{delFlag,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>