|
|
@@ -37,12 +37,17 @@ public class UserArchivesInterviewController extends BaseController {
|
|
|
/**
|
|
|
* 新增数据
|
|
|
*
|
|
|
- * @param userArchivesInterview 实体
|
|
|
+ * @param in 实体
|
|
|
* @return 新增结果
|
|
|
*/
|
|
|
@PostMapping("/add")
|
|
|
- public Result add(UserArchivesInterview userArchivesInterview) {
|
|
|
- return new Result<>().data(this.userArchivesInterviewService.insert(userArchivesInterview));
|
|
|
+ public Result add(UserArchivesInterview in) {
|
|
|
+ Result res = new Result<>();
|
|
|
+ if (in.getUid()==null){
|
|
|
+ res.getError().add(buildError("客户ID不能为空"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ return res.data(this.userArchivesInterviewService.insert(in));
|
|
|
}
|
|
|
|
|
|
|