package com.zt.life.sync.controller;
|
|
import com.zt.common.servlet.Result;
|
import com.zt.life.sync.model.SyncConfigTables;
|
import com.zt.life.sync.service.SyncConfigTableService;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.HashMap;
|
import java.util.List;
|
import java.util.Map;
|
|
@RestController
|
@RequestMapping("/maintain/SyncConfigTable")
|
public class SyncConfigTableController {
|
|
@Autowired
|
private SyncConfigTableService syncConfigTableService;
|
|
@PostMapping("getTableNameList/{id}")
|
@ApiOperation("信息")
|
public Result<List<SyncConfigTables>> get(@PathVariable("id") Long id) {
|
Map<String, Object> map = new HashMap<>();
|
map.put("sync_config_id", id);
|
List<SyncConfigTables> syncConfigTables = syncConfigTableService.getList(map);
|
return Result.ok(syncConfigTables);
|
}
|
|
}
|