Browse Source

机构分账配置

liujc 1 year ago
parent
commit
eab025ef69
13 changed files with 646 additions and 1 deletions
  1. 49 0
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/PaymentDivMember.java
  2. 97 0
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/PaymentMerchantConfig.java
  3. 27 0
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/mapper/PaymentDivMemberMapper.java
  4. 27 0
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/mapper/PaymentMerchantConfigMapper.java
  5. 43 0
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/PaymentDivMemberService.java
  6. 43 0
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/PaymentMerchantConfigService.java
  7. 66 0
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/PaymentDivMemberServiceImpl.java
  8. 109 0
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/PaymentMerchantConfigServiceImpl.java
  9. 1 1
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/TenantAlbumServiceImpl.java
  10. 63 0
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/wrapper/PaymentDivMemberWrapper.java
  11. 63 0
      cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/wrapper/PaymentMerchantConfigWrapper.java
  12. 23 0
      cooleshow-user/user-biz/src/main/resources/config/mybatis/PaymentDivMemberMapper.xml
  13. 35 0
      cooleshow-user/user-biz/src/main/resources/config/mybatis/PaymentMerchantConfigMapper.xml

+ 49 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/PaymentDivMember.java

@@ -0,0 +1,49 @@
+package com.yonge.cooleshow.biz.dal.entity;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import lombok.Data;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+import java.util.Date;
+
+
+/**
+ * 分账子账户配置
+ * 2023-07-28 16:53:51
+ */
+@Data
+@ApiModel(" PaymentDivMember-分账子账户配置")
+@TableName("payment_div_member")
+public class PaymentDivMember implements Serializable {
+
+    @ApiModelProperty("主键") 
+	    @TableId(value = "id_")
+	    private Long id;
+
+    @ApiModelProperty("机构ID") 
+	@TableField(value = "tenant_id_")
+    private Long tenantId;
+
+    @ApiModelProperty("商户ID") 
+	@TableField(value = "app_id_")
+    private String appId;
+
+    @ApiModelProperty("分账用户ID") 
+	@TableField(value = "member_id_")
+    private String memberId;
+
+    @ApiModelProperty("创建时间") 
+	@TableField(value = "create_time_")
+    private Date createTime;
+
+    @ApiModelProperty("更新时间") 
+	@TableField(value = "update_time_")
+    private Date updateTime;
+
+}

+ 97 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/PaymentMerchantConfig.java

@@ -0,0 +1,97 @@
+package com.yonge.cooleshow.biz.dal.entity;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import lombok.Data;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+import java.util.Date;
+
+
+/**
+ * 支付三方账户配置
+ * 2023-07-28 16:53:51
+ */
+@Data
+@ApiModel(" PaymentMerchantConfig-支付三方账户配置")
+@TableName("payment_merchant_config")
+public class PaymentMerchantConfig implements Serializable {
+
+    @ApiModelProperty("主键") 
+	    @TableId(value = "id_")
+	    private Long id;
+
+    @ApiModelProperty("机构ID") 
+	@TableField(value = "tenant_id_")
+    private Long tenantId;
+
+    @ApiModelProperty("支付厂商") 
+	@TableField(value = "payment_vendor_")
+    private String paymentVendor;
+
+    @ApiModelProperty("支付厂商") 
+	@TableField(value = "payer_name_")
+    private String payerName;
+
+    @ApiModelProperty("商户ID") 
+	@TableField(value = "app_id_")
+    private String appId;
+
+    @ApiModelProperty("商户简称(英文)") 
+	@TableField(value = "mer_key_")
+    private String merKey;
+
+    @ApiModelProperty("商户Key") 
+	@TableField(value = "api_key_")
+    private String apiKey;
+
+    @ApiModelProperty("Mock密钥") 
+	@TableField(value = "mock_api_key_")
+    private String mockApiKey;
+
+    @ApiModelProperty("私钥") 
+	@TableField(value = "rsa_private_key_")
+    private String rsaPrivateKey;
+
+    @ApiModelProperty("公钥") 
+	@TableField(value = "rsa_public_key_")
+    private String rsaPublicKey;
+
+    @ApiModelProperty("拓展参数") 
+	@TableField(value = "expend_params_")
+    private String expendParams;
+
+    @ApiModelProperty("微信Key") 
+	@TableField(value = "wx_app_id_")
+    private String wxAppId;
+
+    @ApiModelProperty("微信密钥") 
+	@TableField(value = "wx_app_secret_")
+    private String wxAppSecret;
+
+    @ApiModelProperty("支付宝Key") 
+	@TableField(value = "alipay_app_id_")
+    private String alipayAppId;
+
+    @ApiModelProperty("支付宝私钥") 
+	@TableField(value = "alipay_private_key_")
+    private String alipayPrivateKey;
+
+    @ApiModelProperty("支付宝公钥") 
+	@TableField(value = "alipay_public_key_")
+    private String alipayPublicKey;
+
+    @ApiModelProperty("创建时间") 
+	@TableField(value = "create_time_")
+    private Date createTime;
+
+    @ApiModelProperty("更新时间") 
+	@TableField(value = "update_time_")
+    private Date updateTime;
+
+}

+ 27 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/mapper/PaymentDivMemberMapper.java

@@ -0,0 +1,27 @@
+package com.yonge.cooleshow.biz.dal.mapper;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+import com.yonge.cooleshow.biz.dal.entity.PaymentDivMember;
+import com.yonge.cooleshow.biz.dal.wrapper.PaymentDivMemberWrapper;
+
+/**
+ * 分账子账户配置
+ * 2023-07-28 16:53:51
+ */
+@Repository
+public interface PaymentDivMemberMapper extends BaseMapper<PaymentDivMember> {
+
+	/**
+	 * 分页查询
+	 * @param page IPage<PaymentDivMemberWrapper.PaymentDivMember>
+	 * @param param PaymentDivMemberWrapper.PaymentDivMemberQuery
+	 * @return List<PaymentDivMemberWrapper.PaymentDivMember>
+	 */
+	List<PaymentDivMember> selectPage(@Param("page") IPage<PaymentDivMember> page, @Param("param") PaymentDivMemberWrapper.PaymentDivMemberQuery param);
+	
+}

+ 27 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/mapper/PaymentMerchantConfigMapper.java

@@ -0,0 +1,27 @@
+package com.yonge.cooleshow.biz.dal.mapper;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+import com.yonge.cooleshow.biz.dal.entity.PaymentMerchantConfig;
+import com.yonge.cooleshow.biz.dal.wrapper.PaymentMerchantConfigWrapper;
+
+/**
+ * 支付三方账户配置
+ * 2023-07-28 16:53:51
+ */
+@Repository
+public interface PaymentMerchantConfigMapper extends BaseMapper<PaymentMerchantConfig> {
+
+	/**
+	 * 分页查询
+	 * @param page IPage<PaymentMerchantConfigWrapper.PaymentMerchantConfig>
+	 * @param param PaymentMerchantConfigWrapper.PaymentMerchantConfigQuery
+	 * @return List<PaymentMerchantConfigWrapper.PaymentMerchantConfig>
+	 */
+	List<PaymentMerchantConfig> selectPage(@Param("page") IPage<PaymentMerchantConfig> page, @Param("param") PaymentMerchantConfigWrapper.PaymentMerchantConfigQuery param);
+	
+}

+ 43 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/PaymentDivMemberService.java

@@ -0,0 +1,43 @@
+package com.yonge.cooleshow.biz.dal.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.yonge.cooleshow.biz.dal.wrapper.PaymentDivMemberWrapper;
+import com.yonge.cooleshow.biz.dal.entity.PaymentDivMember;
+
+/**
+ * 分账子账户配置
+ * 2023-07-28 16:53:51
+ */
+public interface PaymentDivMemberService extends IService<PaymentDivMember>  {
+
+	/**
+     * 查询详情
+     * @param id 详情ID
+     * @return PaymentDivMember
+     */
+	PaymentDivMember detail(Long id);
+
+    /**
+     * 分页查询
+     * @param page IPage<PaymentDivMember>
+     * @param query PaymentDivMemberWrapper.PaymentDivMemberQuery
+     * @return IPage<PaymentDivMember>
+     */
+    IPage<PaymentDivMember> selectPage(IPage<PaymentDivMember> page, PaymentDivMemberWrapper.PaymentDivMemberQuery query);
+	
+    /**
+     * 添加
+     * @param paymentDivMember PaymentDivMemberWrapper.PaymentDivMember
+     * @return Boolean
+     */
+     Boolean add(PaymentDivMemberWrapper.PaymentDivMember paymentDivMember);   
+
+    /**
+     * 更新
+     * @param paymentDivMember PaymentDivMemberWrapper.PaymentDivMember
+     * @return Boolean
+     */
+     Boolean update(PaymentDivMemberWrapper.PaymentDivMember paymentDivMember);
+     
+}

