|
@@ -7,20 +7,21 @@ import com.zcxk.rmcp.api.dto.install.InstallPlanDataDto;
|
|
|
import com.zcxk.rmcp.api.dto.install.InstallPlanInputDto;
|
|
|
import com.zcxk.rmcp.api.dto.install.MeterSyncDto;
|
|
|
import com.zcxk.rmcp.api.dto.install.MeterSyncInputDto;
|
|
|
+import com.zcxk.rmcp.api.dto.meterreadrecord.MeterReadRecordSyncDto;
|
|
|
import com.zcxk.rmcp.api.feign.SyncDataClient;
|
|
|
+import com.zcxk.rmcp.api.vo.MeterReadRecordVo;
|
|
|
import com.zcxk.rmcp.core.dao.DeviceMapper;
|
|
|
import com.zcxk.rmcp.web.logAdvice.LogAnnotation;
|
|
|
+import com.zcxk.rmcp.web.service.MeterReadRecordService;
|
|
|
import com.zcxk.rmcp.web.service.install.InstallPlanService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
-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.ResponseBody;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import javax.validation.Valid;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -41,6 +42,9 @@ public class SyncDataApi {
|
|
|
@Autowired
|
|
|
private SyncDataClient syncDataClient;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private MeterReadRecordService meterReadRecordService;
|
|
|
+
|
|
|
@ResponseBody
|
|
|
@PostMapping("syncPlan")
|
|
|
@ApiOperation(value = "同步计划")
|
|
@@ -60,6 +64,7 @@ public class SyncDataApi {
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
@PostMapping("test")
|
|
|
public void test(){
|
|
|
InstallPlanInputDto dto = new InstallPlanInputDto();
|