Commit 8ef12973 by fudahua

授权绑定,授权门店列表,binlog

parent a1af4e34
...@@ -3,6 +3,7 @@ package com.gic.haoban.manage.web.controller; ...@@ -3,6 +3,7 @@ package com.gic.haoban.manage.web.controller;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import com.alibaba.druid.util.StringUtils; import com.alibaba.druid.util.StringUtils;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.gic.api.base.commons.Page; import com.gic.api.base.commons.Page;
import com.gic.commons.util.DateUtil; import com.gic.commons.util.DateUtil;
import com.gic.enterprise.api.dto.EnterpriseAndUserDTO; import com.gic.enterprise.api.dto.EnterpriseAndUserDTO;
...@@ -33,6 +34,7 @@ import com.gic.wechat.api.dto.qywx.UserDTO; ...@@ -33,6 +34,7 @@ import com.gic.wechat.api.dto.qywx.UserDTO;
import com.gic.wechat.api.service.qywx.QywxUserApiService; import com.gic.wechat.api.service.qywx.QywxUserApiService;
import com.gic.wechat.token.api.dto.QywxCorpInfoDTO; import com.gic.wechat.token.api.dto.QywxCorpInfoDTO;
import com.gic.wechat.token.api.service.QywxTokenManageService; import com.gic.wechat.token.api.service.QywxTokenManageService;
import net.sf.json.JSONArray;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
...@@ -179,7 +181,7 @@ public class WxEnterpriseController extends WebBaseController{ ...@@ -179,7 +181,7 @@ public class WxEnterpriseController extends WebBaseController{
detailDTO.setStaffName(staffName); detailDTO.setStaffName(staffName);
detailDTO.setMemberOpenCardFlag(bindQo.getMemberOpenCardFlag()); detailDTO.setMemberOpenCardFlag(bindQo.getMemberOpenCardFlag());
detailDTO.setWxEnterpriseType(bindQo.getWxEnterpriseType()); detailDTO.setWxEnterpriseType(bindQo.getWxEnterpriseType());
List<StoreOrGroupInfoDTO> storeOrGroupInfoDTOS = EntityUtil.changeEntityListByJSON(StoreOrGroupInfoDTO.class, bindQo.getRelations()); List<StoreOrGroupInfoDTO> storeOrGroupInfoDTOS = JSONObject.parseArray(bindQo.getRelations(), StoreOrGroupInfoDTO.class);
detailDTO.setRelations(storeOrGroupInfoDTOS); detailDTO.setRelations(storeOrGroupInfoDTOS);
int i = wxEnterpriseRelatedApiService.wxEnterpriseBind(detailDTO); int i = wxEnterpriseRelatedApiService.wxEnterpriseBind(detailDTO);
if(i==1){ if(i==1){
......
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