傅行帆 před 5 roky
rodič
revize
a42546dcb2

+ 0
- 1
src/main/java/com/huiju/estateagents/service/impl/TaHousingResourcesServiceImpl.java Zobrazit soubor

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

+ 4
- 1
src/main/java/com/huiju/estateagents/service/impl/TaRaiseRecordServiceImpl.java Zobrazit soubor

@@ -250,9 +250,12 @@ public class TaRaiseRecordServiceImpl extends ServiceImpl<TaRaiseRecordMapper, T
250 250
         //把idcard字断更新进person表
251 251
         if (StringUtil.isEmpty(taPerson.getIdcard())) {
252 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
     /**