1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- package com.zhongzheng.controller.base;
- import java.util.List;
- import java.util.Arrays;
- import lombok.RequiredArgsConstructor;
- import org.springframework.security.access.prepost.PreAuthorize;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.PutMapping;
- import org.springframework.web.bind.annotation.DeleteMapping;
- import org.springframework.web.bind.annotation.PathVariable;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import com.zhongzheng.common.annotation.Log;
- import com.zhongzheng.common.core.controller.BaseController;
- import com.zhongzheng.common.core.domain.AjaxResult;
- import com.zhongzheng.common.enums.BusinessType;
- import com.zhongzheng.modules.base.vo.ProfileTpUserVo;
- import com.zhongzheng.modules.base.bo.ProfileTpUserQueryBo;
- import com.zhongzheng.modules.base.bo.ProfileTpUserAddBo;
- import com.zhongzheng.modules.base.bo.ProfileTpUserEditBo;
- import com.zhongzheng.modules.base.service.IProfileTpUserService;
- import com.zhongzheng.common.utils.poi.ExcelUtil;
- import com.zhongzheng.common.core.page.TableDataInfo;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- /**
- * 填写资料审核Controller
- *
- * @author ruoyi
- * @date 2021-12-20
- */
- @Api(value = "填写资料审核控制器", tags = {"填写资料审核管理"})
- @RequiredArgsConstructor(onConstructor_ = @Autowired)
- @RestController
- @RequestMapping("/system/ProfileTpUser")
- public class ProfileTpUserController extends BaseController {
- private final IProfileTpUserService iProfileTpUserService;
- /**
- * 查询填写资料审核列表
- */
- @ApiOperation("查询填写资料审核列表")
- @PreAuthorize("@ss.hasPermi('system:user:list')")
- @GetMapping("/list")
- public TableDataInfo<ProfileTpUserVo> list(ProfileTpUserQueryBo bo) {
- startPage();
- List<ProfileTpUserVo> list = iProfileTpUserService.queryList(bo);
- return getDataTable(list);
- }
- /**
- * 获取填写资料审核详细信息
- */
- @ApiOperation("获取填写资料审核详细信息")
- @PreAuthorize("@ss.hasPermi('system:user:query')")
- @GetMapping("/{id}")
- public AjaxResult<ProfileTpUserVo> getInfo(@PathVariable("id" ) Long id) {
- return AjaxResult.success(iProfileTpUserService.queryById(id));
- }
- /**
- * 修改填写资料审核
- */
- @ApiOperation("修改填写资料审核")
- @PreAuthorize("@ss.hasPermi('system:user:edit')")
- @Log(title = "填写资料审核", businessType = BusinessType.UPDATE)
- @PostMapping()
- public AjaxResult<Void> edit(@RequestBody ProfileTpUserEditBo bo) {
- return toAjax(iProfileTpUserService.updateByEditBo(bo) ? 1 : 0);
- }
- }
|