+ 43 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/PaymentMerchantConfigService.java

@@ -0,0 +1,43 @@
+package com.yonge.cooleshow.biz.dal.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.yonge.cooleshow.biz.dal.wrapper.PaymentMerchantConfigWrapper;
+import com.yonge.cooleshow.biz.dal.entity.PaymentMerchantConfig;
+
+/**
+ * 支付三方账户配置
+ * 2023-07-28 16:53:51
+ */
+public interface PaymentMerchantConfigService extends IService<PaymentMerchantConfig>  {
+
+	/**
+     * 查询详情
+     * @param id 详情ID
+     * @return PaymentMerchantConfig
+     */
+	PaymentMerchantConfig detail(Long id);
+
+    /**
+     * 分页查询
+     * @param page IPage<PaymentMerchantConfig>
+     * @param query PaymentMerchantConfigWrapper.PaymentMerchantConfigQuery
+     * @return IPage<PaymentMerchantConfig>
+     */
+    IPage<PaymentMerchantConfig> selectPage(IPage<PaymentMerchantConfig> page, PaymentMerchantConfigWrapper.PaymentMerchantConfigQuery query);
+	
+    /**
+     * 添加
+     * @param paymentMerchantConfig PaymentMerchantConfigWrapper.PaymentMerchantConfig
+     * @return Boolean
+     */
+     Boolean add(PaymentMerchantConfigWrapper.PaymentMerchantConfig paymentMerchantConfig);   
+
+    /**
+     * 更新
+     * @param paymentMerchantConfig PaymentMerchantConfigWrapper.PaymentMerchantConfig
+     * @return Boolean
+     */
+     Boolean update(PaymentMerchantConfigWrapper.PaymentMerchantConfig paymentMerchantConfig);
+     
+}

+ 66 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/PaymentDivMemberServiceImpl.java

@@ -0,0 +1,66 @@
+package com.yonge.cooleshow.biz.dal.service.impl;
+
+import com.alibaba.fastjson.JSON;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import org.springframework.beans.BeanUtils;
+import lombok.extern.slf4j.Slf4j;
+import com.yonge.cooleshow.biz.dal.entity.PaymentDivMember;
+import com.yonge.cooleshow.biz.dal.wrapper.PaymentDivMemberWrapper;
+import com.yonge.cooleshow.biz.dal.mapper.PaymentDivMemberMapper;
+import com.yonge.cooleshow.biz.dal.service.PaymentDivMemberService;
+
+/**
+ * 分账子账户配置
+ * 2023-07-28 16:53:51
+ */
+@Slf4j
+@Service
+public class PaymentDivMemberServiceImpl extends ServiceImpl<PaymentDivMemberMapper, PaymentDivMember> implements PaymentDivMemberService {
+
+	/**
+     * 查询详情
+     * @param id 详情ID
+     * @return PaymentDivMember
+     */
+	@Override
+    public PaymentDivMember detail(Long id) {
+        
+        return baseMapper.selectById(id);
+    }
+    
+    /**
+     * 分页查询
+     * @param page IPage<PaymentDivMember>
+     * @param query PaymentDivMemberWrapper.PaymentDivMemberQuery
+     * @return IPage<PaymentDivMember>
+     */
+    @Override
+    public IPage<PaymentDivMember> selectPage(IPage<PaymentDivMember> page, PaymentDivMemberWrapper.PaymentDivMemberQuery query) {
+        
+        return page.setRecords(baseMapper.selectPage(page, query));
+    }
+	
+    /**
+     * 添加
+     * @param paymentDivMember PaymentDivMemberWrapper.PaymentDivMember
+     * @return Boolean
+     */
+    @Override
+    public Boolean add(PaymentDivMemberWrapper.PaymentDivMember paymentDivMember) {    	
+        
+        return this.save(JSON.parseObject(paymentDivMember.jsonString(), PaymentDivMember.class));
+    }
+
+    /**
+     * 更新
+     * @param paymentDivMember PaymentDivMemberWrapper.PaymentDivMember
+     * @return Boolean
+     */
+    @Override
+    public Boolean update(PaymentDivMemberWrapper.PaymentDivMember paymentDivMember){
+
+        return this.updateById(JSON.parseObject(paymentDivMember.jsonString(), PaymentDivMember.class));       
+    }
+}

