|
@@ -158,10 +158,10 @@ public class TaHousingResourcesServiceImpl extends ServiceImpl<TaHousingResource
|
158
|
158
|
|
159
|
159
|
// 获取该用户是否预选房源信息
|
160
|
160
|
TaPreselectionRecord taPreselectionRecord = taPreselectionRecordMapper.getRecordByPersonIdAndHouseId(personId, houseId);
|
161
|
|
- if (taPreselectionRecord == null) {
|
162
|
|
- resourcesPO.setIsPreselect(false);
|
163
|
|
- } else {
|
|
161
|
+ if (taPreselectionRecord != null && taPreselectionRecord.getStatus() == 1) {
|
164
|
162
|
resourcesPO.setIsPreselect(true);
|
|
163
|
+ } else {
|
|
164
|
+ resourcesPO.setIsPreselect(false);
|
165
|
165
|
}
|
166
|
166
|
|
167
|
167
|
// 获取户型图片列表
|
|
@@ -380,7 +380,7 @@ public class TaHousingResourcesServiceImpl extends ServiceImpl<TaHousingResource
|
380
|
380
|
String floorName = row.getCell(3).getStringCellValue().trim();
|
381
|
381
|
String roomName = row.getCell(4).getStringCellValue().trim();
|
382
|
382
|
BigDecimal price = BigDecimal.valueOf(row.getCell(5).getNumericCellValue());
|
383
|
|
- Integer heat = Integer.valueOf(String.valueOf(row.getCell(6).getNumericCellValue()).substring(0, 1));
|
|
383
|
+ Integer heat = Integer.valueOf((row.getCell(6).getNumericCellValue() + "").substring(0, 1));
|
384
|
384
|
Integer status = row.getCell(7).getStringCellValue().trim().equals("是") ? 1 : 0;
|
385
|
385
|
|
386
|
386
|
int currentRow = j + 1;
|