1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);
    }
 
}