소스 검색

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents into dev

魏超 5 년 전
부모
커밋
4fba8880e5

+ 6
- 6
src/main/java/com/huiju/estateagents/service/impl/TaHousingResourcesServiceImpl.java 파일 보기

765
             if (taHousingResources.getSalesBatchId() != taHousingResourcesChecked.getSalesBatchId()){
765
             if (taHousingResources.getSalesBatchId() != taHousingResourcesChecked.getSalesBatchId()){
766
                 throw new Exception("非同一批次房源");
766
                 throw new Exception("非同一批次房源");
767
             }
767
             }
768
+            if (taHousingResourcesChecked.getStatus() != CommConstant.STATUS_NORMAL) {
769
+                throw new Exception("其中有房源已被取消发布");
770
+            }
771
+            if (taRaise.getHouseLockingType().equals(CommConstant.HOUSE_LOCKING_TYPE_AUTO) && CommConstant.HOUSE_LOCKING_STATUS_LOCKED.equals(taHousingResourcesChecked.getHouseLockingStatus())){
772
+                throw new Exception("其中有房源已被其他客户锁定");
773
+            }
768
             if (taRaise.getNeedPreselection()) {
774
             if (taRaise.getNeedPreselection()) {
769
                 //查看是否有当前房源的预选记录
775
                 //查看是否有当前房源的预选记录
770
                 QueryWrapper<TaPreselectionRecord> preselectionRecordQueryWrapper = new QueryWrapper<>();
776
                 QueryWrapper<TaPreselectionRecord> preselectionRecordQueryWrapper = new QueryWrapper<>();
789
 //            }
795
 //            }
790
 
796
 
791
         }
797
         }
792
-        if (taHousingResources.getStatus() != CommConstant.STATUS_NORMAL) {
793
-            throw new Exception("房源已被取消发布");
794
-        }
795
-        if (taRaise.getHouseLockingType().equals(CommConstant.HOUSE_LOCKING_TYPE_AUTO) && CommConstant.HOUSE_LOCKING_STATUS_LOCKED.equals(taHousingResources.getHouseLockingStatus())){
796
-            throw new Exception("房源已被其他客户锁定");
797
-        }
798
         //销售批次信息
798
         //销售批次信息
799
         TaSalesBatch taSalesBatch = taSalesBatchMapper.selectById(taHousingResources.getSalesBatchId());
799
         TaSalesBatch taSalesBatch = taSalesBatchMapper.selectById(taHousingResources.getSalesBatchId());
800
         //销售批次校验
800
         //销售批次校验

+ 0
- 2
src/main/java/com/huiju/estateagents/service/impl/WxPayServiceImpl.java 파일 보기

253
             QueryWrapper<TaRaiseHouse> taRaiseHouseQueryWrapper = new QueryWrapper<>();
253
             QueryWrapper<TaRaiseHouse> taRaiseHouseQueryWrapper = new QueryWrapper<>();
254
             taRaiseHouseQueryWrapper.eq("org_id",taOrder.getOrgId());
254
             taRaiseHouseQueryWrapper.eq("org_id",taOrder.getOrgId());
255
             taRaiseHouseQueryWrapper.eq("raise_record_id",taRaiseRecord.getRaiseRecordId());
255
             taRaiseHouseQueryWrapper.eq("raise_record_id",taRaiseRecord.getRaiseRecordId());
256
-            taRaiseHouseQueryWrapper.eq("person_id",taOrder.getPersonId());
257
             TaRaiseHouse taRaiseHouse = taRaiseHouseMapper.selectOne(taRaiseHouseQueryWrapper);
256
             TaRaiseHouse taRaiseHouse = taRaiseHouseMapper.selectOne(taRaiseHouseQueryWrapper);
258
 
257
 
259
             //获取房源
258
             //获取房源
401
         QueryWrapper<TaRaiseHouse> taRaiseHouseQueryWrapper = new QueryWrapper<>();
400
         QueryWrapper<TaRaiseHouse> taRaiseHouseQueryWrapper = new QueryWrapper<>();
402
         taRaiseHouseQueryWrapper.eq("org_id",taOrder.getOrgId());
401
         taRaiseHouseQueryWrapper.eq("org_id",taOrder.getOrgId());
403
         taRaiseHouseQueryWrapper.eq("raise_record_id",taRaiseRecord.getRaiseRecordId());
402
         taRaiseHouseQueryWrapper.eq("raise_record_id",taRaiseRecord.getRaiseRecordId());
404
-        taRaiseHouseQueryWrapper.eq("person_id",taOrder.getPersonId());
405
         List<TaRaiseHouse> taRaiseHouseList = taRaiseHouseMapper.selectList(taRaiseHouseQueryWrapper);
403
         List<TaRaiseHouse> taRaiseHouseList = taRaiseHouseMapper.selectList(taRaiseHouseQueryWrapper);
406
         if (taRaiseHouseList.size() != 1){
404
         if (taRaiseHouseList.size() != 1){
407
             throw new Exception("自动锁房只能认筹一个房源。");
405
             throw new Exception("自动锁房只能认筹一个房源。");