浏览代码

屏蔽装运单的批量删除跟单个删除逻辑

lingpeng.li 2 天之前
父节点
当前提交
513275ef63

+ 11 - 7
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/billet/storageBill/controller/StorageBillController.java

@@ -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("批量删除成功!");
 	}
 	
 	/**