Commit 6ab414bb by 罗志长

fix: 第三方平台信息配置查询

parent 74510edc
......@@ -20,8 +20,6 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = "第三方平台信息配置")
@RestController
@RequestMapping("/sys/apiSecret")
......
......@@ -20,7 +20,7 @@ import lombok.Data;
@TableName(value = "sys_api_secret")
public class SysApiSecret extends BaseEntity {
@ApiModelProperty("平台")
@ApiModelProperty("平台编码")
private String platform;
@ApiModelProperty("公钥")
private String publicKey;
......
......@@ -24,7 +24,6 @@ import org.springframework.transaction.annotation.Transactional;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.util.List;
@Service
......@@ -41,8 +40,9 @@ public class SysApiSecretServiceImpl extends ServiceImpl<SysApiSecretMapper, Sys
private LambdaQueryWrapper<SysApiSecret> listLambdaQueryWrapper(SysApiSecret sysApiSecret) {
return new LambdaQueryWrapper<SysApiSecret>()
.eq(StringUtils.isNotBlank(sysApiSecret.getPlatform()), SysApiSecret::getPlatform, sysApiSecret.getPlatform())
.eq(StringUtils.isNotBlank(sysApiSecret.getOrgId()), SysApiSecret::getOrgId, sysApiSecret.getOrgId());
.like(StringUtils.isNotBlank(sysApiSecret.getPlatform()), SysApiSecret::getPlatform, sysApiSecret.getPlatform())
.like(StringUtils.isNotBlank(sysApiSecret.getOrgId()), SysApiSecret::getOrgId, sysApiSecret.getOrgId())
.like(StringUtils.isNotBlank(sysApiSecret.getDescription()), SysApiSecret::getDescription, sysApiSecret.getDescription());
}
@SneakyThrows
......
......@@ -9,7 +9,7 @@ import lombok.Data;
@Data
public class SysApiSecretVO extends BaseIdDTO {
@ApiModelProperty("平台")
@ApiModelProperty("平台编码")
private String platform;
@ApiModelProperty("公钥")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment