update 汇付会员账户表实体类

This commit is contained in:
2023-06-15 14:17:26 +08:00
parent c7bd2103da
commit 47b7ebc636
6 changed files with 399 additions and 4 deletions

View File

@@ -8,10 +8,6 @@ import lombok.*;
@AllArgsConstructor
@Builder
public class AdapaySettleAccountVO {
/**
* 主键
*/
private Long id;
/**
* 运营商id

View File

@@ -0,0 +1,99 @@
package com.jsowell.pile.domain;
import com.jsowell.common.annotation.Excel;
import com.jsowell.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 【请填写功能名称】对象 adapay_member_account
*
* @author jsowell
* @date 2023-06-15
*/
public class AdapayMemberAccount extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
private Long id;
/**
* 运营商id
*/
@Excel(name = "运营商id")
private String merchantId;
/**
* 汇付会员id
*/
@Excel(name = "汇付会员id")
private String adapayMemberId;
/**
* 汇付结算账户id
*/
@Excel(name = "汇付结算账户id")
private String settleAccountId;
/**
* 删除标识0-正常1-删除)
*/
private String delFlag;
public void setId(Long id) {
this.id = id;
}
public Long getId() {
return id;
}
public void setMerchantId(String merchantId) {
this.merchantId = merchantId;
}
public String getMerchantId() {
return merchantId;
}
public void setAdapayMemberId(String adapayMemberId) {
this.adapayMemberId = adapayMemberId;
}
public String getAdapayMemberId() {
return adapayMemberId;
}
public void setSettleAccountId(String settleAccountId) {
this.settleAccountId = settleAccountId;
}
public String getSettleAccountId() {
return settleAccountId;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag;
}
public String getDelFlag() {
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)
.append("id", getId())
.append("merchantId", getMerchantId())
.append("adapayMemberId", getAdapayMemberId())
.append("settleAccountId", getSettleAccountId())
.append("createTime", getCreateTime())
.append("createBy", getCreateBy())
.append("updateTime", getUpdateTime())
.append("updateBy", getUpdateBy())
.append("delFlag", getDelFlag())
.toString();
}
}

View File

