车辆上/下架

This commit is contained in:
attiya 2025-11-05 16:02:48 +08:00
parent 7be9eb3f44
commit 73f7447849
3 changed files with 8 additions and 8 deletions

View File

@ -26,10 +26,10 @@ public class EbikeBatchLaunchVo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 车辆ID列表
* 车辆编号列表
*/
@NotNull(message = "车辆ID列表不能为空")
private List<Long> bikeIds;
@NotNull(message = "车辆编号列表不能为空")
private List<String> bikeCodes;
/**
* 运营区ID

View File

@ -26,9 +26,9 @@ public class EbikeBatchUnLaunchVo implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 车辆ID列表
* 车辆编号列表
*/
@NotNull(message = "车辆ID列表不能为空")
private List<Long> bikeIds;
@NotNull(message = "车辆编号列表不能为空")
private List<String> bikeCodes;
}

View File

@ -227,7 +227,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
UpdateChain.of(EbikeBikeInfo.class)
.set(EBIKE_BIKE_INFO.STATUS, BikeStatus.LAUNCH)
.set(EBIKE_BIKE_INFO.REGION_ID, launchVo.getRegionId())
.where(EBIKE_BIKE_INFO.BIKE_INFO_ID.in(launchVo.getBikeIds()))
.where(EBIKE_BIKE_INFO.BIKE_CODE.in(launchVo.getBikeCodes()))
.update();
}
@ -235,7 +235,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
public void batchUnLaunch(EbikeBatchUnLaunchVo launchVo) {
UpdateChain.of(EbikeBikeInfo.class)
.set(EBIKE_BIKE_INFO.STATUS, BikeStatus.UN_LAUNCH)
.where(EBIKE_BIKE_INFO.BIKE_INFO_ID.in(launchVo.getBikeIds()))
.where(EBIKE_BIKE_INFO.BIKE_CODE.in(launchVo.getBikeCodes()))
.update();
}