maven
7 天以前 ee0be3d2f2a90094506e8f817098762a5b9d9a7e
src/main/java/com/ruoyi/equipmentenergyconsumption/controller/EnergyPeriodController.java
@@ -41,6 +41,14 @@
        return save ? AjaxResult.success() : AjaxResult.error();
    }
    @PostMapping("/addBatch")
    @ApiOperation("用电时段-批量新增")
    @Log(title = "用电时段-批量新增", businessType = BusinessType.INSERT)
    public AjaxResult addBatch(@RequestBody List<EnergyPeriod> energyPeriods) {
        boolean save = energyPeriodService.saveBatch(energyPeriods);
        return save ? AjaxResult.success() : AjaxResult.error();
    }
    @PostMapping("/update")
    @ApiOperation("用电时段-修改")
    @Log(title = "用电时段-修改", businessType = BusinessType.UPDATE)