Commit 45e11adf by 杨林龙

根据客户id查询客户信息实体类信息 yangll

1 parent b0337076
...@@ -32,4 +32,6 @@ public interface PlatformCustomerMapper extends OreMapper<PlatformCustomer> { ...@@ -32,4 +32,6 @@ public interface PlatformCustomerMapper extends OreMapper<PlatformCustomer> {
String getPrivateSecret(@Param("appId") int appId); String getPrivateSecret(@Param("appId") int appId);
int register(PlatformCustomer customer); int register(PlatformCustomer customer);
PlatformCustomer selectOneByAppId(@Param("appId") int appId);
} }
...@@ -88,9 +88,7 @@ public class IceOpenApiServiceImpl implements IceOpenApiService { ...@@ -88,9 +88,7 @@ public class IceOpenApiServiceImpl implements IceOpenApiService {
* @return PlatformCustomer 客户信息实体类 * @return PlatformCustomer 客户信息实体类
*/ */
private PlatformCustomer getPlatformCustomer(int appId) { private PlatformCustomer getPlatformCustomer(int appId) {
PlatformCustomer req = new PlatformCustomer(); return customerMapper.selectOneByAppId(appId);
req.setId(appId);
return customerMapper.selectOne(req);
} }
/** /**
......
...@@ -222,4 +222,10 @@ ...@@ -222,4 +222,10 @@
left join t_platform_customer b on a.id = b.key_id left join t_platform_customer b on a.id = b.key_id
where b.id = #{appId,jdbcType=INTEGER} where b.id = #{appId,jdbcType=INTEGER}
</select> </select>
<select id="selectOneByAppId" resultType="cn.com.glsx.openplatform.model.PlatformCustomer">
select *
from t_platform_customer
where id = #{appId,jdbcType=INTEGER}
</select>
</mapper> </mapper>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!