Commit 71de64e8 by fudahua

登录

parent 203bebe5
...@@ -34,6 +34,11 @@ public class TabWelcome implements Serializable { ...@@ -34,6 +34,11 @@ public class TabWelcome implements Serializable {
/** /**
* 0删除 1正常 * 0删除 1正常
*/ */
private Integer openFlag;
/**
* 0删除 1正常
*/
private Integer statusFlag; private Integer statusFlag;
/** /**
...@@ -50,6 +55,15 @@ public class TabWelcome implements Serializable { ...@@ -50,6 +55,15 @@ public class TabWelcome implements Serializable {
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public Integer getOpenFlag() {
return openFlag;
}
public void setOpenFlag(Integer openFlag) {
this.openFlag = openFlag;
}
/** /**
* This method returns the value of the database column tab_haoban_welcome.welcome_id * This method returns the value of the database column tab_haoban_welcome.welcome_id
* *
......
...@@ -36,6 +36,15 @@ public interface MiniprogramSettingService { ...@@ -36,6 +36,15 @@ public interface MiniprogramSettingService {
public TabMiniprogramSetting getMiniprogramSetting(String wxEnterpriseId, String enterpriseId); public TabMiniprogramSetting getMiniprogramSetting(String wxEnterpriseId, String enterpriseId);
/** /**
* 获取单个配置信息 无需操作企业微信media
*
* @param wxEnterpriseId
* @param enterpriseId
* @return
*/
public TabMiniprogramSetting getMiniprogramSettingNoMedia(String wxEnterpriseId, String enterpriseId);
/**
* 删除 * 删除
* *
* @param id * @param id
......
...@@ -89,6 +89,15 @@ public class MiniprogramSettingServiceImpl implements MiniprogramSettingService ...@@ -89,6 +89,15 @@ public class MiniprogramSettingServiceImpl implements MiniprogramSettingService
} }
@Override @Override
public TabMiniprogramSetting getMiniprogramSettingNoMedia(String wxEnterpriseId, String enterpriseId) {
TabMiniprogramSetting miniprogramSetting = tabMiniprogramSettingMapper.getMiniprogramSetting(wxEnterpriseId, enterpriseId);
if (miniprogramSetting == null) {
return null;
}
return miniprogramSetting;
}
@Override
public boolean delMiniprogramSetting(String id) { public boolean delMiniprogramSetting(String id) {
tabMiniprogramSettingMapper.deleteByPrimaryKey(id); tabMiniprogramSettingMapper.deleteByPrimaryKey(id);
return true; return true;
......
...@@ -247,8 +247,8 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi ...@@ -247,8 +247,8 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi
if (null == relationDTO) { if (null == relationDTO) {
return resp; return resp;
} }
TabMiniprogramSetting miniprogramSetting = miniprogramSettingService.getMiniprogramSetting(detailDTO.getWxEnterpriseId(), detailDTO.getEnterpriseId()); TabMiniprogramSetting miniprogramSetting = miniprogramSettingService.getMiniprogramSettingNoMedia(detailDTO.getWxEnterpriseId(), detailDTO.getEnterpriseId());
if (null == miniprogramSetting) { if (null == miniprogramSetting) {
miniprogramSetting = new TabMiniprogramSetting(); miniprogramSetting = new TabMiniprogramSetting();
} }
miniprogramSetting.setWxEnterpriseId(detailDTO.getWxEnterpriseId()); miniprogramSetting.setWxEnterpriseId(detailDTO.getWxEnterpriseId());
......
...@@ -7,11 +7,12 @@ ...@@ -7,11 +7,12 @@
<result column="title" jdbcType="VARCHAR" property="title"/> <result column="title" jdbcType="VARCHAR" property="title"/>
<result column="welcome_content" jdbcType="VARCHAR" property="welcomeContent"/> <result column="welcome_content" jdbcType="VARCHAR" property="welcomeContent"/>
<result column="status_flag" jdbcType="INTEGER" property="statusFlag"/> <result column="status_flag" jdbcType="INTEGER" property="statusFlag"/>
<result column="open_flag" jdbcType="INTEGER" property="openFlag"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/> <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
welcome_id, wx_enterprise_id, title, welcome_content, status_flag, create_time, update_time welcome_id, wx_enterprise_id, title, welcome_content,open_flag, status_flag, create_time, update_time
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select select
...@@ -25,10 +26,10 @@ ...@@ -25,10 +26,10 @@
</delete> </delete>
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabWelcome"> <insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabWelcome">
insert into tab_haoban_welcome (welcome_id, wx_enterprise_id, title, insert into tab_haoban_welcome (welcome_id, wx_enterprise_id, title,
welcome_content, status_flag, create_time, welcome_content,open_flag, status_flag, create_time,
update_time) update_time)
values (#{welcomeId,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, values (#{welcomeId,jdbcType=VARCHAR}, #{wxEnterpriseId,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
#{welcomeContent,jdbcType=VARCHAR}, #{statusFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{welcomeContent,jdbcType=VARCHAR},#{openFlag}, #{statusFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}) #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabWelcome"> <insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabWelcome">
...@@ -92,6 +93,9 @@ ...@@ -92,6 +93,9 @@
<if test="welcomeContent != null"> <if test="welcomeContent != null">
welcome_content = #{welcomeContent,jdbcType=VARCHAR}, welcome_content = #{welcomeContent,jdbcType=VARCHAR},
</if> </if>
<if test="openFlag != null">
open_flag = #{openFlag,jdbcType=INTEGER},
</if>
<if test="statusFlag != null"> <if test="statusFlag != null">
status_flag = #{statusFlag,jdbcType=INTEGER}, status_flag = #{statusFlag,jdbcType=INTEGER},
</if> </if>
...@@ -109,6 +113,7 @@ ...@@ -109,6 +113,7 @@
set wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}, set wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR}, title = #{title,jdbcType=VARCHAR},
welcome_content = #{welcomeContent,jdbcType=VARCHAR}, welcome_content = #{welcomeContent,jdbcType=VARCHAR},
open_flag = #{openFlag,jdbcType=INTEGER},
status_flag = #{statusFlag,jdbcType=INTEGER}, status_flag = #{statusFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment