|
|
@@ -1,12 +1,19 @@
|
|
|
package com.fs.app.controller;
|
|
|
|
|
|
+import com.fs.common.annotation.Log;
|
|
|
+import com.fs.common.core.domain.AjaxResult;
|
|
|
import com.fs.common.core.domain.R;
|
|
|
+import com.fs.common.enums.BusinessType;
|
|
|
import com.fs.course.param.CollectionInfoConfirmParam;
|
|
|
import com.fs.course.vo.FsUserInfoCollectionUVO;
|
|
|
+import com.fs.framework.security.SecurityUtils;
|
|
|
+import com.fs.hisStore.domain.FsUserInformationCollection;
|
|
|
+import com.fs.hisStore.param.FsUserInformationCollectionParam;
|
|
|
import com.fs.hisStore.service.IFsUserInformationCollectionService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@Api("用户信息采集接口")
|
|
|
@@ -32,4 +39,50 @@ public class UserInfoCollectionController extends AppBaseController {
|
|
|
param.setUserId(Long.parseLong(getUserId()));
|
|
|
return userInformationCollectionService.userConfirm(param);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取用户信息采集详细信息
|
|
|
+ */
|
|
|
+ @ApiOperation("获取用户信息采集详细信息")
|
|
|
+ @GetMapping(value = "/detail")
|
|
|
+ public R detail(FsUserInformationCollection param)
|
|
|
+ {
|
|
|
+ return R.ok().put("data", userInformationCollectionService.getInfo(param));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增用户信息采集
|
|
|
+ */
|
|
|
+ @ApiOperation("新增用户信息采集")
|
|
|
+ @Log(title = "用户信息采集", businessType = BusinessType.INSERT)
|
|
|
+ @PostMapping("/add")
|
|
|
+ public R add(@RequestBody FsUserInformationCollectionParam fsUserInformationCollection)
|
|
|
+ {
|
|
|
+ Long l = userInformationCollectionService.insertFsUserInformationCollection(fsUserInformationCollection);
|
|
|
+ if (l > 0) {
|
|
|
+ return R.ok();
|
|
|
+
|
|
|
+ } else {
|
|
|
+ return R.error();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改用户信息采集
|
|
|
+ */
|
|
|
+ @ApiOperation("修改用户信息采集")
|
|
|
+ @Log(title = "用户信息采集", businessType = BusinessType.UPDATE)
|
|
|
+ @PutMapping("/edit")
|
|
|
+ public R edit(@RequestBody FsUserInformationCollectionParam fsUserInformationCollection)
|
|
|
+ {
|
|
|
+
|
|
|
+ Long l = userInformationCollectionService.updateFsUserInformationCollection(fsUserInformationCollection);
|
|
|
+ if (l > 0) {
|
|
|
+ return R.ok();
|
|
|
+
|
|
|
+ } else {
|
|
|
+ return R.error();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|