|
@@ -99,7 +99,7 @@ public class TaPreselectionRecordServiceImpl extends ServiceImpl<TaPreselectionR
|
99
|
99
|
// 校验用户是否已经预选房源
|
100
|
100
|
TaPreselectionRecord record = taPreselectionRecordMapper
|
101
|
101
|
.getRecordByPersonIdAndHouseId(taPreselectionRecord.getPersonId(), taPreselectionRecord.getHouseId());
|
102
|
|
- if (record != null && 1 == record.getStatus()) {
|
|
102
|
+ if (record != null) {
|
103
|
103
|
responseBean.addError("已预选过此房源,请到选房记录中查看。");
|
104
|
104
|
return responseBean;
|
105
|
105
|
}
|
|
@@ -146,12 +146,12 @@ public class TaPreselectionRecordServiceImpl extends ServiceImpl<TaPreselectionR
|
146
|
146
|
|
147
|
147
|
@Override
|
148
|
148
|
@Transactional
|
149
|
|
- public ResponseBean taPreselectionRecordCancel(String personId, String houseId) {
|
150
|
|
- logger.info("taPreselectionRecordCancel 接收参数:personId:{},houseId:{}", personId, houseId);
|
|
149
|
+ public ResponseBean taPreselectionRecordCancel(String houseId, String preselectionRecordId) {
|
|
150
|
+ logger.info("taPreselectionRecordCancel 接收参数:houseId:{},preselectionRecordId:{}", houseId, preselectionRecordId);
|
151
|
151
|
|
152
|
152
|
ResponseBean responseBean = new ResponseBean<>();
|
153
|
153
|
// 校验是否已经取消
|
154
|
|
- TaPreselectionRecord preselectionRecord = taPreselectionRecordMapper.getRecordByPersonIdAndHouseId(personId, houseId);
|
|
154
|
+ TaPreselectionRecord preselectionRecord = getById(preselectionRecordId);
|
155
|
155
|
if (preselectionRecord == null || 1 != preselectionRecord.getStatus()) {
|
156
|
156
|
responseBean.addError("未预选过此房源,或已取消预选此房源");
|
157
|
157
|
return responseBean;
|
|
@@ -181,13 +181,6 @@ public class TaPreselectionRecordServiceImpl extends ServiceImpl<TaPreselectionR
|
181
|
181
|
return responseBean;
|
182
|
182
|
}
|
183
|
183
|
|
184
|
|
- @Override
|
185
|
|
- public TaPreselectionRecord checkPreselect(String personId, String houseId) {
|
186
|
|
- logger.info("checkPreselect 接收参数:personId:{},houseId:{}", personId, houseId);
|
187
|
|
-
|
188
|
|
- return taPreselectionRecordMapper.getRecordByPersonIdAndHouseId(personId, houseId);
|
189
|
|
- }
|
190
|
|
-
|
191
|
184
|
@Override
|
192
|
185
|
public ResponseBean selectPreSelectRecordList(Integer pageNum, Integer pageSize, String salesBatchId, Integer houseId, Integer orgId, String phone, String apartmentId, Integer status) {
|
193
|
186
|
Page page = new Page(pageNum, pageSize);
|