提交 b441962d authored 作者: ljj's avatar ljj

[check] 添加修正历史数据接口

上级 bc5e46b3
......@@ -19,10 +19,10 @@ public class ConfirmCheckTask implements CommandLineRunner {
@Override
public void run(String... args) {
log.info("[check] 核查纠正历史装备数据...");
long start = System.currentTimeMillis();
historyCheckDeviceService.fixHistoryDevice();
log.info("[check] 纠正核查历史装备数据完成,用时:{}ms", System.currentTimeMillis() - start);
// log.info("[check] 核查纠正历史装备数据...");
// long start = System.currentTimeMillis();
// historyCheckDeviceService.fixHistoryDevice();
// log.info("[check] 纠正核查历史装备数据完成,用时:{}ms", System.currentTimeMillis() - start);
}
}
......@@ -9,6 +9,7 @@ package com.tykj.dev.union;
*/
import com.tykj.dev.config.swagger.AutoDocument;
import com.tykj.dev.device.confirmcheck.service.HistoryCheckDeviceService;
import com.tykj.dev.device.library.service.DeviceLibraryService;
import com.tykj.dev.device.library.subject.vo.UpdateUnitVo;
import com.tykj.dev.device.matching.service.MatchingDeviceBillService;
......@@ -24,6 +25,7 @@ import com.tykj.dev.device.user.subject.service.UnitsService;
import com.tykj.dev.misc.exception.ApiException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
......@@ -39,6 +41,7 @@ import java.util.concurrent.CompletableFuture;
* 区域视图层
*/
@RestController
@Slf4j
public class RunController {
@Resource
......@@ -56,6 +59,20 @@ public class RunController {
@Autowired
DataInit dataInit;
@Autowired
private HistoryCheckDeviceService historyCheckDeviceService;
@ApiOperation(value = "修正核查的历史装备数据")
@GetMapping("/device/check/device/his")
public ResponseEntity<String> fixCheckHis() {
log.info("[check] 核查纠正历史装备数据...");
long start = System.currentTimeMillis();
historyCheckDeviceService.fixHistoryDevice();
log.info("[check] 纠正核查历史装备数据完成,用时:{}ms", System.currentTimeMillis() - start);
return ResponseEntity.ok("");
}
@ApiOperation(value = "修改单位名称从而修改配套设备的创建单位", notes = "修改单位名称从而修改配套设备的创建单位")
@PostMapping("/device/updateDeviceLocationAndOwnUnit")
@Transactional(rollbackFor = Exception.class)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论