|
|
@ -1,6 +1,7 @@
|
|
|
|
package com.xydl.cac.controller;
|
|
|
|
package com.xydl.cac.controller;
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.excel.util.StringUtils;
|
|
|
|
import com.alibaba.excel.util.StringUtils;
|
|
|
|
|
|
|
|
import com.xydl.cac.adapter.BusiAdapter;
|
|
|
|
import com.xydl.cac.entity.I2syncConfig;
|
|
|
|
import com.xydl.cac.entity.I2syncConfig;
|
|
|
|
import com.xydl.cac.entity.I2syncField;
|
|
|
|
import com.xydl.cac.entity.I2syncField;
|
|
|
|
import com.xydl.cac.entity.I2syncRecord;
|
|
|
|
import com.xydl.cac.entity.I2syncRecord;
|
|
|
@ -23,9 +24,7 @@ import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
|
@Api(tags = {"I2同步数据相关接口"})
|
|
|
|
@Api(tags = {"I2同步数据相关接口"})
|
|
|
@ -37,6 +36,17 @@ public class I2syncController extends BasicController {
|
|
|
|
I2syncService service;
|
|
|
|
I2syncService service;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
ModevTypeService modevTypeService;
|
|
|
|
ModevTypeService modevTypeService;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
BusiAdapter busiAdapter;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("status")
|
|
|
|
|
|
|
|
@ApiOperation("查询状态")
|
|
|
|
|
|
|
|
public Response<Map<String, Object>> status() {
|
|
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
|
|
|
|
map.put("enable", busiAdapter.enable);
|
|
|
|
|
|
|
|
map.put("url", busiAdapter.url);
|
|
|
|
|
|
|
|
return Response.success(map);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("listFieldConfig")
|
|
|
|
@GetMapping("listFieldConfig")
|
|
|
|
@ApiOperation("查询字段映射")
|
|
|
|
@ApiOperation("查询字段映射")
|
|
|
|