燕山石化项目数据提取服务
xing
2023-02-24 08c8552eb977f27304a4785e5a671905463d83c1
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package com.terra.bigdata.controller;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.terra.bigdata.domain.Suyuan100Csv2;
 
import com.terra.bigdata.util.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
 
/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author hyy
 * @since 2022-12-13
 */
@RestController
@RequestMapping("/bigdata/suyuan100-csv2")
@RequiredArgsConstructor
@Api(tags = "bigdata")
public class Suyuan100Csv2Controller {
    private final com.terra.bigdata.service.Suyuan100Csv2Service service;
    private final com.terra.bigdata.service.Yssh3dreliService yssh3dreliService;
 
    @GetMapping("/queryData")
    @ApiOperation("查询数据")
    public Result<Suyuan100Csv2> queryData() {
 
        return Result.suss(service.list(new QueryWrapper<Suyuan100Csv2>().le("id", 100)));
    }
 
    @GetMapping("/updateData")
    @ApiOperation("更新数据")
    public Result<Suyuan100Csv2> updateData() {
        //service.saveOrUpdateBatch()
        //return Result.suss(service.list(new QueryWrapper<Suyuan100Csv2>().le("id",100)));
        return null;
    }
 
 
    //测试
    @GetMapping("/cre")
    public String test(){
        yssh3dreliService.create3dreliTable();
        yssh3dreliService.create2dreliTable();
        return "创建表完成!";
    }
 
}