|  | @@ -10,7 +10,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.RequestParam;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.RestController;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import java.util.HashMap;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
		
			
				|  |  | +import java.util.Map;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * 基于pgsql里的POST做的生成数据组件
 | 
	
	
		
			
				|  | @@ -30,8 +32,13 @@ public class CreateUtilsDBController extends BaseController {
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      @PostMapping("/buffer/tables")
 | 
	
		
			
				|  |  |      @Slave
 | 
	
		
			
				|  |  | -    public RequestResult bufferTables(@RequestParam(value = "tableName") String tableName, @RequestParam(value = "radius") Float radius) {
 | 
	
		
			
				|  |  | -        return RequestResult.success(createUtilsDBService.bufferTable(tableName, radius));
 | 
	
		
			
				|  |  | +    public RequestResult bufferTables(@RequestParam(value = "tableName") String tableName,
 | 
	
		
			
				|  |  | +                                      @RequestParam(value = "radius") Float radius) {
 | 
	
		
			
				|  |  | +        String newTable = createUtilsDBService.bufferTable(tableName, radius);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        Map<String, String> result = new HashMap<>();
 | 
	
		
			
				|  |  | +        result.put("tableName", newTable);
 | 
	
		
			
				|  |  | +        return RequestResult.success(result);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
	
		
			
				|  | @@ -44,7 +51,13 @@ public class CreateUtilsDBController extends BaseController {
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      @PostMapping("/difference/tables")
 | 
	
		
			
				|  |  |      @Slave
 | 
	
		
			
				|  |  | -    public RequestResult differenceTables(@RequestParam(value = "inputTableA") String tableNameA, @RequestParam(value = "inputTableB") String tableNameB, @RequestParam(value = "inputIdsB", required = false) List<String> tableIdsB) {
 | 
	
		
			
				|  |  | -        return RequestResult.success(createUtilsDBService.differenceTables(tableNameA, tableNameB, tableIdsB));
 | 
	
		
			
				|  |  | +    public RequestResult differenceTables(@RequestParam(value = "inputTableA") String tableNameA,
 | 
	
		
			
				|  |  | +                                          @RequestParam(value = "inputTableB") String tableNameB,
 | 
	
		
			
				|  |  | +                                          @RequestParam(value = "inputIdsB", required = false) List<String> tableIdsB) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        String newTable =createUtilsDBService.differenceTables(tableNameA, tableNameB, tableIdsB);
 | 
	
		
			
				|  |  | +        Map<String, String> result = new HashMap<>();
 | 
	
		
			
				|  |  | +        result.put("tableName", newTable);
 | 
	
		
			
				|  |  | +        return RequestResult.success(newTable);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |