gongdecai 1 년 전
부모
커밋
06bcbeede6
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      unimall-app-api/src/main/java/com/iotechn/unimall/app/api/pinche/impl/PincheCarSharingAppServiceImpl.java

+ 6 - 4
unimall-app-api/src/main/java/com/iotechn/unimall/app/api/pinche/impl/PincheCarSharingAppServiceImpl.java

@@ -46,9 +46,9 @@ public class PincheCarSharingAppServiceImpl implements IPincheCarSharingAppServi
     @Override
     public Page<PincheCarSharing> list(Long companyId, String carpoolingType, String route, String phone, String startPlace, String endPlace, String departureLatitude, String latitudeArrival, Date departureTime, String numberPeople, String explain, Double unitPrice, Double price, String status, String remark1, String remark2, String remark3, Long deleteFlag, Date gmtCreate, Date gmtUpdate, Long userId, Long adminId, Integer page, Integer limit) throws ServiceException {
         Wrapper<PincheCarSharing> wrapper = new EntityWrapper<PincheCarSharing>();
-        if (!StringUtils.isEmpty(companyId)) {
-            wrapper.eq("company_id", companyId);
-        }
+//        if (!StringUtils.isEmpty(companyId)) {
+//            wrapper.eq("company_id", companyId);
+//        }
         if (!StringUtils.isEmpty(carpoolingType)) {
             wrapper.eq("carpooling_type", carpoolingType);
         }
@@ -113,7 +113,9 @@ public class PincheCarSharingAppServiceImpl implements IPincheCarSharingAppServi
             wrapper.eq("admin_id", adminId);
         }
         wrapper.eq("delete_flag", 0);
-        wrapper.notIn("number_people","0");
+        if (!StringUtils.isEmpty(companyId)) {
+            wrapper.notIn("number_people","0");
+        }
         wrapper.orderBy("departure_time", false);
         List<PincheCarSharing> list = pincheCarSharingMapper.selectPage(new RowBounds((page - 1) * limit, limit), wrapper);
         if (!CollectionUtils.isEmpty(list)) {