车辆上/下架
This commit is contained in:
parent
7be9eb3f44
commit
73f7447849
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
}
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user