|
@@ -146,13 +146,13 @@ public class TaPreselectionRecordServiceImpl extends ServiceImpl<TaPreselectionR
|
146
|
146
|
|
147
|
147
|
@Override
|
148
|
148
|
@Transactional
|
149
|
|
- public ResponseBean taPreselectionRecordCancel(String houseId, String preselectionRecordId) {
|
150
|
|
- logger.info("taPreselectionRecordCancel 接收参数:houseId:{},preselectionRecordId:{}", houseId, preselectionRecordId);
|
|
149
|
+ public ResponseBean taPreselectionRecordCancel(String personId, String houseId) {
|
|
150
|
+ logger.info("taPreselectionRecordCancel 接收参数:personId:{},houseId:{}", personId, houseId);
|
151
|
151
|
|
152
|
152
|
ResponseBean responseBean = new ResponseBean<>();
|
153
|
153
|
// 校验是否已经取消
|
154
|
|
- TaPreselectionRecord preselectionRecord = getById(preselectionRecordId);
|
155
|
|
- if (preselectionRecord == null || 1 != preselectionRecord.getStatus()) {
|
|
154
|
+ TaPreselectionRecord preselectionRecord = taPreselectionRecordMapper.getRecordByPersonIdAndHouseId(personId, houseId);
|
|
155
|
+ if (preselectionRecord == null) {
|
156
|
156
|
responseBean.addError("未预选过此房源,或已取消预选此房源");
|
157
|
157
|
return responseBean;
|
158
|
158
|
}
|