|
@@ -2,6 +2,7 @@ package com.huiju.estateagents.controller;
|
2
|
2
|
|
3
|
3
|
|
4
|
4
|
import com.huiju.estateagents.base.ResponseBean;
|
|
5
|
+import com.huiju.estateagents.common.CommConstant;
|
5
|
6
|
import com.huiju.estateagents.common.JWTUtils;
|
6
|
7
|
import com.huiju.estateagents.entity.TaPerson;
|
7
|
8
|
import com.huiju.estateagents.entity.TaRecommendCustomer;
|
|
@@ -229,4 +230,32 @@ public class TaRecommendCustomerController extends BaseController {
|
229
|
230
|
}
|
230
|
231
|
}
|
231
|
232
|
|
|
233
|
+ /**
|
|
234
|
+ * 修改对象
|
|
235
|
+ * @return
|
|
236
|
+ */
|
|
237
|
+ @RequestMapping(value="/admin/customer/recommend/verify/{id}",method= RequestMethod.PUT)
|
|
238
|
+ public ResponseBean taRecommendCustomerVerify(@PathVariable String id,@RequestParam Integer verifyStatus, @RequestParam String verifyRemark){
|
|
239
|
+ ResponseBean responseBean = new ResponseBean();
|
|
240
|
+ try {
|
|
241
|
+ TaRecommendCustomer taRecommendCustomer = taRecommendCustomerService.getById(id);
|
|
242
|
+ if(taRecommendCustomer.getVerifyStatus() != CommConstant.VERIFY_READY){
|
|
243
|
+ taRecommendCustomer.setVerifyStatus(verifyStatus);
|
|
244
|
+ taRecommendCustomer.setVerifyRemark(verifyRemark);
|
|
245
|
+ if (taRecommendCustomerService.updateById(taRecommendCustomer)){
|
|
246
|
+ responseBean.addSuccess(taRecommendCustomer);
|
|
247
|
+ }else {
|
|
248
|
+ responseBean.addError("fail");
|
|
249
|
+ }
|
|
250
|
+ } else {
|
|
251
|
+ responseBean.addSuccess("客户已审核");
|
|
252
|
+ }
|
|
253
|
+
|
|
254
|
+ }catch (Exception e){
|
|
255
|
+ e.printStackTrace();
|
|
256
|
+ responseBean.addError(e.getMessage());
|
|
257
|
+ }
|
|
258
|
+ return responseBean;
|
|
259
|
+ }
|
|
260
|
+
|
232
|
261
|
}
|