|
@@ -8,6 +8,7 @@ import com.yunzhi.marketing.base.ResponseBean;
|
8
|
8
|
import com.yunzhi.marketing.entity.TaPerson;
|
9
|
9
|
import com.yunzhi.marketing.service.ITaPersonService;
|
10
|
10
|
import com.yunzhi.marketing.xlk.dto.SearchHouseDTO;
|
|
11
|
+import com.yunzhi.marketing.xlk.dto.SearchHouseReplayDTO;
|
11
|
12
|
import com.yunzhi.marketing.xlk.entity.Curriculum;
|
12
|
13
|
import com.yunzhi.marketing.xlk.entity.SearchHouse;
|
13
|
14
|
import com.yunzhi.marketing.xlk.service.ISearchHouseService;
|
|
@@ -157,4 +158,35 @@ public class SearchHouseController extends BaseController {
|
157
|
158
|
}
|
158
|
159
|
return responseBean;
|
159
|
160
|
}
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+ /**
|
|
164
|
+ * 帮我找房回访接口
|
|
165
|
+ * @param id 实体ID
|
|
166
|
+ * @param searchHouseReplayDTO 实体对象
|
|
167
|
+ * @return
|
|
168
|
+ */
|
|
169
|
+ @ApiOperation(value = "admin-帮我找房回访接口", notes = "admin-帮我找房回访接口")
|
|
170
|
+ @RequestMapping(value="/admin/reply/{id}",method= RequestMethod.PUT)
|
|
171
|
+ public ResponseBean searchHouseReply(@PathVariable String id,
|
|
172
|
+ @RequestBody SearchHouseReplayDTO searchHouseReplayDTO, @RequestHeader("authorization") String token, HttpServletRequest request){
|
|
173
|
+ ResponseBean responseBean = new ResponseBean();
|
|
174
|
+ try {
|
|
175
|
+ SearchHouse searchHouse = new SearchHouse();
|
|
176
|
+ searchHouse.setId(id);
|
|
177
|
+ searchHouse.setAuditRemark(searchHouseReplayDTO.getAuditRemark());
|
|
178
|
+ searchHouse.setStatus(searchHouseReplayDTO.getStatus());
|
|
179
|
+ searchHouse.setUpdatedTime(LocalDateTime.now());
|
|
180
|
+ if (iSearchHouseService.updateById(searchHouse)){
|
|
181
|
+ responseBean.addSuccess(searchHouse);
|
|
182
|
+ }else {
|
|
183
|
+ responseBean.addError("fail");
|
|
184
|
+ }
|
|
185
|
+ }catch (Exception e){
|
|
186
|
+ e.printStackTrace();
|
|
187
|
+ logger.error("searchHouseUpdate -=- {}",e.toString());
|
|
188
|
+ responseBean.addError(e.getMessage());
|
|
189
|
+ }
|
|
190
|
+ return responseBean;
|
|
191
|
+ }
|
160
|
192
|
}
|