|
@@ -19,6 +19,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
19
|
19
|
import org.springframework.web.bind.annotation.*;
|
20
|
20
|
|
21
|
21
|
import javax.servlet.http.HttpServletRequest;
|
|
22
|
+import java.util.HashMap;
|
|
23
|
+import java.util.Map;
|
22
|
24
|
|
23
|
25
|
|
24
|
26
|
@Api(tags = "全民经纪人(新联康)")
|
|
@@ -73,6 +75,19 @@ public class BrokerController extends BaseController {
|
73
|
75
|
return ResponseBean.success(result);
|
74
|
76
|
}
|
75
|
77
|
|
|
78
|
+ @RequestMapping(value="/wx/broker/mine",method= RequestMethod.GET)
|
|
79
|
+ @ApiOperation(value="我的经纪人信息", notes = "我的经纪人信息", httpMethod = "GET", response = ResponseBean.class)
|
|
80
|
+ public ResponseBean getWxBrokerOfMine(HttpServletRequest request) throws Exception {
|
|
81
|
+ String personId = getPersonId(request);
|
|
82
|
+
|
|
83
|
+ Integer customerNum = iTaPersonService.getCustNumOf(personId);
|
|
84
|
+
|
|
85
|
+ Map<String, Object> result = new HashMap<>();
|
|
86
|
+ result.put("customerNum", customerNum);
|
|
87
|
+
|
|
88
|
+ return ResponseBean.success(result);
|
|
89
|
+ }
|
|
90
|
+
|
76
|
91
|
|
77
|
92
|
@RequestMapping(value="/wx/bindBroker",method= RequestMethod.PUT)
|
78
|
93
|
@ApiOperation(value="成为经纪人", notes = "成为经纪人", httpMethod = "PUT", response = ResponseBean.class)
|