| 
					
				 | 
			
			
				@@ -1,14 +1,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.fs.app.controller; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.alibaba.fastjson.JSON; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.app.annotation.Login; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.fs.app.param.FsUserTagUpdateParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.fs.app.param.FsUserUpdateParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.app.utils.ValidateUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.common.core.domain.R; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.common.core.domain.ResponseResult; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.fs.common.exception.ServiceException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.company.domain.CompanyUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.company.service.ICompanyTagUserService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.company.service.ICompanyUserService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.company.vo.CompanyQueryVo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.fs.store.domain.FsUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.store.param.h5.FsUserPageListParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.store.param.h5.TagListParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.store.service.IFsUserService; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -18,16 +23,19 @@ import com.github.pagehelper.PageInfo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.Api; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiOperation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import lombok.extern.slf4j.Slf4j; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import javax.validation.Valid; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.text.SimpleDateFormat; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.time.LocalDate; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.Objects; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@Slf4j 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Api(tags = "用户会员相关接口") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RestController 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @RequestMapping("/app/fs/user") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -189,4 +197,28 @@ public class FsUserController extends AppBaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return ResponseResult.ok(list); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Login 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation("修改用户备注、姓名") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/changeUserInfo") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ResponseResult<Object> changeUserInfo(@Valid @RequestBody FsUserUpdateParam param) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        log.debug("修改用户备注、姓名 param:{}", JSON.toJSONString(param)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        FsUser fsUser = fsUserService.selectFsUserById(param.getFsUserId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (Objects.isNull(fsUser)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            throw new ServiceException("用户不存在"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fsUser.setUsername(param.getUserName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fsUser.setRemark(param.getRemark()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fsUserService.updateFsUser(fsUser); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return ResponseResult.ok(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Login 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiOperation("修改用户标签") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @PostMapping("/changeUserTags") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public ResponseResult<Object> changeUserTags(@Valid @RequestBody FsUserTagUpdateParam param) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        companyTagUserService.changeUserTags(param.getFsUserId(), param.getTagIds()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return ResponseResult.ok(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |