|
@@ -567,9 +567,11 @@ public class StorageBillController extends JeecgController<StorageBill, IStorage
|
|
|
@ApiOperation(value="钢坯装运单-通过id删除", notes="钢坯装运单-通过id删除")
|
|
|
@DeleteMapping(value = "/delete")
|
|
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
|
|
- StorageBill storageBill = storageBillService.getById(id);
|
|
|
- storageBillService.removeById(storageBill.getId());
|
|
|
- return Result.OK("删除成功!");
|
|
|
+
|
|
|
+ return Result.error("当前操作被禁止:不允许删除钢坯装运单!");
|
|
|
+// StorageBill storageBill = storageBillService.getById(id);
|
|
|
+// storageBillService.removeById(storageBill.getId());
|
|
|
+// return Result.OK("删除成功!");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -837,10 +839,12 @@ public class StorageBillController extends JeecgController<StorageBill, IStorage
|
|
|
@ApiOperation(value="钢坯装运单-批量删除", notes="钢坯装运单-批量删除")
|
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
|
|
- for (String id : Arrays.asList(ids.split(","))) {
|
|
|
- this.delete(id);
|
|
|
- }
|
|
|
- return Result.OK("批量删除成功!");
|
|
|
+
|
|
|
+ return Result.error("当前操作被禁止:不允许删除钢坯装运单!");
|
|
|
+// for (String id : Arrays.asList(ids.split(","))) {
|
|
|
+// this.delete(id);
|
|
|
+// }
|
|
|
+// return Result.OK("批量删除成功!");
|
|
|
}
|
|
|
|
|
|
/**
|