@@ -16,5 +16,5 @@ import java.util.List;
public interface OauthTokenMapper extends BaseMapper<OauthToken> {
String getByAccountId(@Param("accountId") Long accountId);
- List<JSONObject> getByProjectId(@Param("projectId") long projectId);
+ List<JSONObject> getByProjectId(@Param("projectId") Long projectId);
}
@@ -7,7 +7,7 @@
</select>
- <select id="getByProjectId" resultType="com.alibaba.fastjson.JSONObject;">
+ <select id="getByProjectId" resultType="com.alibaba.fastjson.JSONObject">
select t1.access_token as 'accessToken',t1.account_id as 'accountId',t1.access_token_expires_in as 'accessTokenExpiresIn'
from `jeecg-boot`.ctop_oauth_token t1
left join `jeecg-boot`.ctop_user_allocation t2
@@ -16,5 +16,5 @@ public interface IOauthTokenService extends IService<OauthToken> {
String getByAccountId(Long accountId);
- List<JSONObject> getByProjectId(long projectId);
+ List<JSONObject> getByProjectId(Long projectId);
@@ -27,7 +27,7 @@ public class OauthTokenServiceImpl extends ServiceImpl<OauthTokenMapper, OauthTo
@Override
- public List<JSONObject> getByProjectId(long projectId) {
+ public List<JSONObject> getByProjectId(Long projectId) {
return tokenMapper.getByProjectId(projectId);