主配网监测点统计数据算法
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
package com.njcn.harmonic.controller.upload;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.common.utils.LogUtil;
|
||||
import com.njcn.harmonic.service.upload.PointStatisticalDataService;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 类的介绍:国网指标数据上送
|
||||
*
|
||||
* @author xuyang
|
||||
* @version 1.0.0
|
||||
* @createTime 2023/12/7 9:05
|
||||
*/
|
||||
@Validated
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/upload")
|
||||
@Api(tags = "国网指标数据上送")
|
||||
@AllArgsConstructor
|
||||
public class PointStatisticalDataController extends BaseController {
|
||||
|
||||
private final PointStatisticalDataService pointStatisticalDataService;
|
||||
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@PostMapping("/statisticalCreate")
|
||||
@ApiOperation("主配网监测点统计数据(2.4.1.17)")
|
||||
@ApiImplicitParam(name = "param", value = "实体参数", required = true)
|
||||
public HttpResult<Object> statisticalCreate(@RequestBody Object param) {
|
||||
String methodDescribe = getMethodDescribe("statisticalCreate");
|
||||
LogUtil.njcnDebug(log, "{},实体参数:{}", methodDescribe, param);
|
||||
pointStatisticalDataService.getPointStatisticalData(param);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.njcn.harmonic.service.upload;
|
||||
|
||||
/**
|
||||
* @author xuyang
|
||||
*/
|
||||
public interface PointStatisticalDataService {
|
||||
|
||||
/**
|
||||
* 2.4.1.17接收电能质量主配网监测点统计数据接口
|
||||
* @param param
|
||||
*/
|
||||
void getPointStatisticalData(Object param);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.njcn.harmonic.service.upload.impl;
|
||||
|
||||
import com.njcn.harmonic.service.upload.PointStatisticalDataService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author xuyang
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class PointStatisticalDataServiceImpl implements PointStatisticalDataService {
|
||||
|
||||
@Override
|
||||
public void getPointStatisticalData(Object param) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user