mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-25 09:39:46 +08:00
新增钱包编号字段,钱包归属运营商字段
This commit is contained in:
@@ -1,17 +1,18 @@
|
|||||||
package com.jsowell.pile.domain;
|
package com.jsowell.pile.domain;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
import java.math.BigDecimal;
|
|
||||||
import java.time.LocalDateTime;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 会员钱包信息表
|
* 会员钱包信息表
|
||||||
*/
|
*/
|
||||||
@Data
|
@Getter
|
||||||
|
@Setter
|
||||||
@Builder
|
@Builder
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@@ -26,6 +27,16 @@ public class MemberWalletInfo {
|
|||||||
*/
|
*/
|
||||||
private String memberId;
|
private String memberId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 钱包归属运营商id
|
||||||
|
*/
|
||||||
|
private String merchantId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 钱包编号
|
||||||
|
*/
|
||||||
|
private String walletCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 本金余额
|
* 本金余额
|
||||||
*/
|
*/
|
||||||
@@ -43,11 +54,11 @@ public class MemberWalletInfo {
|
|||||||
|
|
||||||
private String createBy;
|
private String createBy;
|
||||||
|
|
||||||
private LocalDateTime createTime;
|
private Date createTime;
|
||||||
|
|
||||||
private String updateBy;
|
private String updateBy;
|
||||||
|
|
||||||
private LocalDateTime updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除标识(0-正常;1-删除)
|
* 删除标识(0-正常;1-删除)
|
||||||
|
|||||||
@@ -1,21 +1,55 @@
|
|||||||
package com.jsowell.pile.mapper;
|
package com.jsowell.pile.mapper;
|
||||||
|
|
||||||
import com.jsowell.pile.domain.MemberWalletInfo;
|
import com.jsowell.pile.domain.MemberWalletInfo;
|
||||||
import org.springframework.stereotype.Repository;
|
|
||||||
|
|
||||||
@Repository
|
|
||||||
public interface MemberWalletInfoMapper {
|
public interface MemberWalletInfoMapper {
|
||||||
|
/**
|
||||||
|
* delete by primary key
|
||||||
|
*
|
||||||
|
* @param id primaryKey
|
||||||
|
* @return deleteCount
|
||||||
|
*/
|
||||||
int deleteByPrimaryKey(Integer id);
|
int deleteByPrimaryKey(Integer id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* insert record to table
|
||||||
|
*
|
||||||
|
* @param record the record
|
||||||
|
* @return insert count
|
||||||
|
*/
|
||||||
int insert(MemberWalletInfo record);
|
int insert(MemberWalletInfo record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* insert record to table selective
|
||||||
|
*
|
||||||
|
* @param record the record
|
||||||
|
* @return insert count
|
||||||
|
*/
|
||||||
int insertSelective(MemberWalletInfo record);
|
int insertSelective(MemberWalletInfo record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* select by primary key
|
||||||
|
*
|
||||||
|
* @param id primary key
|
||||||
|
* @return object by primary key
|
||||||
|
*/
|
||||||
MemberWalletInfo selectByPrimaryKey(Integer id);
|
MemberWalletInfo selectByPrimaryKey(Integer id);
|
||||||
|
|
||||||
MemberWalletInfo selectByMemberId(String memberId);
|
/**
|
||||||
|
* update record selective
|
||||||
|
*
|
||||||
|
* @param record the updated record
|
||||||
|
* @return update count
|
||||||
|
*/
|
||||||
int updateByPrimaryKeySelective(MemberWalletInfo record);
|
int updateByPrimaryKeySelective(MemberWalletInfo record);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* update record
|
||||||
|
*
|
||||||
|
* @param record the updated record
|
||||||
|
* @return update count
|
||||||
|
*/
|
||||||
int updateByPrimaryKey(MemberWalletInfo record);
|
int updateByPrimaryKey(MemberWalletInfo record);
|
||||||
|
|
||||||
|
MemberWalletInfo selectByMemberId(String memberId);
|
||||||
}
|
}
|
||||||
@@ -6,6 +6,8 @@
|
|||||||
<!--@Table member_wallet_info-->
|
<!--@Table member_wallet_info-->
|
||||||
<id column="id" jdbcType="INTEGER" property="id" />
|
<id column="id" jdbcType="INTEGER" property="id" />
|
||||||
<result column="member_id" jdbcType="VARCHAR" property="memberId" />
|
<result column="member_id" jdbcType="VARCHAR" property="memberId" />
|
||||||
|
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
|
||||||
|
<result column="wallet_code" jdbcType="VARCHAR" property="walletCode" />
|
||||||
<result column="principal_balance" jdbcType="DECIMAL" property="principalBalance" />
|
<result column="principal_balance" jdbcType="DECIMAL" property="principalBalance" />
|
||||||
<result column="gift_balance" jdbcType="DECIMAL" property="giftBalance" />
|
<result column="gift_balance" jdbcType="DECIMAL" property="giftBalance" />
|
||||||
<result column="version" jdbcType="INTEGER" property="version" />
|
<result column="version" jdbcType="INTEGER" property="version" />
|
||||||
@@ -17,8 +19,8 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
id, member_id, principal_balance, gift_balance, version, create_by, create_time,
|
id, member_id, merchant_id, wallet_code, principal_balance, gift_balance, version,
|
||||||
update_by, update_time, del_flag
|
create_by, create_time, update_by, update_time, del_flag
|
||||||
</sql>
|
</sql>
|
||||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
@@ -32,27 +34,30 @@
|
|||||||
delete from member_wallet_info
|
delete from member_wallet_info
|
||||||
where id = #{id,jdbcType=INTEGER}
|
where id = #{id,jdbcType=INTEGER}
|
||||||
</delete>
|
</delete>
|
||||||
<insert id="insert" parameterType="com.jsowell.pile.domain.MemberWalletInfo">
|
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.MemberWalletInfo" useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
insert into member_wallet_info (id, member_id, principal_balance,
|
insert into member_wallet_info (member_id, merchant_id, wallet_code,
|
||||||
gift_balance, version, create_by,
|
principal_balance, gift_balance, version,
|
||||||
create_time, update_by, update_time,
|
create_by, create_time, update_by,
|
||||||
del_flag)
|
update_time, del_flag)
|
||||||
values (#{id,jdbcType=INTEGER}, #{memberId,jdbcType=VARCHAR}, #{principalBalance,jdbcType=DECIMAL},
|
values (#{memberId,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR}, #{walletCode,jdbcType=VARCHAR},
|
||||||
#{giftBalance,jdbcType=DECIMAL}, #{version,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR},
|
#{principalBalance,jdbcType=DECIMAL}, #{giftBalance,jdbcType=DECIMAL}, #{version,jdbcType=INTEGER},
|
||||||
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
|
||||||
#{delFlag,jdbcType=CHAR})
|
#{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=CHAR})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="com.jsowell.pile.domain.MemberWalletInfo">
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.jsowell.pile.domain.MemberWalletInfo" useGeneratedKeys="true">
|
||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
insert into member_wallet_info
|
insert into member_wallet_info
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
<if test="memberId != null">
|
||||||
id,
|
|
||||||
</if>
|
|
||||||
<if test="memberId != null and memberId != ''">
|
|
||||||
member_id,
|
member_id,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="merchantId != null">
|
||||||
|
merchant_id,
|
||||||
|
</if>
|
||||||
|
<if test="walletCode != null">
|
||||||
|
wallet_code,
|
||||||
|
</if>
|
||||||
<if test="principalBalance != null">
|
<if test="principalBalance != null">
|
||||||
principal_balance,
|
principal_balance,
|
||||||
</if>
|
</if>
|
||||||
@@ -62,29 +67,32 @@
|
|||||||
<if test="version != null">
|
<if test="version != null">
|
||||||
version,
|
version,
|
||||||
</if>
|
</if>
|
||||||
<if test="createBy != null and createBy != ''">
|
<if test="createBy != null">
|
||||||
create_by,
|
create_by,
|
||||||
</if>
|
</if>
|
||||||
<if test="createTime != null">
|
<if test="createTime != null">
|
||||||
create_time,
|
create_time,
|
||||||
</if>
|
</if>
|
||||||
<if test="updateBy != null and updateBy != ''">
|
<if test="updateBy != null">
|
||||||
update_by,
|
update_by,
|
||||||
</if>
|
</if>
|
||||||
<if test="updateTime != null">
|
<if test="updateTime != null">
|
||||||
update_time,
|
update_time,
|
||||||
</if>
|
</if>
|
||||||
<if test="delFlag != null and delFlag != ''">
|
<if test="delFlag != null">
|
||||||
del_flag,
|
del_flag,
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
<if test="memberId != null">
|
||||||
#{id,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<if test="memberId != null and memberId != ''">
|
|
||||||
#{memberId,jdbcType=VARCHAR},
|
#{memberId,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="merchantId != null">
|
||||||
|
#{merchantId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="walletCode != null">
|
||||||
|
#{walletCode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="principalBalance != null">
|
<if test="principalBalance != null">
|
||||||
#{principalBalance,jdbcType=DECIMAL},
|
#{principalBalance,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
@@ -94,19 +102,19 @@
|
|||||||
<if test="version != null">
|
<if test="version != null">
|
||||||
#{version,jdbcType=INTEGER},
|
#{version,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="createBy != null and createBy != ''">
|
<if test="createBy != null">
|
||||||
#{createBy,jdbcType=VARCHAR},
|
#{createBy,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="createTime != null">
|
<if test="createTime != null">
|
||||||
#{createTime,jdbcType=TIMESTAMP},
|
#{createTime,jdbcType=TIMESTAMP},
|
||||||
</if>
|
</if>
|
||||||
<if test="updateBy != null and updateBy != ''">
|
<if test="updateBy != null">
|
||||||
#{updateBy,jdbcType=VARCHAR},
|
#{updateBy,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="updateTime != null">
|
<if test="updateTime != null">
|
||||||
#{updateTime,jdbcType=TIMESTAMP},
|
#{updateTime,jdbcType=TIMESTAMP},
|
||||||
</if>
|
</if>
|
||||||
<if test="delFlag != null and delFlag != ''">
|
<if test="delFlag != null">
|
||||||
#{delFlag,jdbcType=CHAR},
|
#{delFlag,jdbcType=CHAR},
|
||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
@@ -115,9 +123,15 @@
|
|||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
update member_wallet_info
|
update member_wallet_info
|
||||||
<set>
|
<set>
|
||||||
<if test="memberId != null and memberId != ''">
|
<if test="memberId != null">
|
||||||
member_id = #{memberId,jdbcType=VARCHAR},
|
member_id = #{memberId,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="merchantId != null">
|
||||||
|
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
|
<if test="walletCode != null">
|
||||||
|
wallet_code = #{walletCode,jdbcType=VARCHAR},
|
||||||
|
</if>
|
||||||
<if test="principalBalance != null">
|
<if test="principalBalance != null">
|
||||||
principal_balance = #{principalBalance,jdbcType=DECIMAL},
|
principal_balance = #{principalBalance,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
@@ -127,19 +141,19 @@
|
|||||||
<if test="version != null">
|
<if test="version != null">
|
||||||
version = #{version,jdbcType=INTEGER},
|
version = #{version,jdbcType=INTEGER},
|
||||||
</if>
|
</if>
|
||||||
<if test="createBy != null and createBy != ''">
|
<if test="createBy != null">
|
||||||
create_by = #{createBy,jdbcType=VARCHAR},
|
create_by = #{createBy,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="createTime != null">
|
<if test="createTime != null">
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||||
</if>
|
</if>
|
||||||
<if test="updateBy != null and updateBy != ''">
|
<if test="updateBy != null">
|
||||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||||
</if>
|
</if>
|
||||||
<if test="updateTime != null">
|
<if test="updateTime != null">
|
||||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||||
</if>
|
</if>
|
||||||
<if test="delFlag != null and delFlag != ''">
|
<if test="delFlag != null">
|
||||||
del_flag = #{delFlag,jdbcType=CHAR},
|
del_flag = #{delFlag,jdbcType=CHAR},
|
||||||
</if>
|
</if>
|
||||||
</set>
|
</set>
|
||||||
@@ -149,6 +163,8 @@
|
|||||||
<!--@mbg.generated-->
|
<!--@mbg.generated-->
|
||||||
update member_wallet_info
|
update member_wallet_info
|
||||||
set member_id = #{memberId,jdbcType=VARCHAR},
|
set member_id = #{memberId,jdbcType=VARCHAR},
|
||||||
|
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
||||||
|
wallet_code = #{walletCode,jdbcType=VARCHAR},
|
||||||
principal_balance = #{principalBalance,jdbcType=DECIMAL},
|
principal_balance = #{principalBalance,jdbcType=DECIMAL},
|
||||||
gift_balance = #{giftBalance,jdbcType=DECIMAL},
|
gift_balance = #{giftBalance,jdbcType=DECIMAL},
|
||||||
version = #{version,jdbcType=INTEGER},
|
version = #{version,jdbcType=INTEGER},
|
||||||
|
|||||||
Reference in New Issue
Block a user