Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
rpc-openplatform
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 45e11adf
authored
Dec 21, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
根据客户id查询客户信息实体类信息 yangll
1 parent
b0337076
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/mapper/PlatformCustomerMapper.java
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/IceOpenApiServiceImpl.java
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformCustomerMapper.xml
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/mapper/PlatformCustomerMapper.java
View file @
45e11ad
...
...
@@ -32,4 +32,6 @@ public interface PlatformCustomerMapper extends OreMapper<PlatformCustomer> {
String
getPrivateSecret
(
@Param
(
"appId"
)
int
appId
);
int
register
(
PlatformCustomer
customer
);
PlatformCustomer
selectOneByAppId
(
@Param
(
"appId"
)
int
appId
);
}
rpc-openplatform-container/src/main/java/cn/com/glsx/openplatform/service/IceOpenApiServiceImpl.java
View file @
45e11ad
...
...
@@ -88,9 +88,7 @@ public class IceOpenApiServiceImpl implements IceOpenApiService {
* @return PlatformCustomer 客户信息实体类
*/
private
PlatformCustomer
getPlatformCustomer
(
int
appId
)
{
PlatformCustomer
req
=
new
PlatformCustomer
();
req
.
setId
(
appId
);
return
customerMapper
.
selectOne
(
req
);
return
customerMapper
.
selectOneByAppId
(
appId
);
}
/**
...
...
rpc-openplatform-container/src/main/resources/META-INF/orm/PlatformCustomerMapper.xml
View file @
45e11ad
...
...
@@ -222,4 +222,10 @@
left join t_platform_customer b on a.id = b.key_id
where b.id = #{appId,jdbcType=INTEGER}
</select>
<select
id=
"selectOneByAppId"
resultType=
"cn.com.glsx.openplatform.model.PlatformCustomer"
>
select *
from t_platform_customer
where id = #{appId,jdbcType=INTEGER}
</select>
</mapper>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment