|
@@ -256,6 +256,7 @@ public class DeviceLedgerServiceImpl implements DeviceLedgerService {
|
|
|
if (deviceLedgerDao.delDeviceLedgerById(id) <= 0) {
|
|
|
return Result.no(ResultEnum.SERVER_ERROR.getRespCode(), "删除设备台账失败");
|
|
|
}
|
|
|
+ deviceLedgerDao.delLedgerItemByLedgerId(id);
|
|
|
List<TechnicalData> technicalDataList = deviceLedgerDao.getTechnicalByLedgerId(id);
|
|
|
List<DevicePicture> pictureList = deviceLedgerDao.getPictureByLedgerId(id);
|
|
|
deviceLedgerDao.delTechnicalByLedgerId(id);
|
|
@@ -384,7 +385,13 @@ public class DeviceLedgerServiceImpl implements DeviceLedgerService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Result getItemByLedgerId(Integer ledgerId) {
|
|
|
- return Result.ok(deviceLedgerDao.getItemByLedgerId(ledgerId));
|
|
|
+ public Result getItemByLedgerId(Integer deviceLedgerId) {
|
|
|
+ return Result.ok(deviceLedgerDao.getItemByLedgerId(deviceLedgerId));
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Result getDeviceLedgerAll(Integer directoryId) {
|
|
|
+ List<DeviceLedger> deviceLedgerList = deviceLedgerDao.getLedgerByDirectoryId(directoryId);
|
|
|
+ return null;
|
|
|
}
|
|
|
}
|