parent
fe40161170
commit
800f7e8d82
@ -0,0 +1,29 @@ |
||||
package com.gitee.sop.gateway.entity; |
||||
|
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author tanghc |
||||
*/ |
||||
@Data |
||||
public class IsvDetailDTO { |
||||
|
||||
/** appKey, 数据库字段:app_key */ |
||||
private String appKey; |
||||
|
||||
/** 0启用,1禁用, 数据库字段:status */ |
||||
private Byte status; |
||||
|
||||
// keys
|
||||
|
||||
/** secret, 数据库字段:secret */ |
||||
private String secret; |
||||
|
||||
/** 开发者生成的公钥, 数据库字段:public_key_isv */ |
||||
private String publicKeyIsv; |
||||
|
||||
/** 平台生成的私钥, 数据库字段:private_key_platform */ |
||||
private String privateKeyPlatform; |
||||
|
||||
private Byte signType; |
||||
} |
@ -1,11 +1,26 @@ |
||||
package com.gitee.sop.gateway.mapper; |
||||
|
||||
import com.gitee.fastmybatis.core.mapper.CrudMapper; |
||||
import com.gitee.sop.gateway.entity.IsvDetailDTO; |
||||
import com.gitee.sop.gateway.entity.IsvInfo; |
||||
import org.apache.ibatis.annotations.Select; |
||||
|
||||
import java.util.List; |
||||
|
||||
|
||||
/** |
||||
* @author tanghc |
||||
*/ |
||||
public interface IsvInfoMapper extends CrudMapper<IsvInfo, Long> { |
||||
|
||||
@Select("SELECT " + |
||||
" t.app_key appKey " + |
||||
" ,t.status " + |
||||
" ,t2.sign_type signType " + |
||||
" ,t2.secret " + |
||||
" ,t2.public_key_isv publicKeyIsv " + |
||||
" ,t2.private_key_platform privateKeyPlatform " + |
||||
"FROM isv_info t " + |
||||
"INNER JOIN isv_keys t2 ON t.app_key = t2.app_key") |
||||
List<IsvDetailDTO> listIsvDetail(); |
||||
} |
||||
|
Loading…
Reference in new issue