文件记录-提交-流程控制
This commit is contained in:
@@ -34,4 +34,33 @@ public class RecordConstants {
|
||||
/** 编辑 */
|
||||
public static final String EDIT = "可编辑";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 业务类型常量
|
||||
*/
|
||||
public static class BusinessType {
|
||||
/**
|
||||
* key
|
||||
*/
|
||||
public static final String BUSINESS_KEY = "jy_record_apply_bsn_type";
|
||||
/**
|
||||
* 分发
|
||||
*/
|
||||
public static final String DISTRIBUTION = "分发";
|
||||
/**
|
||||
* 查看申请
|
||||
*/
|
||||
public static final String VIEW_APPLY = "查看申请";
|
||||
/**
|
||||
* 作废
|
||||
*/
|
||||
public static final String INVALID = "作废";
|
||||
/**
|
||||
* 评审
|
||||
*/
|
||||
public static final String REVIEW = "评审";
|
||||
/** 文件提交 */
|
||||
public static final String RECORD_SUBMIT = "文件提交";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,40 +1,35 @@
|
||||
package com.zt.plat.module.qms.resource.record.controller.admin.recordapply;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.framework.datapermission.core.annotation.DeptDataPermissionIgnore;
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordapply.vo.RecordApplyPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordapply.vo.RecordApplyRespVO;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordapply.vo.RecordApplySaveReqVO;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.business.annotation.FileUploadController;
|
||||
import com.zt.plat.framework.business.controller.AbstractFileUploadController;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.qms.resource.record.dal.dataobject.recordapply.RecordApplyDO;
|
||||
import com.zt.plat.module.qms.resource.record.service.recordapply.RecordApplyService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.validation.Valid;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
@Tag(name = "管理后台 - 文件记录通用申请")
|
||||
@RestController
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.zt.plat.module.qms.resource.record.controller.admin.recordrecord;
|
||||
import com.zt.plat.framework.datapermission.core.annotation.DeptDataPermissionIgnore;
|
||||
import com.zt.plat.module.qms.common.service.BusinessFileService;
|
||||
import com.zt.plat.module.qms.resource.clientManage.controller.vo.VersionManagementRespVO;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordapply.vo.RecordApplyRespVO;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordapply.vo.RecordApplySaveReqVO;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordpermission.vo.RecordPermissionPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordpermission.vo.RecordPermissionRespVO;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordrecord.vo.RecordRecordPageReqVO;
|
||||
@@ -103,6 +105,13 @@ public class RecordRecordController extends AbstractFileUploadController impleme
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@PostMapping("/submitRecordApply")
|
||||
@Operation(summary = "提交流程申请")
|
||||
public CommonResult<RecordRecordRespVO> submitRecordApply(@RequestBody RecordRecordSaveReqVO param) {
|
||||
return recordRecordService.submitRecordApply(param);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得文件、模板、记录")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
|
||||
@@ -60,6 +60,15 @@ public class RecordRecordPageReqVO extends PageParam {
|
||||
@Schema(description = "是否长期有效")
|
||||
private Integer permanently;
|
||||
|
||||
@Schema(description = "业务状态")
|
||||
private String businessStatus;
|
||||
|
||||
@Schema(description = "流程实例Id")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "是否需要提交(用来判断文件是否需要走流程)")
|
||||
private String submitFlag;
|
||||
|
||||
@Schema(description = "过期日期")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] expirationDate;
|
||||
|
||||
@@ -89,6 +89,18 @@ public class RecordRecordRespVO {
|
||||
@Dict(dicCode = "yes_or_no")
|
||||
private Integer permanently;
|
||||
|
||||
@Schema(description = "业务状态")
|
||||
@ExcelProperty("业务状态")
|
||||
private String businessStatus;
|
||||
|
||||
@Schema(description = "流程实例Id")
|
||||
@ExcelProperty("流程实例Id")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "是否需要提交(用来判断文件是否需要走流程)")
|
||||
@ExcelProperty("是否需要提交(用来判断文件是否需要走流程)")
|
||||
private String submitFlag;
|
||||
|
||||
@Schema(description = "过期日期")
|
||||
@ExcelProperty("过期日期")
|
||||
private LocalDateTime expirationDate;
|
||||
|
||||
@@ -67,6 +67,15 @@ public class RecordRecordSaveReqVO {
|
||||
@Schema(description = "是否长期有效", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Integer permanently;
|
||||
|
||||
@Schema(description = "业务状态")
|
||||
private String businessStatus;
|
||||
|
||||
@Schema(description = "流程实例Id")
|
||||
private String flowInstanceId;
|
||||
|
||||
@Schema(description = "是否需要提交(用来判断文件是否需要走流程)")
|
||||
private String submitFlag;
|
||||
|
||||
@Schema(description = "过期日期")
|
||||
private LocalDateTime expirationDate;
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ public class RecordApplyDO extends BusinessBaseDO {
|
||||
* 部门名称
|
||||
*/
|
||||
@TableField("APL_DEPT_NAME")
|
||||
private Long applyDepartmentName;
|
||||
private String applyDepartmentName;
|
||||
/**
|
||||
* 评审范围
|
||||
*/
|
||||
|
||||
@@ -108,6 +108,21 @@ public class RecordRecordDO extends BusinessBaseDO {
|
||||
*/
|
||||
@TableField("PMNT")
|
||||
private String permanently;
|
||||
/**
|
||||
* 业务状态
|
||||
*/
|
||||
@TableField("BSN_STS")
|
||||
private String businessStatus;
|
||||
/**
|
||||
* 流程实例Id
|
||||
*/
|
||||
@TableField("FLW_INSC_ID")
|
||||
private String flowInstanceId;
|
||||
/**
|
||||
* 是否需要提交(用来判断文件是否需要走流程)
|
||||
*/
|
||||
@TableField("SBM_FLG")
|
||||
private String submitFlag;
|
||||
/**
|
||||
* 过期日期
|
||||
*/
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.zt.plat.module.qms.resource.record.service.recordrecord;
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordapply.vo.RecordApplyRespVO;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordapply.vo.RecordApplySaveReqVO;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordrecord.vo.RecordRecordPageReqVO;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordrecord.vo.RecordRecordRespVO;
|
||||
import com.zt.plat.module.qms.resource.record.controller.admin.recordrecord.vo.RecordRecordSaveReqVO;
|
||||
@@ -70,4 +72,14 @@ public interface RecordRecordService {
|
||||
CommonResult<String> justRecordPermission(Long recordId);
|
||||
|
||||
List<RecordPermissionDO> getMatchedPermissionList(Long parentCategoryId);
|
||||
|
||||
/**
|
||||
* 提交申请-发起流程
|
||||
*
|
||||
* @param param 参数
|
||||
* @return 申请信息
|
||||
*/
|
||||
CommonResult<RecordRecordRespVO> submitRecordApply(RecordRecordSaveReqVO param);
|
||||
|
||||
RecordRecordDO getRecordById(Long id);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user