ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TChargingGunController.java
@@ -223,5 +223,20 @@ .eq(TChargingGun::getCode, code) .last("LIMIT 1"))); } /** * 根据枪编号获取充电枪 * @param code * @return */ /** * 编辑充电枪 * @param chargingGun * @return */ @PostMapping("/updateChargingGunById") public R<String> updateChargingGunById(@RequestBody TChargingGun chargingGun){ chargingGunService.updateById(chargingGun) return R.ok(); } }