|
@@ -8,6 +8,7 @@ import com.huiju.estateagents.common.CommConstant;
|
8
|
8
|
import com.huiju.estateagents.entity.*;
|
9
|
9
|
import com.huiju.estateagents.po.TaHousingResourcesPO;
|
10
|
10
|
import com.huiju.estateagents.service.*;
|
|
11
|
+import org.apache.commons.collections.CollectionUtils;
|
11
|
12
|
import org.apache.commons.lang3.StringUtils;
|
12
|
13
|
import org.slf4j.Logger;
|
13
|
14
|
import org.slf4j.LoggerFactory;
|
|
@@ -274,15 +275,18 @@ public class TaHousingResourcesController extends BaseController {
|
274
|
275
|
}
|
275
|
276
|
});
|
276
|
277
|
//我的认筹和锁定
|
277
|
|
- taRaiseHouseList.forEach(r -> {
|
278
|
|
- //我的认筹
|
279
|
|
- if (e.getHouseId().equals(r.getHouseId())) {
|
280
|
|
- e.setMineRaise("mine");
|
281
|
|
- if (CommConstant.HOUSE_LOCKING_STATUS_LOCKED.equals(e.getHouseLockingStatus()) && personId.equals(e.getHouseLockingPerson())) {
|
282
|
|
- e.setMineLocked("mine");
|
|
278
|
+ if (CollectionUtils.isNotEmpty(taRaiseRecordList)){
|
|
279
|
+ taRaiseHouseList.forEach(r -> {
|
|
280
|
+ //我的认筹
|
|
281
|
+ if (e.getHouseId().equals(r.getHouseId())) {
|
|
282
|
+ e.setMineRaise("mine");
|
|
283
|
+ if (CommConstant.HOUSE_LOCKING_STATUS_LOCKED.equals(e.getHouseLockingStatus()) && personId.equals(e.getHouseLockingPerson())) {
|
|
284
|
+ e.setMineLocked("mine");
|
|
285
|
+ }
|
283
|
286
|
}
|
284
|
|
- }
|
285
|
|
- });
|
|
287
|
+ });
|
|
288
|
+ }
|
|
289
|
+
|
286
|
290
|
|
287
|
291
|
//塞入户型信息
|
288
|
292
|
if (!StringUtils.isEmpty(e.getApartmentId())) {
|