+ 109 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/PaymentMerchantConfigServiceImpl.java

@@ -0,0 +1,109 @@
+package com.yonge.cooleshow.biz.dal.service.impl;
+
+import com.alibaba.fastjson.JSON;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.microsvc.toolkit.middleware.payment.common.api.PaymentServiceContext;
+import com.microsvc.toolkit.middleware.payment.impl.AdapayPaymentServicePlugin;
+import com.microsvc.toolkit.middleware.payment.properties.PayConfigProperties;
+import org.apache.commons.collections.CollectionUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.beans.BeanUtils;
+import lombok.extern.slf4j.Slf4j;
+import com.yonge.cooleshow.biz.dal.entity.PaymentMerchantConfig;
+import com.yonge.cooleshow.biz.dal.wrapper.PaymentMerchantConfigWrapper;
+import com.yonge.cooleshow.biz.dal.mapper.PaymentMerchantConfigMapper;
+import com.yonge.cooleshow.biz.dal.service.PaymentMerchantConfigService;
+
+import javax.annotation.PostConstruct;
+import java.util.List;
+
+/**
+ * 支付三方账户配置
+ * 2023-07-28 16:53:51
+ */
+@Slf4j
+@Service
+public class PaymentMerchantConfigServiceImpl extends ServiceImpl<PaymentMerchantConfigMapper, PaymentMerchantConfig> implements PaymentMerchantConfigService {
+
+
+    @Autowired
+    private PayConfigProperties properties;
+
+    @PostConstruct
+    public void init(){
+        List<PaymentMerchantConfig> list = this.list();
+
+        if(CollectionUtils.isEmpty(list)) {
+            return;
+        }
+        for (PaymentMerchantConfig config : list) {
+            PayConfigProperties.AdapayPayConfig adapayPayConfig = new PayConfigProperties.AdapayPayConfig();
+            adapayPayConfig.setEnable(true);
+            adapayPayConfig.setAppId(config.getAppId());
+            adapayPayConfig.setPayType(config.getPaymentVendor());
+            adapayPayConfig.setMerchantId(config.getMerKey());
+            adapayPayConfig.setMerchantId(config.getApiKey());
+            adapayPayConfig.setPayNotifyUrl(properties.getPayNotifyUrl());
+            adapayPayConfig.setRefundNotifyUrl(properties.getRefundNotifyUrl());
+            adapayPayConfig.setKeyPublic(config.getRsaPublicKey());
+            adapayPayConfig.setKeyPrivate(config.getRsaPrivateKey());
+            adapayPayConfig.setSupportCreditCards(properties.getSupportCreditCards());
+            AdapayPaymentServicePlugin plugin = null;
+            try {
+                plugin = new AdapayPaymentServicePlugin(config.getPaymentVendor(), adapayPayConfig, false);
+                PaymentServiceContext.addPlugin(plugin);
+            } catch (Exception e) {
+                log.error("初始化支付插件失败", e);
+            }
+        }
+
+    }
+
+    /**
+     * 查询详情
+     * @param id 详情ID
+     * @return PaymentMerchantConfig
+     */
+    @Override
+    public PaymentMerchantConfig detail(Long id) {
+        
+        return baseMapper.selectById(id);
+    }
+
+    
+    /**
+     * 分页查询
+     * @param page IPage<PaymentMerchantConfig>
+     * @param query PaymentMerchantConfigWrapper.PaymentMerchantConfigQuery
+     * @return IPage<PaymentMerchantConfig>
+     */
+    @Override
+    public IPage<PaymentMerchantConfig> selectPage(IPage<PaymentMerchantConfig> page, PaymentMerchantConfigWrapper.PaymentMerchantConfigQuery query) {
+        
+        return page.setRecords(baseMapper.selectPage(page, query));
+    }
+
+    /**
+     * 添加
+     * @param paymentMerchantConfig PaymentMerchantConfigWrapper.PaymentMerchantConfig
+     * @return Boolean
+     */
+    @Override
+    public Boolean add(PaymentMerchantConfigWrapper.PaymentMerchantConfig paymentMerchantConfig) {
+
+        return this.save(JSON.parseObject(paymentMerchantConfig.jsonString(), PaymentMerchantConfig.class));
+    }
+
+    /**
+     * 更新
+     * @param paymentMerchantConfig PaymentMerchantConfigWrapper.PaymentMerchantConfig
+     * @return Boolean
+     */
+    @Override
+    public Boolean update(PaymentMerchantConfigWrapper.PaymentMerchantConfig paymentMerchantConfig){
+
+        return this.updateById(JSON.parseObject(paymentMerchantConfig.jsonString(), PaymentMerchantConfig.class));       
+    }
+}

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/TenantAlbumServiceImpl.java

