|  |  | 
 |  |  | import com.doumee.core.constants.OperaType; | 
 |  |  | import com.doumee.core.model.PageData; | 
 |  |  | import com.doumee.core.model.PageWrap; | 
 |  |  | import com.doumee.core.utils.Constants; | 
 |  |  | import com.doumee.dao.business.model.Member; | 
 |  |  | import com.doumee.dao.system.dto.CreateSystemUserDTO; | 
 |  |  | import com.doumee.dao.system.dto.CreateUserRoleDTO; | 
 |  |  | import com.doumee.dao.system.dto.QuerySystemUserDTO; | 
 |  |  | 
 |  |  |         systemUserBiz.create(systemUser); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Trace(withRequestParameters = false) | 
 |  |  |     @PreventRepeat | 
 |  |  |     @ApiOperation("新建企业或者商户账号") | 
 |  |  | 
 |  |  |     public ApiResponse<PageData<SystemUserListVO>> findPage (@RequestBody PageWrap<QuerySystemUserDTO> pageWrap) { | 
 |  |  |         return ApiResponse.success(systemUserService.findPage(pageWrap)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("分页查询") | 
 |  |  |     @PostMapping("/pageCompany") | 
 |  |  |     @RequiresPermissions("system:user:query") | 
 |  |  | 
 |  |  |         return ApiResponse.success(systemUserService.findById(id)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("设置或取消主管") | 
 |  |  |     @PostMapping("/updateHead") | 
 |  |  |     @RequiresPermissions("system:user:query") | 
 |  |  |     public ApiResponse updateHead(@RequestBody SystemUser systemUser){ | 
 |  |  |         systemUserService.updateHead(systemUser); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |