34 lines
934 B
Java
Raw Normal View History

2025-04-22 16:04:15 +08:00
package com.cdzy.ebikemaintenance.controller;
import com.cdzy.common.model.JsonResult;
import com.cdzy.ebikemaintenance.service.EbikeBikeOrderService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* 工单控制层
* @author attiya
* @since 2025-04-22
*/
@RestController
@RequestMapping("/ebikeOrder")
public class EbikeOrderController {
@Resource
EbikeBikeOrderService ebikeBikeOrderService;
/**
* 生成换电工单
* @return 运营车辆列表
*/
@GetMapping("changeBattery")
public JsonResult<?> changeBattery(@RequestParam("ecuSn") String ecuSn) {
ebikeBikeOrderService.changeBattery(ecuSn);
return JsonResult.success();
}
}