|  |  |  | 
|---|
|  |  |  | @RestController | 
|---|
|  |  |  | @RequestMapping("/visitbiz") | 
|---|
|  |  |  | @Slf4j | 
|---|
|  |  |  | public class BizResourceController extends ApiController { | 
|---|
|  |  |  | public class BizResourceController{ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ERPSyncService erpSyncService; | 
|---|
|  |  |  | 
|---|
|  |  |  | private VisitsService visitsService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "调用凭据获取接口", notes = "访客端提供,供ERP端调用,向ERP提供统接口调用凭证") | 
|---|
|  |  |  | /* @ApiOperation(value = "调用凭据获取接口", notes = "访客端提供,供ERP端调用,向ERP提供统接口调用凭证") | 
|---|
|  |  |  | @GetMapping("/accesstoken") | 
|---|
|  |  |  | @ApiImplicitParams({ | 
|---|
|  |  |  | @ApiImplicitParam(paramType = "query", dataType = "String", name = "accessKey", value = "访问key,由访客端提供", required = true), | 
|---|
|  |  |  | 
|---|
|  |  |  | public ApiResponse<AccessTokenResponse> accesstoken(@RequestParam  String accessKey, @RequestParam  String accessSecret) { | 
|---|
|  |  |  | ApiResponse response = ApiResponse.success(null); | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | response.setData(erpSyncService.createERPToken(accessKey,accessSecret)); | 
|---|
|  |  |  | //            response.setData(erpSyncService.createERPToken(accessKey,accessSecret)); | 
|---|
|  |  |  | }catch (BusinessException e){ | 
|---|
|  |  |  | response = ApiResponse.failed(e.getCode(), e.getMessage()); | 
|---|
|  |  |  | }catch (Exception e){ | 
|---|
|  |  |  | 
|---|
|  |  |  | map.put("FTP资源访问映射地址", | 
|---|
|  |  |  | systemDictDataBiz.queryByCode(Constants.FTP,Constants.FTP_RESOURCE_PATH).getCode()); | 
|---|
|  |  |  | return  ApiResponse.success(map); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }*/ | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|