@@ -0,0 +1,63 @@
package com.jsowell.pile.mapper;
import com.jsowell.pile.domain.AdapayMemberAccount;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* 【请填写功能名称】Mapper接口
*
* @author jsowell
* @date 2023-06-15
*/
@Repository
public interface AdapayMemberAccountMapper {
/**
* 查询【请填写功能名称】
*
* @param id 【请填写功能名称】主键
* @return 【请填写功能名称】
*/
public AdapayMemberAccount selectAdapayMemberAccountById(Long id);
/**
* 查询【请填写功能名称】列表
*
* @param adapayMemberAccount 【请填写功能名称】
* @return 【请填写功能名称】集合
*/
public List<AdapayMemberAccount> selectAdapayMemberAccountList(AdapayMemberAccount adapayMemberAccount);
/**
* 新增【请填写功能名称】
*
* @param adapayMemberAccount 【请填写功能名称】
* @return 结果
*/
public int insertAdapayMemberAccount(AdapayMemberAccount adapayMemberAccount);
/**
* 修改【请填写功能名称】
*
* @param adapayMemberAccount 【请填写功能名称】
* @return 结果
*/
public int updateAdapayMemberAccount(AdapayMemberAccount adapayMemberAccount);
/**
* 删除【请填写功能名称】
*
* @param id 【请填写功能名称】主键
* @return 结果
*/
public int deleteAdapayMemberAccountById(Long id);
/**
* 批量删除【请填写功能名称】
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteAdapayMemberAccountByIds(Long[] ids);
}

View File

@@ -0,0 +1,61 @@
package com.jsowell.pile.service;
import com.jsowell.pile.domain.AdapayMemberAccount;
import java.util.List;
/**
* 【请填写功能名称】Service接口
*
* @author jsowell
* @date 2023-06-15
*/
public interface IAdapayMemberAccountService {
/**
* 查询【请填写功能名称】
*
* @param id 【请填写功能名称】主键
* @return 【请填写功能名称】
*/
public AdapayMemberAccount selectAdapayMemberAccountById(Long id);
/**
* 查询【请填写功能名称】列表
*
* @param adapayMemberAccount 【请填写功能名称】
* @return 【请填写功能名称】集合
*/
public List<AdapayMemberAccount> selectAdapayMemberAccountList(AdapayMemberAccount adapayMemberAccount);
/**
* 新增【请填写功能名称】
*
* @param adapayMemberAccount 【请填写功能名称】
* @return 结果
*/
public int insertAdapayMemberAccount(AdapayMemberAccount adapayMemberAccount);
/**
* 修改【请填写功能名称】
*
* @param adapayMemberAccount 【请填写功能名称】
* @return 结果
*/
public int updateAdapayMemberAccount(AdapayMemberAccount adapayMemberAccount);
/**
* 批量删除【请填写功能名称】
*
* @param ids 需要删除的【请填写功能名称】主键集合
* @return 结果
*/
public int deleteAdapayMemberAccountByIds(Long[] ids);
/**
* 删除【请填写功能名称】信息
*
* @param id 【请填写功能名称】主键
* @return 结果
*/
public int deleteAdapayMemberAccountById(Long id);
}

View File

@@ -0,0 +1,90 @@
package com.jsowell.pile.service.impl;
import com.jsowell.common.util.DateUtils;
import com.jsowell.pile.domain.AdapayMemberAccount;
import com.jsowell.pile.mapper.AdapayMemberAccountMapper;
import com.jsowell.pile.service.IAdapayMemberAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 【请填写功能名称】Service业务层处理
*
* @author jsowell
* @date 2023-06-15
*/
@Service
public class AdapayMemberAccountServiceImpl implements IAdapayMemberAccountService {
@Autowired
private AdapayMemberAccountMapper adapayMemberAccountMapper;
/**
* 查询【请填写功能名称】
*
* @param id 【请填写功能名称】主键
* @return 【请填写功能名称】
*/
@Override
public AdapayMemberAccount selectAdapayMemberAccountById(Long id) {
return adapayMemberAccountMapper.selectAdapayMemberAccountById(id);
}
/**
* 查询【请填写功能名称】列表
*
* @param adapayMemberAccount 【请填写功能名称】
* @return 【请填写功能名称】
*/
@Override
public List<AdapayMemberAccount> selectAdapayMemberAccountList(AdapayMemberAccount adapayMemberAccount) {
return adapayMemberAccountMapper.selectAdapayMemberAccountList(adapayMemberAccount);
}
/**
* 新增【请填写功能名称】
*
* @param adapayMemberAccount 【请填写功能名称】
* @return 结果
*/
@Override
public int insertAdapayMemberAccount(AdapayMemberAccount adapayMemberAccount) {
adapayMemberAccount.setCreateTime(DateUtils.getNowDate());
return adapayMemberAccountMapper.insertAdapayMemberAccount(adapayMemberAccount);
}
/**
* 修改【请填写功能名称】
*
* @param adapayMemberAccount 【请填写功能名称】
* @return 结果
*/
@Override
public int updateAdapayMemberAccount(AdapayMemberAccount adapayMemberAccount) {
adapayMemberAccount.setUpdateTime(DateUtils.getNowDate());
return adapayMemberAccountMapper.updateAdapayMemberAccount(adapayMemberAccount);
}
/**
* 批量删除【请填写功能名称】
*
* @param ids 需要删除的【请填写功能名称】主键
* @return 结果
*/
@Override
public int deleteAdapayMemberAccountByIds(Long[] ids) {
return adapayMemberAccountMapper.deleteAdapayMemberAccountByIds(ids);
}
/**
* 删除【请填写功能名称】信息
*
* @param id 【请填写功能名称】主键
* @return 结果
*/
@Override
public int deleteAdapayMemberAccountById(Long id) {
return adapayMemberAccountMapper.deleteAdapayMemberAccountById(id);
}
}

View File

@@ -0,0 +1,86 @@
<?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.AdapayMemberAccountMapper">
<resultMap type="AdapayMemberAccount" id="AdapayMemberAccountResult">
<result property="id" column="id" />
<result property="merchantId" column="merchant_id" />
<result property="adapayMemberId" column="adapay_member_id" />
<result property="settleAccountId" column="settle_account_id" />
<result property="createTime" column="create_time" />
<result property="createBy" column="create_by" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectAdapayMemberAccountVo">
select id, merchant_id, adapay_member_id, settle_account_id, create_time, create_by, update_time, update_by, del_flag from adapay_member_account
</sql>
<select id="selectAdapayMemberAccountList" parameterType="AdapayMemberAccount" resultMap="AdapayMemberAccountResult">
<include refid="selectAdapayMemberAccountVo"/>
<where>
<if test="merchantId != null and merchantId != ''"> and merchant_id = #{merchantId}</if>
<if test="adapayMemberId != null and adapayMemberId != ''"> and adapay_member_id = #{adapayMemberId}</if>
<if test="settleAccountId != null and settleAccountId != ''"> and settle_account_id = #{settleAccountId}</if>
</where>
</select>
<select id="selectAdapayMemberAccountById" parameterType="Long" resultMap="AdapayMemberAccountResult">
<include refid="selectAdapayMemberAccountVo"/>
where id = #{id}
</select>
<insert id="insertAdapayMemberAccount" parameterType="AdapayMemberAccount" useGeneratedKeys="true" keyProperty="id">
insert into adapay_member_account
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="merchantId != null">merchant_id,</if>
<if test="adapayMemberId != null">adapay_member_id,</if>
<if test="settleAccountId != null">settle_account_id,</if>
<if test="createTime != null">create_time,</if>
<if test="createBy != null">create_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="delFlag != null">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="merchantId != null">#{merchantId},</if>
<if test="adapayMemberId != null">#{adapayMemberId},</if>
<if test="settleAccountId != null">#{settleAccountId},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="delFlag != null">#{delFlag},</if>
</trim>
</insert>
<update id="updateAdapayMemberAccount" parameterType="AdapayMemberAccount">
update adapay_member_account
<trim prefix="SET" suffixOverrides=",">
<if test="merchantId != null">merchant_id = #{merchantId},</if>
<if test="adapayMemberId != null">adapay_member_id = #{adapayMemberId},</if>
<if test="settleAccountId != null">settle_account_id = #{settleAccountId},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteAdapayMemberAccountById" parameterType="Long">
delete from adapay_member_account where id = #{id}
</delete>
<delete id="deleteAdapayMemberAccountByIds" parameterType="String">
delete from adapay_member_account where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>