|
@@ -108,7 +108,6 @@ public class BizRecycleBinController extends BaseController {
|
|
|
public TableDataInfo list(BizRecycleBin bizRecycleBin) throws NoSuchFieldException, IllegalAccessException {
|
|
|
setTenantId(bizRecycleBin);
|
|
|
startPage();
|
|
|
- startOrderBy();
|
|
|
List<BizRecycleBin> list = bizRecycleBinService.getList(bizRecycleBin);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
@@ -350,9 +349,21 @@ public class BizRecycleBinController extends BaseController {
|
|
|
@PreAuthorize("@ss.hasPermi('business:bin:remove')")
|
|
|
@Log(title = "回收站", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public AjaxResult remove(@PathVariable List<Long> ids) {
|
|
|
- bizRecycleBinService.remove(ids);
|
|
|
- return toAjax(bizRecycleBinService.removeBatchByIds(ids));
|
|
|
+// List<BizArchiveInputDetail> bizArchiveInputDetailList = bizArchiveInputDetailService.
|
|
|
+// query().in("contract_id",ids)
|
|
|
+// .list();
|
|
|
+// bizArchiveInputDetailList.forEach(bizArchiveInputDetailService::physicalDelete);
|
|
|
+ BizArchiveInput bizArchiveInput;
|
|
|
+ for (Long id : ids) {
|
|
|
+ bizArchiveInput = new BizArchiveInput();
|
|
|
+ bizArchiveInput.setId(id);
|
|
|
+ if(null != bizArchiveInput.getId()){
|
|
|
+ bizArchiveInputService.physicalDelete(bizArchiveInput);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return toAjax(true);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -368,8 +379,8 @@ public class BizRecycleBinController extends BaseController {
|
|
|
* 还原回收站
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('business:bin:restore')")
|
|
|
- @PostMapping("/restoreArchive/{ids}")
|
|
|
- public AjaxResult restoreArchive(@PathVariable List<Long> ids) {
|
|
|
+ @PostMapping("/restoreArchive")
|
|
|
+ public AjaxResult restoreArchive(@RequestBody List<Long> ids) {
|
|
|
return toAjax(bizRecycleBinService.restore(ids, ordertabs, false));
|
|
|
}
|
|
|
|