@@ -197,7 +197,7 @@ public class TenantAlbumServiceImpl extends ServiceImpl<TenantAlbumMapper, Tenan
         userOrderDetail.setBizContent(JSON.toJSONString(tenantAlbumContent));
         userOrderDetail.setGoodNum(orderGoodsInfo.getGoodNum());
         userOrderDetail.setOriginalPrice(price.multiply(new BigDecimal(orderGoodsInfo.getGoodNum()))
-                .multiply(new BigDecimal(tenantAlbumContent.getBuyCycle())));
+                .multiply(new BigDecimal(tenantAlbumContent.getBuyMultiple())));
         userOrderDetail.setCouponAmount(BigDecimal.ZERO);
         userOrderDetail.setExpectPrice(userOrderDetail.getOriginalPrice());
         userOrderDetail.setActualPrice(userOrderDetail.getExpectPrice().subtract(userOrderDetail.getCouponAmount()));

+ 63 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/wrapper/PaymentDivMemberWrapper.java

@@ -0,0 +1,63 @@
+package com.yonge.cooleshow.biz.dal.wrapper;
+
+import com.alibaba.fastjson.JSON;
+import com.microsvc.toolkit.common.response.paging.QueryInfo;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.util.Optional;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.StringUtils;
+
+/**
+ * 分账子账户配置
+ * 2023-07-28 16:53:51
+ */
+@ApiModel(value = "PaymentDivMemberWrapper对象", description = "分账子账户配置查询对象")
+public class PaymentDivMemberWrapper {
+
+    @Data
+	@Builder
+    @NoArgsConstructor
+    @AllArgsConstructor
+    @ApiModel(" PaymentDivMemberQuery-分账子账户配置")
+    public static class PaymentDivMemberQuery implements QueryInfo {
+    
+    	@ApiModelProperty("当前页")
+        private Integer page;
+        
+        @ApiModelProperty("分页行数")
+        private Integer rows;
+        
+        @ApiModelProperty("关键字匹配")
+		private String keyword;
+        
+        public String getKeyword() {
+            return Optional.ofNullable(keyword).filter(StringUtils::isNotBlank).orElse(null);
+        }
+        
+        public String jsonString() {
+            return JSON.toJSONString(this);
+        }
+
+        public static PaymentDivMemberQuery from(String json) {
+            return JSON.parseObject(json, PaymentDivMemberQuery.class);
+        }
+    }  
+
+	@ApiModel(" PaymentDivMember-分账子账户配置")
+    public static class PaymentDivMember {
+        
+        public String jsonString() {
+            return JSON.toJSONString(this);
+        }
+
+        public static PaymentDivMember from(String json) {
+            return JSON.parseObject(json, PaymentDivMember.class);
+        }
+	}
+
+}

+ 63 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/wrapper/PaymentMerchantConfigWrapper.java

@@ -0,0 +1,63 @@
+package com.yonge.cooleshow.biz.dal.wrapper;
+
+import com.alibaba.fastjson.JSON;
+import com.microsvc.toolkit.common.response.paging.QueryInfo;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.util.Optional;
+
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.StringUtils;
+
+/**
+ * 支付三方账户配置
+ * 2023-07-28 16:53:51
+ */
+@ApiModel(value = "PaymentMerchantConfigWrapper对象", description = "支付三方账户配置查询对象")
+public class PaymentMerchantConfigWrapper {
+
+    @Data
+	@Builder
+    @NoArgsConstructor
+    @AllArgsConstructor
+    @ApiModel(" PaymentMerchantConfigQuery-支付三方账户配置")
+    public static class PaymentMerchantConfigQuery implements QueryInfo {
+    
+    	@ApiModelProperty("当前页")
+        private Integer page;
+        
+        @ApiModelProperty("分页行数")
+        private Integer rows;
+        
+        @ApiModelProperty("关键字匹配")
+		private String keyword;
+        
+        public String getKeyword() {
+            return Optional.ofNullable(keyword).filter(StringUtils::isNotBlank).orElse(null);
+        }
+        
+        public String jsonString() {
+            return JSON.toJSONString(this);
+        }
+
+        public static PaymentMerchantConfigQuery from(String json) {
+            return JSON.parseObject(json, PaymentMerchantConfigQuery.class);
+        }
+    }  
+
+	@ApiModel(" PaymentMerchantConfig-支付三方账户配置")
+    public static class PaymentMerchantConfig {
+        
+        public String jsonString() {
+            return JSON.toJSONString(this);
+        }
+
+        public static PaymentMerchantConfig from(String json) {
+            return JSON.parseObject(json, PaymentMerchantConfig.class);
+        }
+	}
+
+}

+ 23 - 0
cooleshow-user/user-biz/src/main/resources/config/mybatis/PaymentDivMemberMapper.xml

@@ -0,0 +1,23 @@
+<?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.yonge.cooleshow.biz.dal.mapper.PaymentDivMemberMapper">
+
+	 
+    
+    <!-- 表字段 -->
+    <sql id="baseColumns">
+         t.id_ AS id
+        , t.tenant_id_ AS tenantId
+        , t.app_id_ AS appId
+        , t.member_id_ AS memberId
+        , t.create_time_ AS createTime
+        , t.update_time_ AS updateTime
+        </sql> 
+    
+    <select id="selectPage" resultType="com.yonge.cooleshow.biz.dal.entity.PaymentDivMember">
+		SELECT         
+        	<include refid="baseColumns" />
+		FROM payment_div_member t
+	</select>
+    
+</mapper>

+ 35 - 0
cooleshow-user/user-biz/src/main/resources/config/mybatis/PaymentMerchantConfigMapper.xml

@@ -0,0 +1,35 @@
+<?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.yonge.cooleshow.biz.dal.mapper.PaymentMerchantConfigMapper">
+
+	 
+    
+    <!-- 表字段 -->
+    <sql id="baseColumns">
+         t.id_ AS id
+        , t.tenant_id_ AS tenantId
+        , t.payment_vendor_ AS paymentVendor
+        , t.payer_name_ AS payerName
+        , t.app_id_ AS appId
+        , t.mer_key_ AS merKey
+        , t.api_key_ AS apiKey
+        , t.mock_api_key_ AS mockApiKey
+        , t.rsa_private_key_ AS rsaPrivateKey
+        , t.rsa_public_key_ AS rsaPublicKey
+        , t.expend_params_ AS expendParams
+        , t.wx_app_id_ AS wxAppId
+        , t.wx_app_secret_ AS wxAppSecret
+        , t.alipay_app_id_ AS alipayAppId
+        , t.alipay_private_key_ AS alipayPrivateKey
+        , t.alipay_public_key_ AS alipayPublicKey
+        , t.create_time_ AS createTime
+        , t.update_time_ AS updateTime
+        </sql> 
+    
+    <select id="selectPage" resultType="com.yonge.cooleshow.biz.dal.entity.PaymentMerchantConfig">
+		SELECT         
+        	<include refid="baseColumns" />
+		FROM payment_merchant_config t
+	</select>
+    
+</mapper>