ProfileTpUserController.java 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. package com.zhongzheng.controller.base;
  2. import java.util.List;
  3. import java.util.Arrays;
  4. import lombok.RequiredArgsConstructor;
  5. import org.springframework.security.access.prepost.PreAuthorize;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.web.bind.annotation.GetMapping;
  8. import org.springframework.web.bind.annotation.PostMapping;
  9. import org.springframework.web.bind.annotation.PutMapping;
  10. import org.springframework.web.bind.annotation.DeleteMapping;
  11. import org.springframework.web.bind.annotation.PathVariable;
  12. import org.springframework.web.bind.annotation.RequestBody;
  13. import org.springframework.web.bind.annotation.RequestMapping;
  14. import org.springframework.web.bind.annotation.RestController;
  15. import com.zhongzheng.common.annotation.Log;
  16. import com.zhongzheng.common.core.controller.BaseController;
  17. import com.zhongzheng.common.core.domain.AjaxResult;
  18. import com.zhongzheng.common.enums.BusinessType;
  19. import com.zhongzheng.modules.base.vo.ProfileTpUserVo;
  20. import com.zhongzheng.modules.base.bo.ProfileTpUserQueryBo;
  21. import com.zhongzheng.modules.base.bo.ProfileTpUserAddBo;
  22. import com.zhongzheng.modules.base.bo.ProfileTpUserEditBo;
  23. import com.zhongzheng.modules.base.service.IProfileTpUserService;
  24. import com.zhongzheng.common.utils.poi.ExcelUtil;
  25. import com.zhongzheng.common.core.page.TableDataInfo;
  26. import io.swagger.annotations.Api;
  27. import io.swagger.annotations.ApiOperation;
  28. /**
  29. * 填写资料审核Controller
  30. *
  31. * @author ruoyi
  32. * @date 2021-12-20
  33. */
  34. @Api(value = "填写资料审核控制器", tags = {"填写资料审核管理"})
  35. @RequiredArgsConstructor(onConstructor_ = @Autowired)
  36. @RestController
  37. @RequestMapping("/system/ProfileTpUser")
  38. public class ProfileTpUserController extends BaseController {
  39. private final IProfileTpUserService iProfileTpUserService;
  40. /**
  41. * 查询填写资料审核列表
  42. */
  43. @ApiOperation("查询填写资料审核列表")
  44. @PreAuthorize("@ss.hasPermi('system:user:list')")
  45. @GetMapping("/list")
  46. public TableDataInfo<ProfileTpUserVo> list(ProfileTpUserQueryBo bo) {
  47. startPage();
  48. List<ProfileTpUserVo> list = iProfileTpUserService.queryList(bo);
  49. return getDataTable(list);
  50. }
  51. /**
  52. * 获取填写资料审核详细信息
  53. */
  54. @ApiOperation("获取填写资料审核详细信息")
  55. @PreAuthorize("@ss.hasPermi('system:user:query')")
  56. @GetMapping("/{id}")
  57. public AjaxResult<ProfileTpUserVo> getInfo(@PathVariable("id" ) Long id) {
  58. return AjaxResult.success(iProfileTpUserService.queryById(id));
  59. }
  60. /**
  61. * 修改填写资料审核
  62. */
  63. @ApiOperation("修改填写资料审核")
  64. @PreAuthorize("@ss.hasPermi('system:user:edit')")
  65. @Log(title = "填写资料审核", businessType = BusinessType.UPDATE)
  66. @PostMapping()
  67. public AjaxResult<Void> edit(@RequestBody ProfileTpUserEditBo bo) {
  68. return toAjax(iProfileTpUserService.updateByEditBo(bo) ? 1 : 0);
  69. }
  70. }