diff --git a/src/main/java/com/lz/modules/flow/dao/FlowChartDetailRecordMapper.java b/src/main/java/com/lz/modules/flow/dao/FlowChartDetailRecordMapper.java new file mode 100644 index 00000000..9eeab0c2 --- /dev/null +++ b/src/main/java/com/lz/modules/flow/dao/FlowChartDetailRecordMapper.java @@ -0,0 +1,33 @@ +package com.lz.modules.flow.dao; +/** +*
+* 考核模板流程记录表 服务类 +*
+* +* @author quyixiao +* @since 2020-10-19 +*/ +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.lz.modules.flow.entity.FlowChartDetailRecord; +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +@Mapper +public interface FlowChartDetailRecordMapper extends BaseMapper+*
*考核模板流程记录表 +* @author quyixiao +* @since 2020-10-19 +*/ + +@Data +@TableName("lz_flow_chart_detail_record") +@ApiModel(value = "考核模板流程记录表") +public class FlowChartDetailRecord implements java.io.Serializable { + // + @TableId(value = "id", type = IdType.AUTO) + private Long id; + //是否删除状态,1:删除,0:有效 + @ApiModelProperty(value = "是否删除状态,1:删除,0:有效", name = "isDelete") + private Integer isDelete; + //创建时间 + @ApiModelProperty(value = "创建时间", name = "gmtCreate") + private Date gmtCreate; + //最后修改时间 + @ApiModelProperty(value = "最后修改时间", name = "gmtModified") + private Date gmtModified; + //flow_chart_id ,流程图表id + @ApiModelProperty(value = "flow_chart_id ,流程图表id", name = "chartId") + private Long chartId; + //考核组ID + @ApiModelProperty(value = "考核组ID", name = "evaluationGroupId") + private Long evaluationGroupId; + //0关闭,1开启 + @ApiModelProperty(value = "0关闭,1开启", name = "status") + private Integer status; + //操作者id集合,逗号隔开,当opt_type为0时才有值 + @ApiModelProperty(value = "操作者id集合,逗号隔开,当opt_type为0时才有值", name = "optIds") + private Long optIds; + //-1考核人员自己,0人员id,1一级主管,2二级主管.... + @ApiModelProperty(value = "-1考核人员自己,0人员id,1一级主管,2二级主管....", name = "optType") + private Integer optType; + //role id集合,逗号隔开 + @ApiModelProperty(value = "role id集合,逗号隔开", name = "roleIds") + private Long roleIds; + //步骤类型0:依次,1或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可以) + @ApiModelProperty(value = "步骤类型0:依次,1或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可以)", name = "stepType") + private Integer stepType; + /** + * + * @return + */ + public Long getId() { + return id; + } + /** + * + * @param id + */ + public void setId(Long id) { + this.id = id; + } + + /** + * 是否删除状态,1:删除,0:有效 + * @return + */ + public Integer getIsDelete() { + return isDelete; + } + /** + * 是否删除状态,1:删除,0:有效 + * @param isDelete + */ + public void setIsDelete(Integer isDelete) { + this.isDelete = isDelete; + } + + /** + * 创建时间 + * @return + */ + public Date getGmtCreate() { + return gmtCreate; + } + /** + * 创建时间 + * @param gmtCreate + */ + public void setGmtCreate(Date gmtCreate) { + this.gmtCreate = gmtCreate; + } + + /** + * 最后修改时间 + * @return + */ + public Date getGmtModified() { + return gmtModified; + } + /** + * 最后修改时间 + * @param gmtModified + */ + public void setGmtModified(Date gmtModified) { + this.gmtModified = gmtModified; + } + + /** + * flow_chart_id ,流程图表id + * @return + */ + public Long getChartId() { + return chartId; + } + /** + * flow_chart_id ,流程图表id + * @param chartId + */ + public void setChartId(Long chartId) { + this.chartId = chartId; + } + + /** + * 考核组ID + * @return + */ + public Long getEvaluationGroupId() { + return evaluationGroupId; + } + /** + * 考核组ID + * @param evaluationGroupId + */ + public void setEvaluationGroupId(Long evaluationGroupId) { + this.evaluationGroupId = evaluationGroupId; + } + + /** + * 0关闭,1开启 + * @return + */ + public Integer getStatus() { + return status; + } + /** + * 0关闭,1开启 + * @param status + */ + public void setStatus(Integer status) { + this.status = status; + } + + /** + * 操作者id集合,逗号隔开,当opt_type为0时才有值 + * @return + */ + public Long getOptIds() { + return optIds; + } + /** + * 操作者id集合,逗号隔开,当opt_type为0时才有值 + * @param optIds + */ + public void setOptIds(Long optIds) { + this.optIds = optIds; + } + + /** + * -1考核人员自己,0人员id,1一级主管,2二级主管.... + * @return + */ + public Integer getOptType() { + return optType; + } + /** + * -1考核人员自己,0人员id,1一级主管,2二级主管.... + * @param optType + */ + public void setOptType(Integer optType) { + this.optType = optType; + } + + /** + * role id集合,逗号隔开 + * @return + */ + public Long getRoleIds() { + return roleIds; + } + /** + * role id集合,逗号隔开 + * @param roleIds + */ + public void setRoleIds(Long roleIds) { + this.roleIds = roleIds; + } + + /** + * 步骤类型0:依次,1或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可以) + * @return + */ + public Integer getStepType() { + return stepType; + } + /** + * 步骤类型0:依次,1或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可以) + * @param stepType + */ + public void setStepType(Integer stepType) { + this.stepType = stepType; + } + + @Override + public String toString() { + return "FlowChartDetailRecord{" + + ",id=" + id + + ",isDelete=" + isDelete + + ",gmtCreate=" + gmtCreate + + ",gmtModified=" + gmtModified + + ",chartId=" + chartId + + ",evaluationGroupId=" + evaluationGroupId + + ",status=" + status + + ",optIds=" + optIds + + ",optType=" + optType + + ",roleIds=" + roleIds + + ",stepType=" + stepType + + "}"; + } +} \ No newline at end of file diff --git a/src/main/java/com/lz/modules/flow/model/FlowChartDetailRecordDto.java b/src/main/java/com/lz/modules/flow/model/FlowChartDetailRecordDto.java new file mode 100644 index 00000000..96b6820f --- /dev/null +++ b/src/main/java/com/lz/modules/flow/model/FlowChartDetailRecordDto.java @@ -0,0 +1,172 @@ +package com.lz.modules.flow.model; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +/** +*+*
*考核模板流程记录表 +* @author quyixiao +* @since 2020-10-19 +*/ + +@Data +@ApiModel(value = "考核模板流程记录表Dto") +public class FlowChartDetailRecordDto { + // + @ApiModelProperty(value = "", name = "id") + private Long id; + //flow_chart_id ,流程图表id + @ApiModelProperty(value = "flow_chart_id ,流程图表id", name = "chartId") + private Long chartId; + //考核组ID + @ApiModelProperty(value = "考核组ID", name = "evaluationGroupId") + private Long evaluationGroupId; + //0关闭,1开启 + @ApiModelProperty(value = "0关闭,1开启", name = "status") + private Integer status; + //操作者id集合,逗号隔开,当opt_type为0时才有值 + @ApiModelProperty(value = "操作者id集合,逗号隔开,当opt_type为0时才有值", name = "optIds") + private Long optIds; + //-1考核人员自己,0人员id,1一级主管,2二级主管.... + @ApiModelProperty(value = "-1考核人员自己,0人员id,1一级主管,2二级主管....", name = "optType") + private Integer optType; + //role id集合,逗号隔开 + @ApiModelProperty(value = "role id集合,逗号隔开", name = "roleIds") + private Long roleIds; + //步骤类型0:依次,1或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可以) + @ApiModelProperty(value = "步骤类型0:依次,1或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可以)", name = "stepType") + private Integer stepType; + /** + * + * @return + */ + public Long getId() { + return id; + } + /** + * + * @param id + */ + public void setId(Long id) { + this.id = id; + } + + /** + * flow_chart_id ,流程图表id + * @return + */ + public Long getChartId() { + return chartId; + } + /** + * flow_chart_id ,流程图表id + * @param chartId + */ + public void setChartId(Long chartId) { + this.chartId = chartId; + } + + /** + * 考核组ID + * @return + */ + public Long getEvaluationGroupId() { + return evaluationGroupId; + } + /** + * 考核组ID + * @param evaluationGroupId + */ + public void setEvaluationGroupId(Long evaluationGroupId) { + this.evaluationGroupId = evaluationGroupId; + } + + /** + * 0关闭,1开启 + * @return + */ + public Integer getStatus() { + return status; + } + /** + * 0关闭,1开启 + * @param status + */ + public void setStatus(Integer status) { + this.status = status; + } + + /** + * 操作者id集合,逗号隔开,当opt_type为0时才有值 + * @return + */ + public Long getOptIds() { + return optIds; + } + /** + * 操作者id集合,逗号隔开,当opt_type为0时才有值 + * @param optIds + */ + public void setOptIds(Long optIds) { + this.optIds = optIds; + } + + /** + * -1考核人员自己,0人员id,1一级主管,2二级主管.... + * @return + */ + public Integer getOptType() { + return optType; + } + /** + * -1考核人员自己,0人员id,1一级主管,2二级主管.... + * @param optType + */ + public void setOptType(Integer optType) { + this.optType = optType; + } + + /** + * role id集合,逗号隔开 + * @return + */ + public Long getRoleIds() { + return roleIds; + } + /** + * role id集合,逗号隔开 + * @param roleIds + */ + public void setRoleIds(Long roleIds) { + this.roleIds = roleIds; + } + + /** + * 步骤类型0:依次,1或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可以) + * @return + */ + public Integer getStepType() { + return stepType; + } + /** + * 步骤类型0:依次,1或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可以) + * @param stepType + */ + public void setStepType(Integer stepType) { + this.stepType = stepType; + } + + @Override + public String toString() { + return "FlowChartDetailRecordDto{" + + ",id=" + id + + ",chartId=" + chartId + + ",evaluationGroupId=" + evaluationGroupId + + ",status=" + status + + ",optIds=" + optIds + + ",optType=" + optType + + ",roleIds=" + roleIds + + ",stepType=" + stepType + + "}"; + } +} \ No newline at end of file diff --git a/src/main/java/com/lz/modules/flow/req/FlowChartDetailProcReq.java b/src/main/java/com/lz/modules/flow/req/FlowChartDetailProcReq.java deleted file mode 100644 index a4fd0a69..00000000 --- a/src/main/java/com/lz/modules/flow/req/FlowChartDetailProcReq.java +++ /dev/null @@ -1,130 +0,0 @@ -package com.lz.modules.flow.req; - -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.Data; - -import java.util.Date; - -/** -*-* 菜单权限表 -*
*流程图,lz_flow的父 -* @author quyixiao -* @since 2020-10-16 -*/ - - -@Data -@ApiModel(value = "节点小流程详情") -public class FlowChartDetailProcReq implements java.io.Serializable { - - @ApiModelProperty(value = "考核节点id", name = "charId") - private Long charId; - // - - // - @ApiModelProperty(value = "", name = "name") - private String name; - //flow_manager表中id - @ApiModelProperty(value = "flow_manager表中id", name = "processId") - private Long processId; - //是否可允许不启用节点 0不可,1可以 - @ApiModelProperty(value = "是否可允许不启用节点 0不可,1可以", name = "status") - private Integer status; - //1可配置细节,0不可配置细节,一般线下操作。比如执行中 - @ApiModelProperty(value = "1可配置细节,0不可配置细节,一般线下操作。比如执行中", name = "type") - private Integer type; - //执行步骤,第几步,从0开始 - @ApiModelProperty(value = "执行步骤,第几步,从0开始", name = "stepIndex") - private Integer stepIndex; - - - - /** - * - * @return - */ - public String getName() { - return name; - } - /** - * - * @param name - */ - public void setName(String name) { - this.name = name; - } - - /** - * flow_manager表中id - * @return - */ - public Long getProcessId() { - return processId; - } - /** - * flow_manager表中id - * @param processId - */ - public void setProcessId(Long processId) { - this.processId = processId; - } - - /** - * 是否可允许不启用节点 0不可,1可以 - * @return - */ - public Integer getStatus() { - return status; - } - /** - * 是否可允许不启用节点 0不可,1可以 - * @param status - */ - public void setStatus(Integer status) { - this.status = status; - } - - /** - * 1可配置细节,0不可配置细节,一般线下操作。比如执行中 - * @return - */ - public Integer getType() { - return type; - } - /** - * 1可配置细节,0不可配置细节,一般线下操作。比如执行中 - * @param type - */ - public void setType(Integer type) { - this.type = type; - } - - /** - * 执行步骤,第几步,从0开始 - * @return - */ - public Integer getStepIndex() { - return stepIndex; - } - /** - * 执行步骤,第几步,从0开始 - * @param stepIndex - */ - public void setStepIndex(Integer stepIndex) { - this.stepIndex = stepIndex; - } - - @Override - public String toString() { - return "FlowChart{" + - ",charId=" + charId + - ",name=" + name + - ",processId=" + processId + - ",status=" + status + - ",type=" + type + - ",stepIndex=" + stepIndex + - "}"; - } -} \ No newline at end of file diff --git a/src/main/java/com/lz/modules/flow/req/FlowChartDetailRecordReq.java b/src/main/java/com/lz/modules/flow/req/FlowChartDetailRecordReq.java new file mode 100644 index 00000000..57aa2ba9 --- /dev/null +++ b/src/main/java/com/lz/modules/flow/req/FlowChartDetailRecordReq.java @@ -0,0 +1,243 @@ +package com.lz.modules.flow.req; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import java.util.Date; +/** +*+* 菜单权限表 +*
*考核模板流程记录表 +* @author quyixiao +* @since 2020-10-19 +*/ + + +@Data +@ApiModel(value = "考核模板流程记录表Req") +public class FlowChartDetailRecordReq implements java.io.Serializable { + + @ApiModelProperty(value = "currPage", name = "当前页码") + private int currPage = 1; + @ApiModelProperty(value = "pageSize", name = "每页返回条数") + private int pageSize = 10; + @ApiModelProperty(value = "sort", name = "类型") + private String sort; + @ApiModelProperty(value = "order", name = "排序") + private String order; + // + private Long id; + //是否删除状态,1:删除,0:有效 + @ApiModelProperty(value = "是否删除状态,1:删除,0:有效", name = "isDelete") + private Integer isDelete; + //创建时间 + @ApiModelProperty(value = "创建时间", name = "gmtCreate") + private Date gmtCreate; + //最后修改时间 + @ApiModelProperty(value = "最后修改时间", name = "gmtModified") + private Date gmtModified; + //flow_chart_id ,流程图表id + @ApiModelProperty(value = "flow_chart_id ,流程图表id", name = "chartId") + private Long chartId; + //考核组ID + @ApiModelProperty(value = "考核组ID", name = "evaluationGroupId") + private Long evaluationGroupId; + //0关闭,1开启 + @ApiModelProperty(value = "0关闭,1开启", name = "status") + private Integer status; + //操作者id集合,逗号隔开,当opt_type为0时才有值 + @ApiModelProperty(value = "操作者id集合,逗号隔开,当opt_type为0时才有值", name = "optIds") + private Long optIds; + //-1考核人员自己,0人员id,1一级主管,2二级主管.... + @ApiModelProperty(value = "-1考核人员自己,0人员id,1一级主管,2二级主管....", name = "optType") + private Integer optType; + //role id集合,逗号隔开 + @ApiModelProperty(value = "role id集合,逗号隔开", name = "roleIds") + private Long roleIds; + //步骤类型0:依次,1或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可以) + @ApiModelProperty(value = "步骤类型0:依次,1或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可以)", name = "stepType") + private Integer stepType; + /** + * + * @return + */ + public Long getId() { + return id; + } + /** + * + * @param id + */ + public void setId(Long id) { + this.id = id; + } + + /** + * 是否删除状态,1:删除,0:有效 + * @return + */ + public Integer getIsDelete() { + return isDelete; + } + /** + * 是否删除状态,1:删除,0:有效 + * @param isDelete + */ + public void setIsDelete(Integer isDelete) { + this.isDelete = isDelete; + } + + /** + * 创建时间 + * @return + */ + public Date getGmtCreate() { + return gmtCreate; + } + /** + * 创建时间 + * @param gmtCreate + */ + public void setGmtCreate(Date gmtCreate) { + this.gmtCreate = gmtCreate; + } + + /** + * 最后修改时间 + * @return + */ + public Date getGmtModified() { + return gmtModified; + } + /** + * 最后修改时间 + * @param gmtModified + */ + public void setGmtModified(Date gmtModified) { + this.gmtModified = gmtModified; + } + + /** + * flow_chart_id ,流程图表id + * @return + */ + public Long getChartId() { + return chartId; + } + /** + * flow_chart_id ,流程图表id + * @param chartId + */ + public void setChartId(Long chartId) { + this.chartId = chartId; + } + + /** + * 考核组ID + * @return + */ + public Long getEvaluationGroupId() { + return evaluationGroupId; + } + /** + * 考核组ID + * @param evaluationGroupId + */ + public void setEvaluationGroupId(Long evaluationGroupId) { + this.evaluationGroupId = evaluationGroupId; + } + + /** + * 0关闭,1开启 + * @return + */ + public Integer getStatus() { + return status; + } + /** + * 0关闭,1开启 + * @param status + */ + public void setStatus(Integer status) { + this.status = status; + } + + /** + * 操作者id集合,逗号隔开,当opt_type为0时才有值 + * @return + */ + public Long getOptIds() { + return optIds; + } + /** + * 操作者id集合,逗号隔开,当opt_type为0时才有值 + * @param optIds + */ + public void setOptIds(Long optIds) { + this.optIds = optIds; + } + + /** + * -1考核人员自己,0人员id,1一级主管,2二级主管.... + * @return + */ + public Integer getOptType() { + return optType; + } + /** + * -1考核人员自己,0人员id,1一级主管,2二级主管.... + * @param optType + */ + public void setOptType(Integer optType) { + this.optType = optType; + } + + /** + * role id集合,逗号隔开 + * @return + */ + public Long getRoleIds() { + return roleIds; + } + /** + * role id集合,逗号隔开 + * @param roleIds + */ + public void setRoleIds(Long roleIds) { + this.roleIds = roleIds; + } + + /** + * 步骤类型0:依次,1或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可以) + * @return + */ + public Integer getStepType() { + return stepType; + } + /** + * 步骤类型0:依次,1或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可以) + * @param stepType + */ + public void setStepType(Integer stepType) { + this.stepType = stepType; + } + + @Override + public String toString() { + return "FlowChartDetailRecordReq{" + + ",id=" + id + + ",isDelete=" + isDelete + + ",gmtCreate=" + gmtCreate + + ",gmtModified=" + gmtModified + + ",chartId=" + chartId + + ",evaluationGroupId=" + evaluationGroupId + + ",status=" + status + + ",optIds=" + optIds + + ",optType=" + optType + + ",roleIds=" + roleIds + + ",stepType=" + stepType + + "}"; + } +} \ No newline at end of file diff --git a/src/main/java/com/lz/modules/flow/service/FlowChartDetailRecordService.java b/src/main/java/com/lz/modules/flow/service/FlowChartDetailRecordService.java new file mode 100644 index 00000000..c857159c --- /dev/null +++ b/src/main/java/com/lz/modules/flow/service/FlowChartDetailRecordService.java @@ -0,0 +1,33 @@ +package com.lz.modules.flow.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.lz.modules.flow.entity.FlowChartDetailRecord; + +/** +*+* 考核模板流程记录表 服务类 +*
+* +* @author quyixiao +* @since 2020-10-19 +*/ +public interface FlowChartDetailRecordService extends IService+* 考核模板流程记录表 服务类 +*
+* +* @author quyixiao +* @since 2020-10-19 +*/ + +@Service +public class FlowChartDetailRecordServiceImpl extends ServiceImpl