|
|
@ -66,6 +66,7 @@ public class EquipmentLedgerController extends DafController { |
|
|
|
@ApiOperationSupport(order = 2) |
|
|
|
@ApiOperationSupport(order = 2) |
|
|
|
@ApiOperation(value = "分页", notes = "传入equipmentLedger") |
|
|
|
@ApiOperation(value = "分页", notes = "传入equipmentLedger") |
|
|
|
public R<IPage<EquipmentLedger>> list(EquipmentLedger equipmentLedger, Query query) { |
|
|
|
public R<IPage<EquipmentLedger>> list(EquipmentLedger equipmentLedger, Query query) { |
|
|
|
|
|
|
|
query.setAscs("eq_ledger_code"); |
|
|
|
IPage<EquipmentLedger> pages = equipmentLedgerService.page(Condition.getPage(query), Condition.getQueryWrapper(equipmentLedger)); |
|
|
|
IPage<EquipmentLedger> pages = equipmentLedgerService.page(Condition.getPage(query), Condition.getQueryWrapper(equipmentLedger)); |
|
|
|
return R.data(pages); |
|
|
|
return R.data(pages); |
|
|
|
} |
|
|
|
} |
|
|
@ -111,7 +112,7 @@ public class EquipmentLedgerController extends DafController { |
|
|
|
return R.status(equipmentLedgerService.saveOrUpdate(equipmentLedger)); |
|
|
|
return R.status(equipmentLedgerService.saveOrUpdate(equipmentLedger)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 删除 设备台账编码一览 |
|
|
|
* 删除 设备台账编码一览 |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -122,5 +123,5 @@ public class EquipmentLedgerController extends DafController { |
|
|
|
return R.status(equipmentLedgerService.deleteLogic(Func.toLongList(ids))); |
|
|
|
return R.status(equipmentLedgerService.deleteLogic(Func.toLongList(ids))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|