提交 eb5b3e6c authored 作者: zjm's avatar zjm

Merge branch 'dev' of git.yfzx.zjtys.com.cn:matrix/device-back

...@@ -785,7 +785,7 @@ public class RepairController { ...@@ -785,7 +785,7 @@ public class RepairController {
//存装备日志 //存装备日志
// DeviceLogDto deviceLogDto = new DeviceLogDto(id, "接收并发起入库", fileVoList, taskBto.getId()); // DeviceLogDto deviceLogDto = new DeviceLogDto(id, "接收并发起入库", fileVoList, taskBto.getId());
DeviceLogDto deviceLogDto; DeviceLogDto deviceLogDto;
if (repairReceiveVo.getRightSignatureId() != null && "".equals(repairReceiveVo.getRightSignatureId())){ if (repairReceiveVo.getRightSignatureId() != null && !"".equals(repairReceiveVo.getRightSignatureId())){
deviceLogDto = new DeviceLogDto(id, "接收并发起入库(签章入库)", fileVoList, taskBto.getId(),taskBto.getId()); deviceLogDto = new DeviceLogDto(id, "接收并发起入库(签章入库)", fileVoList, taskBto.getId(),taskBto.getId());
} }
deviceLogDto = new DeviceLogDto(id, "接收并发起入库(签字入库)", fileVoList, taskBto.getId(),taskBto.getId()); deviceLogDto = new DeviceLogDto(id, "接收并发起入库(签字入库)", fileVoList, taskBto.getId(),taskBto.getId());
......
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论