chenlu
2024-03-07 2ad08ea181d8ec1e2b4b90bd1ddd40a2ba595b59
north-glass-erp/src/main/java/com/example/erp/controller/pp/ProductionSchedulingController.java
@@ -64,14 +64,25 @@
        }
    }
    //添加排产数据
    //删除排产数据
    @PostMapping("/deleteScheduling")
    public Result DeleteScheduling( @RequestBody Map<String,Object>  object){
    public Result DeleteScheduling( @RequestBody Map<String,Object>  object) throws Exception{
        if(productionSchedulingService.AddSchedulingSv(object)){
        if(productionSchedulingService.DeleteSchedulingSv(object)){
            return Result.seccess();
        }else {
            throw new ServiceException(Constants.Code_500,"保存失败");
            throw new ServiceException(Constants.Code_500,"删除失败");
        }
    }
    @PostMapping("/examineScheduling")
    public Result ExamineScheduling( @RequestBody Map<String,Object>  object){
        if(productionSchedulingService.ExamineSchedulingSv(object)){
            return Result.seccess();
        }else {
            throw new ServiceException(Constants.Code_500,"审核失败");
        }
    }