提交 3b87f4fc authored 作者: zjm's avatar zjm

feat(单位模块): 添加了单位逻辑注释

添加了单位逻辑注释
上级 383ae542
...@@ -233,7 +233,7 @@ public class DataInit { ...@@ -233,7 +233,7 @@ public class DataInit {
// @Bean // @Bean
// @DependsOn("userUtils") // @DependsOn("userUtils")
@PostConstruct // @PostConstruct
public void init2(){ public void init2(){
log.info("单位名称初始化-----"); log.info("单位名称初始化-----");
initCheckDetailUnitName(); initCheckDetailUnitName();
......
...@@ -53,6 +53,9 @@ public class RunController { ...@@ -53,6 +53,9 @@ public class RunController {
@Autowired @Autowired
private MatchingDeviceLibraryService matchingDeviceLibraryService; private MatchingDeviceLibraryService matchingDeviceLibraryService;
@Autowired
DataInit dataInit;
@ApiOperation(value = "修改单位名称从而修改配套设备的创建单位", notes = "修改单位名称从而修改配套设备的创建单位") @ApiOperation(value = "修改单位名称从而修改配套设备的创建单位", notes = "修改单位名称从而修改配套设备的创建单位")
@PostMapping("/device/updateDeviceLocationAndOwnUnit") @PostMapping("/device/updateDeviceLocationAndOwnUnit")
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
...@@ -73,5 +76,13 @@ public class RunController { ...@@ -73,5 +76,13 @@ public class RunController {
return ResponseEntity.ok("修改成功"); return ResponseEntity.ok("修改成功");
} }
@ApiOperation(value = "修改单位名称从而修改配套设备的创建单位", notes = "修改单位名称从而修改配套设备的创建单位")
@GetMapping("/run/init")
@Transactional(rollbackFor = Exception.class)
public ResponseEntity<String> run() {
dataInit.init2();
return ResponseEntity.ok("修改成功");
}
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论