完成调度
This commit is contained in:
parent
964a155010
commit
5cf4325dbc
@ -233,17 +233,17 @@ public class EbikeBikeOrderController {
|
||||
return JsonResult.success();
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 完成调度工单。
|
||||
// *
|
||||
// * @param bikeCode 车辆编号
|
||||
// * @return 结果
|
||||
// */
|
||||
// @GetMapping("bikeDispatch")
|
||||
// public JsonResult<?> bikeDispatch(@NotNull(message = "车辆编号不能为空") String bikeCode,@NotNull(message = "站点ID不能为空")Long siteId) {
|
||||
// ebikeBikeOrderService.bikeDispatch(bikeCode,siteId);
|
||||
// return JsonResult.success();
|
||||
// }
|
||||
/**
|
||||
* 完成调度工单。
|
||||
*
|
||||
* @param doneDispatchOrderVo 调度信息
|
||||
* @return 结果
|
||||
*/
|
||||
@GetMapping("bikeDispatch")
|
||||
public JsonResult<?> bikeDispatch(@RequestBody @Validated DoneDispatchOrderVo doneDispatchOrderVo) {
|
||||
ebikeBikeOrderService.bikeDispatch(doneDispatchOrderVo);
|
||||
return JsonResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 运营区列表(工单用)
|
||||
|
||||
@ -0,0 +1,38 @@
|
||||
package com.cdzy.operations.model.vo;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author attiya
|
||||
* @since 2025-11-26
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class DoneDispatchOrderVo {
|
||||
|
||||
/**
|
||||
* 车辆编号
|
||||
*/
|
||||
@NotNull(message = "车辆编号不能为空")
|
||||
private String bikeCode;
|
||||
|
||||
@NotNull(message = "站点ID不能为空")
|
||||
private Long siteId;
|
||||
/**
|
||||
* 文件地址
|
||||
*/
|
||||
private List<String> fileUrls;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remarks;
|
||||
}
|
||||
@ -106,10 +106,9 @@ public interface EbikeBikeOrderService extends IService<EbikeBikeOrder> {
|
||||
|
||||
/**
|
||||
* 完成调度
|
||||
* @param bikeCode 车辆编号
|
||||
* @param siteId 站点ID
|
||||
* @param doneDispatchOrderVo 调度信息
|
||||
*/
|
||||
void bikeDispatch(String bikeCode, Long siteId);
|
||||
void bikeDispatch(DoneDispatchOrderVo doneDispatchOrderVo);
|
||||
|
||||
/**
|
||||
* 完成巡检
|
||||
|
||||
@ -552,7 +552,7 @@ public class EbikeBikeOrderServiceImpl extends ServiceImpl<EbikeBikeOrderMapper,
|
||||
}
|
||||
|
||||
@Override
|
||||
public void bikeDispatch(String bikeCode, Long siteId) {
|
||||
public void bikeDispatch(DoneDispatchOrderVo doneDispatchOrderVo) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user