|
@@ -2,6 +2,7 @@ package com.jpsoft.smart.modules.wechat.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.jpsoft.smart.modules.base.entity.InformationInfo;
|
|
|
+import com.jpsoft.smart.modules.base.entity.OwnerInfo;
|
|
|
import com.jpsoft.smart.modules.base.service.InformationInfoService;
|
|
|
import com.jpsoft.smart.modules.base.service.OwnerInfoService;
|
|
|
import com.jpsoft.smart.modules.common.dto.MessageResult;
|
|
@@ -16,13 +17,11 @@ import com.jpsoft.smart.modules.pay.properties.WxPayProperties;
|
|
|
import com.jpsoft.smart.modules.wechat.entity.AccessControl;
|
|
|
import com.jpsoft.smart.modules.wechat.entity.AccessToken;
|
|
|
import com.jpsoft.smart.modules.wechat.service.IAccessControlService;
|
|
|
-import com.jpsoft.smart.modules.wechat.vo.BindFaceVo;
|
|
|
-import com.jpsoft.smart.modules.wechat.vo.BindPhoneVo;
|
|
|
-import com.jpsoft.smart.modules.wechat.vo.RepairsVo;
|
|
|
-import com.jpsoft.smart.modules.wechat.vo.UserInfo;
|
|
|
+import com.jpsoft.smart.modules.wechat.vo.*;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -181,11 +180,16 @@ public class WxController {
|
|
|
message = "用户信息不存在";
|
|
|
result = false;
|
|
|
} else {
|
|
|
+ OwnerInfo ownerInfo = ownerInfoService.get(accessControl.getOwnerId());
|
|
|
+ AccessControlVo accessControlVo = new AccessControlVo();
|
|
|
+ BeanUtils.copyProperties(accessControl,accessControlVo);
|
|
|
+ accessControlVo.setName(ownerInfo.getName());
|
|
|
+ accessControlVo.setPhoneNum(ownerInfo.getTel());
|
|
|
|
|
|
|
|
|
HashMap<String, Object> dataMap = new HashMap<String, Object>();
|
|
|
|
|
|
- dataMap.put("accessControl", accessControl);
|
|
|
+ dataMap.put("accessControl", accessControlVo);
|
|
|
|
|
|
data = dataMap;
|
|
|
}
|