yzc 1 年間 前
コミット
ed4d3bc6e1

+ 6 - 6
hx-victoriatourist/src/main/java/com/fjhx/victoriatourist/service/logistics/impl/LogisticsInfosServiceImpl.java

@@ -71,14 +71,14 @@ public class LogisticsInfosServiceImpl extends ServiceImpl<LogisticsInfosMapper,
     @Override
     public Page<LogisticsInfosVo> getPage(LogisticsInfosSelectDto dto) {
         IWrapper<LogisticsInfos> wrapper = getWrapper();
-        wrapper.eq(LogisticsInfos::getBusinessType, dto.getBusinessType());
-        wrapper.eq(LogisticsInfos::getLogisticsStatus, dto.getLogisticsStatus());
-        wrapper.eq(LogisticsInfos::getStatus, dto.getStatus());
+        wrapper.eq("li",LogisticsInfos::getBusinessType, dto.getBusinessType());
+        wrapper.eq("li",LogisticsInfos::getLogisticsStatus, dto.getLogisticsStatus());
+        wrapper.eq("li",LogisticsInfos::getStatus, dto.getStatus());
         if (ObjectUtil.isNotEmpty(dto.getKeyword())) {
             List<String> companyCodes = companyInfoService.listObject(CompanyInfo::getCode, q -> q.like(CompanyInfo::getName, dto.getKeyword()));
-            wrapper.and(q -> q.like(LogisticsInfos::getCode, dto.getKeyword())
-                    .or().like(LogisticsInfos::getBusinessCode, dto.getKeyword())
-                    .or().in(LogisticsInfos::getLogisticsCompanyCode, companyCodes)
+            wrapper.and(q -> q.like("li",LogisticsInfos::getCode, dto.getKeyword())
+                    .or().like("li",LogisticsInfos::getBusinessCode, dto.getKeyword())
+                    .or().in("li",LogisticsInfos::getLogisticsCompanyCode, companyCodes)
             );
         }