瀏覽代碼

资料审核

change 3 年之前
父節點
當前提交
e23a7249e2

+ 86 - 0
zhongzheng-api/src/main/java/com/zhongzheng/controller/base/UserProfileStampController.java

@@ -0,0 +1,86 @@
+package com.zhongzheng.controller.base;
+
+import com.zhongzheng.common.annotation.Log;
+import com.zhongzheng.common.core.controller.BaseController;
+import com.zhongzheng.common.core.domain.AjaxResult;
+import com.zhongzheng.common.core.page.TableDataInfo;
+import com.zhongzheng.common.enums.BusinessType;
+import com.zhongzheng.common.utils.ServletUtils;
+import com.zhongzheng.framework.web.service.WxTokenService;
+import com.zhongzheng.modules.base.bo.UserProfileAddBo;
+import com.zhongzheng.modules.base.bo.UserProfileEditBo;
+import com.zhongzheng.modules.base.bo.UserProfileQueryBo;
+import com.zhongzheng.modules.base.service.IUserProfileService;
+import com.zhongzheng.modules.base.vo.UserProfileVo;
+import com.zhongzheng.modules.user.entity.ClientLoginUser;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.RequiredArgsConstructor;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+/**
+ * 填写资料审核Controller
+ * 
+ * @author ruoyi
+ * @date 2021-12-20
+ */
+@Api(value = "填写盖章审核控制器", tags = {"填写盖章审核控制器"})
+@RequiredArgsConstructor(onConstructor_ = @Autowired)
+@RestController
+@RequestMapping("/base/profileStamp")
+public class UserProfileStampController extends BaseController {
+
+    private final IUserProfileService iUserProfileService;
+
+    private final WxTokenService wxTokenService;
+
+    /**
+     * 新增填写资料审核
+     */
+    @ApiOperation("新增填写盖章审核")
+    @PostMapping()
+    public AjaxResult<Void> add(@RequestBody UserProfileAddBo bo) {
+        ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
+        bo.setUserId(loginUser.getUser().getUserId());
+        bo.setTypeStatus(2);
+        return toAjax(iUserProfileService.insertByAddBo(bo) ? 1 : 0);
+    }
+
+    /**
+     * 修改填写资料审核
+     */
+    @ApiOperation("修改填写盖章审核")
+    @PostMapping("edit")
+    public AjaxResult<Void> edit(@RequestBody UserProfileEditBo bo) {
+        ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
+        bo.setUserId(loginUser.getUser().getUserId());
+        bo.setTypeStatus(2);
+        return toAjax(iUserProfileService.updateByEditBo(bo) ? 1 : 0);
+    }
+
+    /**
+     * 获取填写资料审核详细信息
+     */
+    @ApiOperation("获取填写盖章审核详细信息")
+    @GetMapping("/getInfo")
+    public AjaxResult<UserProfileVo> getInfo(UserProfileQueryBo bo) {
+        ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
+        bo.setUserId(loginUser.getUser().getUserId());
+        bo.setTypeStatus(2L);
+        return AjaxResult.success(iUserProfileService.getInfo(bo));
+    }
+
+    @ApiOperation("导出盖章word")
+    @PostMapping("/addWord")
+    public AjaxResult<Void> addWord(@RequestBody UserProfileAddBo bo) {
+        ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
+        bo.setUserId(loginUser.getUser().getUserId());
+        String s = iUserProfileService.addWord(bo);
+        return AjaxResult.success(s);
+    }
+
+}

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/bo/UserProfileAddBo.java

@@ -49,7 +49,7 @@ public class UserProfileAddBo {
     @ApiModelProperty("当前状态 1为当前 2为审核记录")
     private Long currentStatus;
     /** 变更状态 0变更 1否 */
-    @ApiModelProperty("变更状态 0变更 1否")
+    @ApiModelProperty("变更状态 2变更 1否")
     private Integer changeStatus;
 
     /** 指派操作者 */

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/bo/UserProfileEditBo.java

@@ -55,7 +55,7 @@ public class UserProfileEditBo {
     private Long currentStatus;
 
     /** 变更状态 0变更 1否 */
-    @ApiModelProperty("变更状态 0变更 1否")
+    @ApiModelProperty("变更状态 2变更 1否")
     private Integer changeStatus;
 
     /** 指派操作者 */

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/bo/UserProfileQueryBo.java

@@ -64,7 +64,7 @@ public class UserProfileQueryBo extends BaseEntity {
 	@ApiModelProperty("当前状态 1为当前 2为审核记录")
 	private Long currentStatus;
 	/** 变更状态 0变更 1否 */
-	@ApiModelProperty("变更状态 0变更 1否")
+	@ApiModelProperty("变更状态 2变更 1否")
 	private Integer changeStatus;
 
 

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/domain/UserProfile.java

@@ -48,7 +48,7 @@ private static final long serialVersionUID=1L;
     private String createByName;
     /** 当前状态 1为当前 2为审核记录 */
     private Long currentStatus;
-    /** 变更状态 0变更 1否 */
+    /** 变更状态 2变更 1否 */
     private Integer changeStatus;
 
 

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/service/impl/UserProfileServiceImpl.java

@@ -105,7 +105,7 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
         UserProfile addProfile = BeanUtil.toBean(bo,UserProfile.class);
         addProfile.setCreateTime(DateUtils.getNowTime());
         addProfile.setUpdateTime(DateUtils.getNowTime());
-        addProfile.setStatus(2);
+        addProfile.setStatus(3);
         UserProfileVo userProfileVo = this.queryById(bo.getId());
         addProfile.setOneTime(userProfileVo.getOneTime());
         addProfile.setLastTime(DateUtils.getNowTime());

+ 2 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/vo/UserProfileVo.java

@@ -62,8 +62,8 @@ public class UserProfileVo {
 	@ApiModelProperty("当前状态 1为当前 2为审核记录")
 	private Long currentStatus;
 	/** 变更状态 0变更 1否 */
-	@Excel(name = "变更状态 0变更 1否")
-	@ApiModelProperty("变更状态 0变更 1否")
+	@Excel(name = "变更状态 2变更 1否")
+	@ApiModelProperty("变更状态 2变更 1否")
 	private Integer changeStatus;
 
 	/** 账号 */