|
|
@@ -3,6 +3,7 @@ package com.goafanti.Interview.controller;
|
|
|
import com.goafanti.Interview.bo.UpdateUserBo;
|
|
|
import com.goafanti.Interview.service.UserArchivesInterviewService;
|
|
|
import com.goafanti.common.bo.Result;
|
|
|
+import com.goafanti.common.constant.AFTConstants;
|
|
|
import com.goafanti.common.controller.BaseController;
|
|
|
import com.goafanti.common.model.UserArchivesInterview;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
@@ -86,14 +87,21 @@ public class UserArchivesInterviewController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 列表查询
|
|
|
+ * 客户档案面谈表列表查询
|
|
|
*
|
|
|
* @param in 参数
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/list")
|
|
|
- public Result<UserArchivesInterview> list(UserArchivesInterview in, Integer pageNo, Integer pageSize) {
|
|
|
- return new Result<>().data(this.userArchivesInterviewService.list(in, pageNo, pageSize));
|
|
|
+ public Result list(UserArchivesInterview in, Integer pageNo, Integer pageSize) {
|
|
|
+ Result res = new Result<>();
|
|
|
+ if (!TokenManager.hasRole(AFTConstants.SUPERADMIN)){
|
|
|
+ if (in.getUid()==null){
|
|
|
+ res.getError().add(buildError("客户ID不能为空"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return res.data(this.userArchivesInterviewService.list(in, pageNo, pageSize));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -119,5 +127,23 @@ public class UserArchivesInterviewController extends BaseController {
|
|
|
return res.data(this.userArchivesInterviewService.updateUser(in));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 客户档案面谈信息及其他免谈信息
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/selectByPrdid")
|
|
|
+ public Result selectByPrdid(Integer prdid) {
|
|
|
+ Result res = new Result<>();
|
|
|
+ if (!TokenManager.hasRole(AFTConstants.SUPERADMIN)){
|
|
|
+ if (prdid==null){
|
|
|
+ res.getError().add(buildError("客户ID不能为空"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return res.data(this.userArchivesInterviewService.selectByPrdid(prdid));
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|