Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
auth-master
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
auth-master
Commits
41cc9554
Commit
41cc9554
authored
Dec 25, 2025
by
周海峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
fd0ee99b
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
43 行增加
和
15 行删除
+43
-15
doc/sql/update.sql
+5
-2
src/main/java/com/metro/auth/platform/domain/auth/PlatformApplications.java
+13
-0
src/main/java/com/metro/auth/platform/mapper/PlatformApplicationsMapper.xml
+22
-7
src/main/java/com/metro/auth/platform/mapper/TodoMapper.xml
+3
-5
src/main/java/com/metro/auth/platform/service/PlatformApplicationsServiceImpl.java
+0
-1
没有找到文件。
doc/sql/update.sql
View file @
41cc9554
...
@@ -8,4 +8,7 @@ ALTER TABLE `platform_auth`.`platform_applications`
...
@@ -8,4 +8,7 @@ ALTER TABLE `platform_auth`.`platform_applications`
ADD
COLUMN
`group_code`
varchar
(
20
)
NULL
COMMENT
'分组编码'
AFTER
`mailtype`
;
ADD
COLUMN
`group_code`
varchar
(
20
)
NULL
COMMENT
'分组编码'
AFTER
`mailtype`
;
ALTER
TABLE
`platform_auth`
.
`platform_applications`
ALTER
TABLE
`platform_auth`
.
`platform_applications`
ADD
COLUMN
`wechat_url`
varchar
(
255
)
NULL
COMMENT
'企业微信入口'
AFTER
`group_code`
;
ADD
COLUMN
`wechat_url`
varchar
(
255
)
NULL
COMMENT
'企业微信入口'
AFTER
`group_code`
;
\ No newline at end of file
ALTER
TABLE
`platform_applications`
ADD
COLUMN
`app_enable`
varchar
(
20
)
NOT
NULL
DEFAULT
1
COMMENT
'应用启用/停用:1=启用,0=停用'
;
\ No newline at end of file
src/main/java/com/metro/auth/platform/domain/auth/PlatformApplications.java
View file @
41cc9554
...
@@ -118,6 +118,19 @@ public class PlatformApplications implements Serializable {
...
@@ -118,6 +118,19 @@ public class PlatformApplications implements Serializable {
this
.
num
=
num
;
this
.
num
=
num
;
}
}
/**
* 应用启用/停用:'1'=启用,'0'=停用
*/
private
String
appEnable
;
public
String
getAppEnable
()
{
return
appEnable
;
}
public
void
setAppEnable
(
String
appEnable
)
{
this
.
appEnable
=
appEnable
;
}
public
String
getWechatUrl
()
{
public
String
getWechatUrl
()
{
return
wechatUrl
;
return
wechatUrl
;
}
}
...
...
src/main/java/com/metro/auth/platform/mapper/PlatformApplicationsMapper.xml
View file @
41cc9554
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
<result
column=
"mailtype"
jdbcType=
"VARCHAR"
property=
"mailtype"
/>
<result
column=
"mailtype"
jdbcType=
"VARCHAR"
property=
"mailtype"
/>
<result
column=
"group_code"
jdbcType=
"VARCHAR"
property=
"groupCode"
/>
<result
column=
"group_code"
jdbcType=
"VARCHAR"
property=
"groupCode"
/>
<result
column=
"wechat_url"
jdbcType=
"VARCHAR"
property=
"wechatUrl"
/>
<result
column=
"wechat_url"
jdbcType=
"VARCHAR"
property=
"wechatUrl"
/>
<result
column=
"app_enable"
jdbcType=
"VARCHAR"
property=
"appEnable"
/>
</resultMap>
</resultMap>
...
@@ -106,7 +107,7 @@
...
@@ -106,7 +107,7 @@
</sql>
</sql>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id, title, img, href, addtime, tishi, databasename, databasepassword, databasecon, qyflag, appid, secret,
id, title, img, href, addtime, tishi, databasename, databasepassword, databasecon, qyflag, appid, secret,
openmail, mailtype, group_code, wechat_url, num
openmail, mailtype, group_code, wechat_url,
app_enable,
num
</sql>
</sql>
<select
id=
"selectByExample"
parameterType=
"com.metro.auth.platform.domain.auth.PlatformApplicationsExample"
<select
id=
"selectByExample"
parameterType=
"com.metro.auth.platform.domain.auth.PlatformApplicationsExample"
resultMap=
"BaseResultMap"
>
resultMap=
"BaseResultMap"
>
...
@@ -120,7 +121,7 @@
...
@@ -120,7 +121,7 @@
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
</if>
<if
test=
"orderByClause != null"
>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
order by ${orderByClause}
+ 0
</if>
</if>
</select>
</select>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
...
@@ -155,14 +156,14 @@
...
@@ -155,14 +156,14 @@
insert into platform_applications (id, title, img,
insert into platform_applications (id, title, img,
href, addtime, tishi,databasename,databasepassword,
href, addtime, tishi,databasename,databasepassword,
databasecon,qyflag,appid,secret,openmail,mailtype,
databasecon,qyflag,appid,secret,openmail,mailtype,
group_code, wechat_url
group_code, wechat_url
, app_enable
)
)
values (#{id,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR},
values (#{id,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR},
#{href,jdbcType=VARCHAR}, #{addtime,jdbcType=VARCHAR}, #{tishi,jdbcType=INTEGER},
#{href,jdbcType=VARCHAR}, #{addtime,jdbcType=VARCHAR}, #{tishi,jdbcType=INTEGER},
#{databasename,jdbcType=VARCHAR}, #{databasepassword,jdbcType=VARCHAR}, #{databasecon,jdbcType=VARCHAR},
#{databasename,jdbcType=VARCHAR}, #{databasepassword,jdbcType=VARCHAR}, #{databasecon,jdbcType=VARCHAR},
#{qyflag,jdbcType=VARCHAR},
#{qyflag,jdbcType=VARCHAR},
#{appid,jdbcType=VARCHAR},#{secret,jdbcType=VARCHAR},#{openmail,jdbcType=INTEGER},
#{appid,jdbcType=VARCHAR},#{secret,jdbcType=VARCHAR},#{openmail,jdbcType=INTEGER},
#{mailtype,jdbcType=VARCHAR},#{groupCode,jdbcType=VARCHAR}, #{wechatUrl,jdbcType=VARCHAR}
#{mailtype,jdbcType=VARCHAR},#{groupCode,jdbcType=VARCHAR}, #{wechatUrl,jdbcType=VARCHAR}
, #{appEnable,jdbcType=VARCHAR}
)
)
</insert>
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.metro.auth.platform.domain.auth.PlatformApplications"
>
<insert
id=
"insertSelective"
parameterType=
"com.metro.auth.platform.domain.auth.PlatformApplications"
>
...
@@ -186,6 +187,9 @@
...
@@ -186,6 +187,9 @@
<if
test=
"tishi != null"
>
<if
test=
"tishi != null"
>
tishi,
tishi,
</if>
</if>
<if
test=
"appEnable != null"
>
app_enable,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
<if
test=
"id != null"
>
...
@@ -206,6 +210,9 @@
...
@@ -206,6 +210,9 @@
<if
test=
"tishi != null"
>
<if
test=
"tishi != null"
>
#{tishi,jdbcType=INTEGER},
#{tishi,jdbcType=INTEGER},
</if>
</if>
<if
test=
"appEnable != null"
>
#{appEnable,jdbcType=VARCHAR},
</if>
</trim>
</trim>
</insert>
</insert>
<select
id=
"countByExample"
parameterType=
"com.metro.auth.platform.domain.auth.PlatformApplicationsExample"
<select
id=
"countByExample"
parameterType=
"com.metro.auth.platform.domain.auth.PlatformApplicationsExample"
...
@@ -250,6 +257,9 @@
...
@@ -250,6 +257,9 @@
<if
test=
"record.mailtype != null"
>
<if
test=
"record.mailtype != null"
>
mailtype = #{record.mailtype,jdbcType=VARCHAR},
mailtype = #{record.mailtype,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.appEnable != null"
>
app_enable = #{record.appEnable,jdbcType=VARCHAR},
</if>
</set>
</set>
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -276,7 +286,8 @@
...
@@ -276,7 +286,8 @@
openmail = #{record.openmail,jdbcType=INTEGER},
openmail = #{record.openmail,jdbcType=INTEGER},
mailtype = #{record.mailtype,jdbcType=VARCHAR},
mailtype = #{record.mailtype,jdbcType=VARCHAR},
group_code = #{record.groupCode,jdbcType=VARCHAR},
group_code = #{record.groupCode,jdbcType=VARCHAR},
wechat_url = #{record.wechatUrl,jdbcType=VARCHAR}
wechat_url = #{record.wechatUrl,jdbcType=VARCHAR},
app_enable = #{record.appEnable,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
...
@@ -304,6 +315,9 @@
...
@@ -304,6 +315,9 @@
<if
test=
"tishi != null"
>
<if
test=
"tishi != null"
>
tishi = #{tishi,jdbcType=INTEGER},
tishi = #{tishi,jdbcType=INTEGER},
</if>
</if>
<if
test=
"appEnable != null"
>
app_enable = #{appEnable,jdbcType=VARCHAR},
</if>
</set>
</set>
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
...
@@ -317,7 +331,8 @@
...
@@ -317,7 +331,8 @@
img = #{img,jdbcType=VARCHAR},
img = #{img,jdbcType=VARCHAR},
href = #{href,jdbcType=VARCHAR},
href = #{href,jdbcType=VARCHAR},
addtime = #{addtime,jdbcType=VARCHAR},
addtime = #{addtime,jdbcType=VARCHAR},
tishi = #{tishi,jdbcType=INTEGER}
tishi = #{tishi,jdbcType=INTEGER},
app_enable = #{appEnable,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</update>
...
@@ -334,7 +349,7 @@
...
@@ -334,7 +349,7 @@
<select
id=
"getPlatformApplicationsListByRole"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
<select
id=
"getPlatformApplicationsListByRole"
parameterType=
"java.lang.String"
resultMap=
"BaseResultMap"
>
select distinct T.* from platform_applications T left join platform_role_application R on T.id=R.applicationid
select distinct T.* from platform_applications T left join platform_role_application R on T.id=R.applicationid
where T.qyflag='1' and R.roleid = #{roleid,jdbcType=VARCHAR} order by T.num + 0
desc
where T.qyflag='1' and R.roleid = #{roleid,jdbcType=VARCHAR} order by T.num + 0
</select>
</select>
<select
id=
"getPlatformApplicationsListByRoleList"
resultMap=
"BaseResultMap"
>
<select
id=
"getPlatformApplicationsListByRoleList"
resultMap=
"BaseResultMap"
>
select distinct T.* from platform_applications T left join platform_role_application R on T.id=R.applicationid
select distinct T.* from platform_applications T left join platform_role_application R on T.id=R.applicationid
...
...
src/main/java/com/metro/auth/platform/mapper/TodoMapper.xml
View file @
41cc9554
...
@@ -184,13 +184,11 @@
...
@@ -184,13 +184,11 @@
</update>
</update>
<select
id=
"countByaccount"
parameterType=
"java.lang.String"
resultType=
"com.metro.auth.platform.domain.dto.TodoNumDTO"
>
<select
id=
"countByaccount"
parameterType=
"java.lang.String"
resultType=
"com.metro.auth.platform.domain.dto.TodoNumDTO"
>
SELECT A.title typename,
A.mailtype type,IFNULL(B.num,'0') num,B.account FROM
SELECT A.title typename,
A.mailtype type, IFNULL(B.num,'0') num, B.account
platform_applications A
FROM
platform_applications A
LEFT JOIN ( SELECT count(1) num, type , account FROM platform_todo WHERE account=#{account,jdbcType=VARCHAR} and status='0' group by type,account ) B
LEFT JOIN ( SELECT count(1) num, type , account FROM platform_todo WHERE account=#{account,jdbcType=VARCHAR} and status='0' group by type,account ) B
ON A.mailtype = B.type
ON A.mailtype = B.type
where
where A.qyflag = '1' and A.openmail = 1 and A.mailtype is not null and A.mailtype
<>
''
A.qyflag = '1'
and A.openmail = 1
order by A.mailtype asc
order by A.mailtype asc
</select>
</select>
...
...
src/main/java/com/metro/auth/platform/service/PlatformApplicationsServiceImpl.java
View file @
41cc9554
...
@@ -82,7 +82,6 @@ public class PlatformApplicationsServiceImpl implements PlatformApplicationsServ
...
@@ -82,7 +82,6 @@ public class PlatformApplicationsServiceImpl implements PlatformApplicationsServ
int
count
=
platformApplicationsMapper
.
deleteByPrimaryKey
(
id
);
int
count
=
platformApplicationsMapper
.
deleteByPrimaryKey
(
id
);
return
count
;
return
count
;
}
}
@Override
@Override
public
List
<
PlatformApplications
>
getPlatformApplicationsList
()
{
public
List
<
PlatformApplications
>
getPlatformApplicationsList
()
{
return
platformApplicationsMapper
.
getPlatformApplicationsList
();
return
platformApplicationsMapper
.
getPlatformApplicationsList
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论