傅行帆 5 years ago
parent
commit
a42546dcb2

+ 0
- 1
src/main/java/com/huiju/estateagents/service/impl/TaHousingResourcesServiceImpl.java View File

769
                 //查看是否有当前房源的预选记录
769
                 //查看是否有当前房源的预选记录
770
                 QueryWrapper<TaPreselectionRecord> preselectionRecordQueryWrapper = new QueryWrapper<>();
770
                 QueryWrapper<TaPreselectionRecord> preselectionRecordQueryWrapper = new QueryWrapper<>();
771
                 preselectionRecordQueryWrapper.eq("sales_batch_id", taRaise.getSalesBatchId());
771
                 preselectionRecordQueryWrapper.eq("sales_batch_id", taRaise.getSalesBatchId());
772
-                preselectionRecordQueryWrapper.eq("building_id", taRaise.getBuildingId());
773
                 preselectionRecordQueryWrapper.eq("org_id", orgId);
772
                 preselectionRecordQueryWrapper.eq("org_id", orgId);
774
                 preselectionRecordQueryWrapper.eq("house_id", houseId);
773
                 preselectionRecordQueryWrapper.eq("house_id", houseId);
775
                 preselectionRecordQueryWrapper.eq("person_id", personId);
774
                 preselectionRecordQueryWrapper.eq("person_id", personId);

+ 4
- 1
src/main/java/com/huiju/estateagents/service/impl/TaRaiseRecordServiceImpl.java View File

250
         //把idcard字断更新进person表
250
         //把idcard字断更新进person表
251
         if (StringUtil.isEmpty(taPerson.getIdcard())) {
251
         if (StringUtil.isEmpty(taPerson.getIdcard())) {
252
             taPerson.setIdcard(taRaiseRecord.getIdcard());
252
             taPerson.setIdcard(taRaiseRecord.getIdcard());
253
-            taPersonMapper.updateById(taPerson);
253
+        }
254
+        if (StringUtil.isEmpty(taPerson.getName())) {
255
+            taPerson.setName(taRaiseRecord.getName());
254
         }
256
         }
255
 
257
 
258
+        taPersonMapper.updateById(taPerson);
256
     }
259
     }
257
 
260
 
258
     /**
261
     /**