Browse Source

代码修改

liweifan 3 years ago
parent
commit
517849b174

+ 10 - 0
toolset/toolset-payment/src/main/java/com/yonge/toolset/payment/core/entity/SysConfigPayment.java

@@ -21,6 +21,8 @@ public class SysConfigPayment implements Serializable {
     private Long id;
     private Long id;
 	@TableField(value = "open_type_")
 	@TableField(value = "open_type_")
     private String openType;
     private String openType;
+    @TableField(value = "client_")
+    private String client;
 	@TableField(value = "param_name_")
 	@TableField(value = "param_name_")
     private String paramName;
     private String paramName;
 	@TableField(value = "param_value_")
 	@TableField(value = "param_value_")
@@ -48,6 +50,14 @@ public class SysConfigPayment implements Serializable {
         return openType;
         return openType;
     }
     }
 
 
+    public String getClient() {
+        return client;
+    }
+
+    public void setClient(String client) {
+        this.client = client;
+    }
+
     public void setOpenType(String openType) {
     public void setOpenType(String openType) {
         this.openType = openType;
         this.openType = openType;
     }
     }

+ 1 - 0
toolset/toolset-payment/src/main/java/com/yonge/toolset/payment/core/service/impl/SysConfigPaymentServiceImpl.java

@@ -54,6 +54,7 @@ public class SysConfigPaymentServiceImpl extends ServiceImpl<SysConfigPaymentDao
         if (null == configPayment) {
         if (null == configPayment) {
             configPayment = baseMapper.selectOne(Wrappers.<SysConfigPayment>lambdaQuery()
             configPayment = baseMapper.selectOne(Wrappers.<SysConfigPayment>lambdaQuery()
                     .eq(SysConfigPayment::getOpenType, openType.getCode())
                     .eq(SysConfigPayment::getOpenType, openType.getCode())
+                    .eq(SysConfigPayment::getClient, platform)
                     .eq(SysConfigPayment::getParamName, paramName)
                     .eq(SysConfigPayment::getParamName, paramName)
             );
             );
             redissonClient.getBucket(REDIS_KEY + ":" + openType.getCode() + ":" + platform + ":" + paramName).set(configPayment);
             redissonClient.getBucket(REDIS_KEY + ":" + openType.getCode() + ":" + platform + ":" + paramName).set(configPayment);