From d75ce709eaf1e18f476bf573a29405cc8d7921f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E9=B9=8F=E8=BE=89?= <18322780655@163.com> Date: Thu, 24 Aug 2023 10:09:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dao/system/dao/GuserSetMapper.java | 25 +++ .../dao/TbPlussUserAccountFlowMapper.java | 21 ++ .../system/dao/TbPlussUserAccountMapper.java | 21 ++ .../dao/system/entity/GuserSet.java | 37 ++++ .../dao/system/entity/TbPlussUserAccount.java | 25 +++ .../system/entity/TbPlussUserAccountFlow.java | 29 +++ .../main/resources/mapper/GuserSetMapper.xml | 195 ++++++++++++++++++ .../mapper/TbPlussUserAccountFlowMapper.xml | 141 +++++++++++++ .../mapper/TbPlussUserAccountMapper.xml | 106 ++++++++++ 9 files changed, 600 insertions(+) create mode 100644 newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/dao/GuserSetMapper.java create mode 100644 newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/dao/TbPlussUserAccountFlowMapper.java create mode 100644 newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/dao/TbPlussUserAccountMapper.java create mode 100644 newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/entity/GuserSet.java create mode 100644 newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/entity/TbPlussUserAccount.java create mode 100644 newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/entity/TbPlussUserAccountFlow.java create mode 100644 newadmin/dao-api/src/main/resources/mapper/GuserSetMapper.xml create mode 100644 newadmin/dao-api/src/main/resources/mapper/TbPlussUserAccountFlowMapper.xml create mode 100644 newadmin/dao-api/src/main/resources/mapper/TbPlussUserAccountMapper.xml diff --git a/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/dao/GuserSetMapper.java b/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/dao/GuserSetMapper.java new file mode 100644 index 0000000..63ec7a1 --- /dev/null +++ b/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/dao/GuserSetMapper.java @@ -0,0 +1,25 @@ +package com.chaozhanggui.dao.system.dao; + +import com.chaozhanggui.dao.system.entity.GuserSet; +import org.apache.ibatis.annotations.Mapper; +import org.springframework.stereotype.Component; + +import java.util.List; + +@Component +@Mapper +public interface GuserSetMapper { + int deleteByPrimaryKey(Integer id); + + int insert(GuserSet record); + + int insertSelective(GuserSet record); + + GuserSet selectByPrimaryKey(Integer id); + + int updateByPrimaryKeySelective(GuserSet record); + + int updateByPrimaryKey(GuserSet record); + + List selectByAppId(String appId); +} \ No newline at end of file diff --git a/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/dao/TbPlussUserAccountFlowMapper.java b/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/dao/TbPlussUserAccountFlowMapper.java new file mode 100644 index 0000000..8d87686 --- /dev/null +++ b/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/dao/TbPlussUserAccountFlowMapper.java @@ -0,0 +1,21 @@ +package com.chaozhanggui.dao.system.dao; + +import com.chaozhanggui.dao.system.entity.TbPlussUserAccountFlow; +import org.apache.ibatis.annotations.Mapper; +import org.springframework.stereotype.Component; + +@Component +@Mapper +public interface TbPlussUserAccountFlowMapper { + int deleteByPrimaryKey(Integer id); + + int insert(TbPlussUserAccountFlow record); + + int insertSelective(TbPlussUserAccountFlow record); + + TbPlussUserAccountFlow selectByPrimaryKey(Integer id); + + int updateByPrimaryKeySelective(TbPlussUserAccountFlow record); + + int updateByPrimaryKey(TbPlussUserAccountFlow record); +} \ No newline at end of file diff --git a/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/dao/TbPlussUserAccountMapper.java b/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/dao/TbPlussUserAccountMapper.java new file mode 100644 index 0000000..b192571 --- /dev/null +++ b/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/dao/TbPlussUserAccountMapper.java @@ -0,0 +1,21 @@ +package com.chaozhanggui.dao.system.dao; + +import com.chaozhanggui.dao.system.entity.TbPlussUserAccount; +import org.apache.ibatis.annotations.Mapper; +import org.springframework.stereotype.Component; + +@Component +@Mapper +public interface TbPlussUserAccountMapper { + int deleteByPrimaryKey(Integer userId); + + int insert(TbPlussUserAccount record); + + int insertSelective(TbPlussUserAccount record); + + TbPlussUserAccount selectByPrimaryKey(Integer userId); + + int updateByPrimaryKeySelective(TbPlussUserAccount record); + + int updateByPrimaryKey(TbPlussUserAccount record); +} \ No newline at end of file diff --git a/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/entity/GuserSet.java b/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/entity/GuserSet.java new file mode 100644 index 0000000..f346df5 --- /dev/null +++ b/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/entity/GuserSet.java @@ -0,0 +1,37 @@ +package com.chaozhanggui.dao.system.entity; + +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +@Data +public class GuserSet implements Serializable { + private Integer id; + + private String appId; + + private String storeId; + + private String storeCode; + + private String storeName; + + private String merchantName; + + private String token; + + private String ip; + + private String nofiyUrl; + + private String publicKey; + + private String privateKey; + + private Date createTime; + + private Date updateTime; + + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/entity/TbPlussUserAccount.java b/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/entity/TbPlussUserAccount.java new file mode 100644 index 0000000..5a20a0b --- /dev/null +++ b/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/entity/TbPlussUserAccount.java @@ -0,0 +1,25 @@ +package com.chaozhanggui.dao.system.entity; + +import lombok.Data; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +@Data +public class TbPlussUserAccount implements Serializable { + private Integer userId; + + private BigDecimal freezeBalance; + + private BigDecimal balance; + + private BigDecimal outBalance; + + private Date createTime; + + private Date updateTime; + + private static final long serialVersionUID = 1L; + +} \ No newline at end of file diff --git a/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/entity/TbPlussUserAccountFlow.java b/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/entity/TbPlussUserAccountFlow.java new file mode 100644 index 0000000..a95bdef --- /dev/null +++ b/newadmin/dao-api/src/main/java/com/chaozhanggui/dao/system/entity/TbPlussUserAccountFlow.java @@ -0,0 +1,29 @@ +package com.chaozhanggui.dao.system.entity; + +import lombok.Data; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; +@Data +public class TbPlussUserAccountFlow implements Serializable { + private Integer id; + + private Integer userId; + + private String bizCode; + + private String bizName; + + private BigDecimal amount; + + private BigDecimal balance; + + private String remark; + + private Date createTime; + + private Date updateTime; + + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/newadmin/dao-api/src/main/resources/mapper/GuserSetMapper.xml b/newadmin/dao-api/src/main/resources/mapper/GuserSetMapper.xml new file mode 100644 index 0000000..6b2df53 --- /dev/null +++ b/newadmin/dao-api/src/main/resources/mapper/GuserSetMapper.xml @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + id, app_id, store_id, store_code, store_name, merchant_name, token, ip, nofiy_url, + public_key, private_key, create_time, update_time + + + + delete from g_user_set + where id = #{id,jdbcType=INTEGER} + + + insert into g_user_set (id, app_id, store_id, + store_code, store_name, merchant_name, + token, ip, nofiy_url, + public_key, private_key, create_time, + update_time) + values (#{id,jdbcType=INTEGER}, #{appId,jdbcType=VARCHAR}, #{storeId,jdbcType=VARCHAR}, + #{storeCode,jdbcType=VARCHAR}, #{storeName,jdbcType=VARCHAR}, #{merchantName,jdbcType=VARCHAR}, + #{token,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{nofiyUrl,jdbcType=VARCHAR}, + #{publicKey,jdbcType=VARCHAR}, #{privateKey,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{updateTime,jdbcType=TIMESTAMP}) + + + insert into g_user_set + + + id, + + + app_id, + + + store_id, + + + store_code, + + + store_name, + + + merchant_name, + + + token, + + + ip, + + + nofiy_url, + + + public_key, + + + private_key, + + + create_time, + + + update_time, + + + + + #{id,jdbcType=INTEGER}, + + + #{appId,jdbcType=VARCHAR}, + + + #{storeId,jdbcType=VARCHAR}, + + + #{storeCode,jdbcType=VARCHAR}, + + + #{storeName,jdbcType=VARCHAR}, + + + #{merchantName,jdbcType=VARCHAR}, + + + #{token,jdbcType=VARCHAR}, + + + #{ip,jdbcType=VARCHAR}, + + + #{nofiyUrl,jdbcType=VARCHAR}, + + + #{publicKey,jdbcType=VARCHAR}, + + + #{privateKey,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + + + update g_user_set + + + app_id = #{appId,jdbcType=VARCHAR}, + + + store_id = #{storeId,jdbcType=VARCHAR}, + + + store_code = #{storeCode,jdbcType=VARCHAR}, + + + store_name = #{storeName,jdbcType=VARCHAR}, + + + merchant_name = #{merchantName,jdbcType=VARCHAR}, + + + token = #{token,jdbcType=VARCHAR}, + + + ip = #{ip,jdbcType=VARCHAR}, + + + nofiy_url = #{nofiyUrl,jdbcType=VARCHAR}, + + + public_key = #{publicKey,jdbcType=VARCHAR}, + + + private_key = #{privateKey,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=INTEGER} + + + update g_user_set + set app_id = #{appId,jdbcType=VARCHAR}, + store_id = #{storeId,jdbcType=VARCHAR}, + store_code = #{storeCode,jdbcType=VARCHAR}, + store_name = #{storeName,jdbcType=VARCHAR}, + merchant_name = #{merchantName,jdbcType=VARCHAR}, + token = #{token,jdbcType=VARCHAR}, + ip = #{ip,jdbcType=VARCHAR}, + nofiy_url = #{nofiyUrl,jdbcType=VARCHAR}, + public_key = #{publicKey,jdbcType=VARCHAR}, + private_key = #{privateKey,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=INTEGER} + + + + \ No newline at end of file diff --git a/newadmin/dao-api/src/main/resources/mapper/TbPlussUserAccountFlowMapper.xml b/newadmin/dao-api/src/main/resources/mapper/TbPlussUserAccountFlowMapper.xml new file mode 100644 index 0000000..f23cd8b --- /dev/null +++ b/newadmin/dao-api/src/main/resources/mapper/TbPlussUserAccountFlowMapper.xml @@ -0,0 +1,141 @@ + + + + + + + + + + + + + + + + id, user_id, biz_code, biz_name, amount, balance, remark, create_time, update_time + + + + delete from tb_pluss_user_account_flow + where id = #{id,jdbcType=INTEGER} + + + insert into tb_pluss_user_account_flow (id, user_id, biz_code, + biz_name, amount, balance, + remark, create_time, update_time + ) + values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{bizCode,jdbcType=VARCHAR}, + #{bizName,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{balance,jdbcType=DECIMAL}, + #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP} + ) + + + insert into tb_pluss_user_account_flow + + + id, + + + user_id, + + + biz_code, + + + biz_name, + + + amount, + + + balance, + + + remark, + + + create_time, + + + update_time, + + + + + #{id,jdbcType=INTEGER}, + + + #{userId,jdbcType=INTEGER}, + + + #{bizCode,jdbcType=VARCHAR}, + + + #{bizName,jdbcType=VARCHAR}, + + + #{amount,jdbcType=DECIMAL}, + + + #{balance,jdbcType=DECIMAL}, + + + #{remark,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + + + update tb_pluss_user_account_flow + + + user_id = #{userId,jdbcType=INTEGER}, + + + biz_code = #{bizCode,jdbcType=VARCHAR}, + + + biz_name = #{bizName,jdbcType=VARCHAR}, + + + amount = #{amount,jdbcType=DECIMAL}, + + + balance = #{balance,jdbcType=DECIMAL}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=INTEGER} + + + update tb_pluss_user_account_flow + set user_id = #{userId,jdbcType=INTEGER}, + biz_code = #{bizCode,jdbcType=VARCHAR}, + biz_name = #{bizName,jdbcType=VARCHAR}, + amount = #{amount,jdbcType=DECIMAL}, + balance = #{balance,jdbcType=DECIMAL}, + remark = #{remark,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/newadmin/dao-api/src/main/resources/mapper/TbPlussUserAccountMapper.xml b/newadmin/dao-api/src/main/resources/mapper/TbPlussUserAccountMapper.xml new file mode 100644 index 0000000..37b30ba --- /dev/null +++ b/newadmin/dao-api/src/main/resources/mapper/TbPlussUserAccountMapper.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + user_id, freeze_balance, balance, out_balance, create_time, update_time + + + + delete from tb_pluss_user_account + where user_id = #{userId,jdbcType=INTEGER} + + + insert into tb_pluss_user_account (user_id, freeze_balance, balance, + out_balance, create_time, update_time + ) + values (#{userId,jdbcType=INTEGER}, #{freezeBalance,jdbcType=DECIMAL}, #{balance,jdbcType=DECIMAL}, + #{outBalance,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP} + ) + + + insert into tb_pluss_user_account + + + user_id, + + + freeze_balance, + + + balance, + + + out_balance, + + + create_time, + + + update_time, + + + + + #{userId,jdbcType=INTEGER}, + + + #{freezeBalance,jdbcType=DECIMAL}, + + + #{balance,jdbcType=DECIMAL}, + + + #{outBalance,jdbcType=DECIMAL}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + + + update tb_pluss_user_account + + + freeze_balance = #{freezeBalance,jdbcType=DECIMAL}, + + + balance = #{balance,jdbcType=DECIMAL}, + + + out_balance = #{outBalance,jdbcType=DECIMAL}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + where user_id = #{userId,jdbcType=INTEGER} + + + update tb_pluss_user_account + set freeze_balance = #{freezeBalance,jdbcType=DECIMAL}, + balance = #{balance,jdbcType=DECIMAL}, + out_balance = #{outBalance,jdbcType=DECIMAL}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP} + where user_id = #{userId,jdbcType=INTEGER} + + \ No newline at end of file