|
|
@@ -0,0 +1,28 @@
|
|
|
+package com.tsf.demo.provider.controller;
|
|
|
+
|
|
|
+import com.tsf.demo.provider.common.R;
|
|
|
+import com.tsf.demo.provider.service.MpBankNetworkService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@CrossOrigin
|
|
|
+@RequestMapping("/mpBankNetwork")
|
|
|
+@Api(value = "银行网点", tags = "银行网点")
|
|
|
+public class MpBankNetworkController {
|
|
|
+ @Autowired
|
|
|
+ private MpBankNetworkService mpBankNetworkService;
|
|
|
+ @GetMapping("/addAll")
|
|
|
+ @ApiOperation(value = "查询用户申领以及代申领的实体卡", notes = "查询用户申领以及代申领的实体卡")
|
|
|
+ public R addAll(){
|
|
|
+ try {
|
|
|
+ mpBankNetworkService.sychData();
|
|
|
+ return R.success("同步成功");
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return R.fail("同步失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|