Commit 8e80128d by 徐高华

小程序appid

parent f18fd5f0
......@@ -14,6 +14,8 @@ public interface WxEnterpriseMapper {
TabHaobanWxEnterprise selectByPrimaryKey(String wxEnterpriseId);
TabHaobanWxEnterprise selectByWxaAppid(@Param("appid")String appid);
int updateByPrimaryKeySelective(TabHaobanWxEnterprise record);
Page<TabHaobanWxEnterprise> list(@Param("keyword") String keyword,
......
......@@ -91,6 +91,15 @@ public class TabHaobanWxEnterprise implements Serializable {
private String wxCorpid ;
private String openCorpid ;
private String wxaAppid ;
public String getWxaAppid() {
return wxaAppid;
}
public void setWxaAppid(String wxaAppid) {
this.wxaAppid = wxaAppid;
}
public String getWxCorpid() {
return wxCorpid;
......
......@@ -43,6 +43,7 @@
<result column="auto_active_flag" property="autoActiveFlag" jdbcType="INTEGER"/>
<result column="wx_corpid" property="wxCorpid"/>
<result column="open_corpid" property="openCorpid"/>
<reslut column="wxa_appid" property="wxaAppid" />
</resultMap>
<sql id="Base_Column_List">
......@@ -50,7 +51,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
,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
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
select
......@@ -59,6 +60,13 @@
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
</select>
<select id="selectByWxaAppid" resultMap="BaseResultMap" parameterType="java.lang.String">
select
<include refid="Base_Column_List"/>
from tab_haoban_wx_enterprise
where wxa_appid = #{appid}
</select>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise">
insert into tab_haoban_wx_enterprise
<trim prefix="(" suffix=")" suffixOverrides=",">
......
......@@ -139,7 +139,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
*/
@RequestMapping(value = "get-info-by-code", method = {RequestMethod.GET, RequestMethod.POST})
@IgnoreLogin
public HaobanResponse getInfoByCode(String code) {
public HaobanResponse getInfoByCode(String code , String appid) {
logger.info("code:{}", code);
String userDTOJson = null ;
if(null != RedisUtil.getCache("haoban-self-test")) {
......
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