Explorar el Código

refactor(contract): 租赁合同确认签署功能代码调整

-移除不必要的注释
-恢复并保留租赁信息保存逻辑
林仔 hace 10 meses
padre
commit
7b57c7062a

+ 2 - 2
src/main/java/com/zksy/property/service/impl/AContractInfoServiceImpl.java

@@ -100,7 +100,7 @@ public class AContractInfoServiceImpl extends ServiceImpl<AContractInfoMapper, A
             resPath = fillContractData(bo, aSimplifiedHouseInfo.getAssetType());
         }
 
-        /*aSimplifiedHouseInfo.setStatus("已租");
+        aSimplifiedHouseInfo.setStatus("已租");
         aSimplifiedHouseInfoService.updateById(aSimplifiedHouseInfo);
 
         ATenantInfo aTenantInfo = new ATenantInfo();
@@ -113,7 +113,7 @@ public class AContractInfoServiceImpl extends ServiceImpl<AContractInfoMapper, A
         aTenantInfo.setSimplifiedHouseId(dto.getHouseId());
         aTenantInfo.setCreateTime(LocalDateTime.now());
         aTenantInfo.setUpdateTime(LocalDateTime.now());
-        aTenantInfoService.save(aTenantInfo);*/
+        aTenantInfoService.save(aTenantInfo);
 
         return resPath;
     }