调整接口注释
This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
package com.njcn.gather.storage.controller;
|
||||
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.db.mybatisplus.handler.DynamicTableNameHandler;
|
||||
import com.njcn.gather.storage.pojo.po.SimAndDigHarmonicResult;
|
||||
import com.njcn.gather.storage.pojo.po.SimAndDigNonHarmonicResult;
|
||||
import com.njcn.gather.storage.service.DetectionDataDealService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import com.njcn.web.utils.HttpResultUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Slf4j
|
||||
@Api(tags = "处理数据")
|
||||
@RestController
|
||||
@RequestMapping("/dataDeal")
|
||||
@RequiredArgsConstructor
|
||||
public class DataDealController extends BaseController {
|
||||
|
||||
private final DetectionDataDealService detectionDataDealService;
|
||||
|
||||
|
||||
@GetMapping("ttt")
|
||||
public HttpResult<Object> dataDealAndInsert(){
|
||||
String methodDescribe = getMethodDescribe("dataDealAndInsert");
|
||||
|
||||
List<SimAndDigHarmonicResult> list2 = new ArrayList<>();
|
||||
SimAndDigHarmonicResult SimAndDigHarmonicResult = new SimAndDigHarmonicResult();
|
||||
SimAndDigHarmonicResult.setDataType("aa");
|
||||
SimAndDigHarmonicResult.setAdType("aaaa");
|
||||
|
||||
SimAndDigHarmonicResult.setDevMonitorId("ss");
|
||||
SimAndDigHarmonicResult.setScriptId("ddd");
|
||||
SimAndDigHarmonicResult.setTimeId(LocalDateTime.now());
|
||||
|
||||
list2.add(SimAndDigHarmonicResult);
|
||||
SimAndDigHarmonicResult SimAndDigHarmonicResult2 = new SimAndDigHarmonicResult();
|
||||
SimAndDigHarmonicResult2.setDataType("aabb");
|
||||
SimAndDigHarmonicResult2.setAdType("aaaabb");
|
||||
|
||||
SimAndDigHarmonicResult2.setDevMonitorId("ssbb");
|
||||
SimAndDigHarmonicResult2.setScriptId("dddbb");
|
||||
SimAndDigHarmonicResult2.setTimeId(LocalDateTime.now());
|
||||
list2.add(SimAndDigHarmonicResult2);
|
||||
|
||||
detectionDataDealService.acceptHarmonic(list2,"1");
|
||||
|
||||
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
package com.njcn.gather.storage.controller;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.gather.storage.service.TableGenService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import com.njcn.web.utils.HttpResultUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
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;
|
||||
|
||||
@Slf4j
|
||||
@Api(tags = "生成表")
|
||||
@RestController
|
||||
@RequestMapping("/genTable")
|
||||
@RequiredArgsConstructor
|
||||
public class TableGenController extends BaseController {
|
||||
|
||||
private final TableGenService tableGenService;
|
||||
|
||||
|
||||
@GetMapping("genAdHarmonicTable")
|
||||
@ApiOperation("生成表")
|
||||
@OperateInfo
|
||||
public HttpResult<Object> genAdHarmonicTable(@RequestParam("code") String code, @RequestParam("isContrast") boolean isContrast) {
|
||||
String methodDescribe = getMethodDescribe("genAdHarmonicTable");
|
||||
tableGenService.genTable(code, isContrast);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user