Commit 78b23b59 by jinxin

新增自建应用配置信息

parent 33c49e0a
......@@ -110,6 +110,18 @@ public class WxEnterpriseDTO implements Serializable {
private String openCorpid ;
private String wxaAppid ;
private String urlHost ;
/**
* 应用类型,0第三方 1自建
*/
private Integer appType;
public Integer getAppType() {
return appType;
}
public void setAppType(Integer appType) {
this.appType = appType;
}
public String getUrlHost() {
return urlHost;
......
......@@ -232,4 +232,11 @@ public interface WxEnterpriseApiService {
public String getEndDate(String enterpriseId) ;
/**
* 新增或者修改企业微信配置信息
* @param enterpriseDTO
* @return
*/
ServiceResponse<Boolean> saveOrUpdate(WxEnterpriseDTO enterpriseDTO);
}
......@@ -9,6 +9,7 @@ import com.gic.authcenter.commons.util.SessionContextUtil;
import com.gic.clerk.api.dto.ClerkDTO;
import com.gic.clerk.api.service.ClerkService;
import com.gic.commons.util.GlobalVar;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.api.dto.EnterpriseAndUserDTO;
import com.gic.enterprise.api.dto.EnterpriseDTO;
import com.gic.enterprise.api.dto.PowerStoreGroupDTO;
......
......@@ -93,7 +93,19 @@ public class TabHaobanWxEnterprise implements Serializable {
private String openCorpid ;
private String wxaAppid ;
private String urlHost ;
/**
* 应用类型,0第三方 1自建
*/
private Integer appType;
public Integer getAppType() {
return appType;
}
public void setAppType(Integer appType) {
this.appType = appType;
}
public String getUrlHost() {
return urlHost;
}
......
package com.gic.haoban.manage.service.service.out.impl;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.util.DateUtil;
......@@ -513,4 +514,17 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
}
return "好办服务已到期" ;
}
@Override
public ServiceResponse<Boolean> saveOrUpdate(WxEnterpriseDTO enterpriseDTO) {
if (null == enterpriseDTO){
return ServiceResponse.failure("-9999","参数不能为空!");
}
if (StrUtil.isNotBlank(enterpriseDTO.getWxEnterpriseId())){
wxEnterpriseService.add(enterpriseDTO);
}else {
wxEnterpriseService.update(enterpriseDTO);
}
return ServiceResponse.success(true);
}
}
......@@ -45,6 +45,7 @@
<result column="open_corpid" property="openCorpid"/>
<result column="wxa_appid" property="wxaAppid" />
<result column="url_host" property="urlHost"/>
<result column="app_type" property="appType"/>
</resultMap>
<sql id="Base_Column_List">
......@@ -52,7 +53,7 @@
corp_user_max, corp_full_name, subject_type, verified_end_time, corp_wxqrcode, corp_scale,
corp_industry, corp_sub_industry, location, auth_info, agent, agentid, appid, name,
square_logo_url, round_logo_url, level, bind_flag, status_flag, create_time, update_time,contact_flag,wx_secret_key,wx_secret_key_last_time,member_secret_last_time,contact_secret_last_time
,member_secret,contact_secret,agree_external_userid_flag,agree_external_userid_time,external_flag,userid_flag ,wx_security_type , wx_corpid , open_corpid , auto_active_flag , wxa_appid , url_host
,member_secret,contact_secret,agree_external_userid_flag,agree_external_userid_time,external_flag,userid_flag ,wx_security_type , wx_corpid , open_corpid , auto_active_flag , wxa_appid , url_host,app_type
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
select
......@@ -176,6 +177,15 @@
<if test="null != openCorpid">
open_corpid ,
</if>
<if test="null != wxaAppid">
wxa_appid ,
</if>
<if test="null != urlHost">
url_host ,
</if>
<if test="null != appType">
app_type ,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="wxEnterpriseId != null">
......@@ -280,9 +290,18 @@
<if test="null != wxCorpid">
#{wxCorpid} ,
</if>
<if test="null != openCorpid">
<if test="null != openCorpid">
#{openCorpid} ,
</if>
<if test="null != wxaAppid">
#{wxaAppid} ,
</if>
<if test="null != urlHost">
#{urlHost} ,
</if>
<if test="null != appType">
#{appType} ,
</if>
</trim>
</insert>
......@@ -403,6 +422,15 @@
<if test="null != openCorpid">
open_corpid = #{openCorpid}
</if>
<if test="null != wxaAppid">
wxa_appid = #{wxaAppid}
</if>
<if test="null != urlHost">
url_host = #{urlHost}
</if>
<if test="null != appType">
app_type = #{appType}
</if>
</set>
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
</update>
......
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