1
zhang
1 天以前 7abaf002f0c831a76c9b4e49db7ee1548940d487
src/main/java/com/zy/asrs/controller/BasShuttleController.java
@@ -124,4 +124,19 @@
        return R.ok();
    }
    @RequestMapping(value = "/basShuttle/updateCharge")
    @ManagerAuth
    public R updateCharge(BasShuttle basShuttle){
        if (Cools.isEmpty(basShuttle) || null==basShuttle.getChargeLine()){
            return R.error();
        }
        List<BasShuttle> basShuttles = basShuttleService.selectList(new EntityWrapper<BasShuttle>());
        for (BasShuttle shuttle : basShuttles) {
            shuttle.setChargeLine(basShuttle.getChargeLine());
            basShuttleService.updateById(shuttle);
        }
        return R.ok();
    }
}