修复sql
This commit is contained in:
parent
909d003bf9
commit
fc914f73a4
@ -1352,7 +1352,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
||||
));
|
||||
|
||||
if (queryParam.getBikeCode() != null && !queryParam.getBikeCode().isEmpty()) {
|
||||
query.like(EBIKE_BIKE_INFO.BIKE_CODE.getName(), queryParam.getBikeCode());
|
||||
query.where(EBIKE_BIKE_INFO.BIKE_CODE.like(queryParam.getBikeCode()));
|
||||
}
|
||||
|
||||
if (queryParam.getState() != null && !queryParam.getState().isEmpty()) {
|
||||
@ -1373,7 +1373,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
|
||||
|
||||
public JsonResult<?> updateVehicleStatus(ReqVehicleStatusUpdateDto queryParam) {
|
||||
String bikeCode = queryParam.getBikeCode();
|
||||
// 根据 bikeCode 查找 bikeId
|
||||
// 根据 bikeCode 查找 bikeId
|
||||
QueryWrapper query = QueryWrapper.create();
|
||||
query.eq("bike_code", bikeCode);
|
||||
EbikeBikeInfo ebikeBikeInfo = ebikeBikeInfoMapper.selectOneByQuery(query);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user