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; /** *

* 前端控制器 *

* * @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 queryData() { return Result.suss(service.list(new QueryWrapper().le("id", 100))); } @GetMapping("/updateData") @ApiOperation("更新数据") public Result updateData() { //service.saveOrUpdateBatch() //return Result.suss(service.list(new QueryWrapper().le("id",100))); return null; } //测试 @GetMapping("/cre") public String test(){ yssh3dreliService.create3dreliTable(); yssh3dreliService.create2dreliTable(); return "创建表完成!"; } }