Commit 41cc9554 by 周海峰

no message

parent fd0ee99b
...@@ -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
...@@ -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;
} }
......
...@@ -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
......
...@@ -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 &lt;&gt; ''
A.qyflag = '1'
and A.openmail = 1
order by A.mailtype asc order by A.mailtype asc
</select> </select>
......
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论