修复sql

This commit is contained in:
attiya 2025-07-07 11:31:53 +08:00
parent 909d003bf9
commit fc914f73a4

View File

@ -1352,7 +1352,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
)); ));
if (queryParam.getBikeCode() != null && !queryParam.getBikeCode().isEmpty()) { 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()) { if (queryParam.getState() != null && !queryParam.getState().isEmpty()) {