소스 검색

机车列表,终端列表 查询条件改模糊查询

sunhh 1 년 전
부모
커밋
f8961315dc

+ 2 - 2
business-service/src/main/java/com/ozs/service/impl/BaseTerminalServiceImpl.java

@@ -40,10 +40,10 @@ public class BaseTerminalServiceImpl extends ServiceImpl<BaseTerminalMapper, Bas
     public IPage<BaseTerminal> vehicleTerminalList(BaseVehicleTerminalVo baseVehicleTerminalleVo) {
         LambdaQueryWrapper<BaseTerminal> wrapper = new LambdaQueryWrapper<BaseTerminal>();
         if (!StringUtils.isEmptySunhh(baseVehicleTerminalleVo) && !StringUtils.isEmptySunhh(baseVehicleTerminalleVo.getTerminalCode())) {
-            wrapper.eq(BaseTerminal::getTerminalCode, baseVehicleTerminalleVo.getTerminalCode());
+            wrapper.like(BaseTerminal::getTerminalCode, baseVehicleTerminalleVo.getTerminalCode());
         }
         if (!StringUtils.isEmptySunhh(baseVehicleTerminalleVo) && !StringUtils.isEmptySunhh(baseVehicleTerminalleVo.getTerminalName())) {
-            wrapper.eq(BaseTerminal::getTerminalName, baseVehicleTerminalleVo.getTerminalName());
+            wrapper.like(BaseTerminal::getTerminalName, baseVehicleTerminalleVo.getTerminalName());
         }
         if (!StringUtils.isEmptySunhh(baseVehicleTerminalleVo) && !StringUtils.isEmptySunhh(baseVehicleTerminalleVo.getStatus())) {
             wrapper.eq(BaseTerminal::getStatus, baseVehicleTerminalleVo.getStatus());

+ 2 - 2
business-service/src/main/java/com/ozs/service/impl/BaseVehicleServiceImpl.java

@@ -59,10 +59,10 @@ public class BaseVehicleServiceImpl extends ServiceImpl<BaseVehicleMapper, BaseV
     public IPage<BaseVehicle> vehicleList(BaseVehicleVo baseVehicle) {
         LambdaQueryWrapper<BaseVehicle> wrapper = new LambdaQueryWrapper<BaseVehicle>();
         if (!StringUtils.isEmptySunhh(baseVehicle) && !StringUtils.isEmptySunhh(baseVehicle.getVehicleName())) {
-            wrapper.eq(BaseVehicle::getVehicleName, baseVehicle.getVehicleName());
+            wrapper.like(BaseVehicle::getVehicleName, baseVehicle.getVehicleName());
         }
         if (!StringUtils.isEmptySunhh(baseVehicle) && !StringUtils.isEmptySunhh(baseVehicle.getVehicleCode())) {
-            wrapper.eq(BaseVehicle::getVehicleCode, baseVehicle.getVehicleCode());
+            wrapper.like(BaseVehicle::getVehicleCode, baseVehicle.getVehicleCode());
         }
         wrapper.orderByDesc(BaseVehicle::getCreateTime);
         int pageNum = Integer.parseInt(baseVehicle.getPageNum().toString());