Ver código fonte

停车记录 月卡 车牌号模糊查询

xlq 3 semanas atrás
pai
commit
2b9deda7ab

+ 1 - 1
src/main/java/com/qmrb/system/service/impl/BarnRecordServiceImpl.java

@@ -94,7 +94,7 @@ public class BarnRecordServiceImpl extends ServiceImpl<BarnRecordMapper, BarnRec
 
         }
         if (StrUtil.isNotBlank(queryParams.getCarNumber())) {
-            queryWrapper.eq(BarnRecord::getCarNumber, queryParams.getCarNumber());
+            queryWrapper.like(BarnRecord::getCarNumber, queryParams.getCarNumber());
         }
         queryWrapper.ge(StrUtil.isNotBlank(queryParams.getIntimeBegin()), BarnRecord::getInTime, queryParams.getIntimeBegin()).le(StrUtil.isNotBlank(queryParams.getIntimeEnd()), BarnRecord::getInTime, queryParams.getIntimeEnd());
         queryWrapper.ge(StrUtil.isNotBlank(queryParams.getOutTimeBegin()), BarnRecord::getOutTime, queryParams.getOutTimeBegin()).le(StrUtil.isNotBlank(queryParams.getOutTimeEnd()), BarnRecord::getOutTime, queryParams.getOutTimeEnd());

+ 1 - 1
src/main/java/com/qmrb/system/service/impl/CarParkStoredCardServiceImpl.java

@@ -51,7 +51,7 @@ public class CarParkStoredCardServiceImpl extends ServiceImpl<CarParkStoredCardM
 
 		LambdaQueryWrapper<CarParkStoredCard> queryWrapper = new LambdaQueryWrapper<>();
 		if (StrUtil.isNotBlank(queryParams.getPlateNumber())) {
-			queryWrapper.eq(CarParkStoredCard::getPlateNumber, queryParams.getPlateNumber());
+			queryWrapper.like(CarParkStoredCard::getPlateNumber, queryParams.getPlateNumber());
 		}
 		queryWrapper.ge(StrUtil.isNotBlank(queryParams.getStartTimeBegin()), CarParkStoredCard::getStartTime, queryParams.getStartTimeBegin()).le(StrUtil.isNotBlank(queryParams.getStartTimeEnd()), CarParkStoredCard::getStartTime, queryParams.getStartTimeEnd());
 		queryWrapper.ge(StrUtil.isNotBlank(queryParams.getEndTimeBegin()), CarParkStoredCard::getEndTime, queryParams.getEndTimeBegin()).le(StrUtil.isNotBlank(queryParams.getEndTimeEnd()), CarParkStoredCard::getEndTime, queryParams.getEndTimeEnd());