集成knife4j-spring-ui说明文档
This commit is contained in:
parent
e5a72e8351
commit
d024b7b3ac
9
pom.xml
9
pom.xml
@ -33,7 +33,7 @@
|
|||||||
<qiniu.version>7.2.23</qiniu.version>
|
<qiniu.version>7.2.23</qiniu.version>
|
||||||
<aliyun.oss.version>2.8.3</aliyun.oss.version>
|
<aliyun.oss.version>2.8.3</aliyun.oss.version>
|
||||||
<qcloud.cos.version>4.4</qcloud.cos.version>
|
<qcloud.cos.version>4.4</qcloud.cos.version>
|
||||||
<swagger.version>2.7.0</swagger.version>
|
<swagger.version>2.9.2</swagger.version>
|
||||||
<joda.time.version>2.9.9</joda.time.version>
|
<joda.time.version>2.9.9</joda.time.version>
|
||||||
<gson.version>2.8.5</gson.version>
|
<gson.version>2.8.5</gson.version>
|
||||||
<fastjson.version>1.2.60</fastjson.version>
|
<fastjson.version>1.2.60</fastjson.version>
|
||||||
@ -163,6 +163,7 @@
|
|||||||
<artifactId>kaptcha</artifactId>
|
<artifactId>kaptcha</artifactId>
|
||||||
<version>${kaptcha.version}</version>
|
<version>${kaptcha.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.springfox</groupId>
|
<groupId>io.springfox</groupId>
|
||||||
<artifactId>springfox-swagger2</artifactId>
|
<artifactId>springfox-swagger2</artifactId>
|
||||||
@ -173,6 +174,12 @@
|
|||||||
<artifactId>springfox-swagger-ui</artifactId>
|
<artifactId>springfox-swagger-ui</artifactId>
|
||||||
<version>${swagger.version}</version>
|
<version>${swagger.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.xiaoymin</groupId>
|
||||||
|
<artifactId>knife4j-spring-ui</artifactId>
|
||||||
|
<version>2.0.4</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.qiniu</groupId>
|
<groupId>com.qiniu</groupId>
|
||||||
<artifactId>qiniu-java-sdk</artifactId>
|
<artifactId>qiniu-java-sdk</artifactId>
|
||||||
|
|||||||
@ -9,6 +9,7 @@ package com.lz.modules.flow.dao;
|
|||||||
*/
|
*/
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
import com.lz.modules.flow.entity.FlowChart;
|
import com.lz.modules.flow.entity.FlowChart;
|
||||||
|
import com.lz.modules.flow.model.FlowChartRoleDto;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
@ -34,4 +35,6 @@ public interface FlowChartMapper extends BaseMapper<FlowChart> {
|
|||||||
|
|
||||||
|
|
||||||
List<FlowChart> selectFlowChartByFlowManagerId(@Param("id") Long id);
|
List<FlowChart> selectFlowChartByFlowManagerId(@Param("id") Long id);
|
||||||
|
|
||||||
|
List<FlowChartRoleDto> selectChartRoleByChartId(Long id);
|
||||||
}
|
}
|
||||||
@ -8,10 +8,9 @@ import lombok.Data;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 菜单权限表
|
|
||||||
* </p>*考评组表
|
* </p>*考评组表
|
||||||
* @author quyixiao
|
* @author quyixiao
|
||||||
* @since 2020-10-13
|
* @since 2020-10-15
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@ -35,16 +34,16 @@ public class EvaluationGroup implements java.io.Serializable {
|
|||||||
private String name;
|
private String name;
|
||||||
//绩效管理员ID,system_user,id,逗号隔开
|
//绩效管理员ID,system_user,id,逗号隔开
|
||||||
@ApiModelProperty(value = "绩效管理员ID,system_user,id,逗号隔开", name = "managerIds")
|
@ApiModelProperty(value = "绩效管理员ID,system_user,id,逗号隔开", name = "managerIds")
|
||||||
private String managerIds;
|
private Long managerIds;
|
||||||
//参与考核员工staff_id或者部门id,逗号隔开
|
//参与部门id,逗号隔开
|
||||||
@ApiModelProperty(value = "参与考核员工staff_id或者部门id,逗号隔开", name = "inIds")
|
@ApiModelProperty(value = "参与部门id,逗号隔开", name = "depIds")
|
||||||
private String inIds;
|
private Long depIds;
|
||||||
//0部门,1人员
|
//参与考核员工staff_id,逗号隔开
|
||||||
@ApiModelProperty(value = "0部门,1人员", name = "inType")
|
@ApiModelProperty(value = "参与考核员工staff_id,逗号隔开", name = "staffIds")
|
||||||
private Integer inType;
|
private Long staffIds;
|
||||||
//排除人员ids,逗号隔开
|
//排除人员ids,逗号隔开
|
||||||
@ApiModelProperty(value = "排除人员ids,逗号隔开", name = "outIds")
|
@ApiModelProperty(value = "排除人员ids,逗号隔开", name = "outIds")
|
||||||
private String outIds;
|
private Long outIds;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -124,59 +123,60 @@ public class EvaluationGroup implements java.io.Serializable {
|
|||||||
* 绩效管理员ID,system_user,id,逗号隔开
|
* 绩效管理员ID,system_user,id,逗号隔开
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public String getManagerIds() {
|
public Long getManagerIds() {
|
||||||
return managerIds;
|
return managerIds;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 绩效管理员ID,system_user,id,逗号隔开
|
* 绩效管理员ID,system_user,id,逗号隔开
|
||||||
* @param managerIds
|
* @param managerIds
|
||||||
*/
|
*/
|
||||||
public void setManagerIds(String managerIds) {
|
public void setManagerIds(Long managerIds) {
|
||||||
this.managerIds = managerIds;
|
this.managerIds = managerIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 参与考核员工staff_id或者部门id,逗号隔开
|
* 参与部门id,逗号隔开
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public String getInIds() {
|
public Long getDepIds() {
|
||||||
return inIds;
|
return depIds;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 参与考核员工staff_id或者部门id,逗号隔开
|
* 参与部门id,逗号隔开
|
||||||
* @param inIds
|
* @param depIds
|
||||||
*/
|
*/
|
||||||
public void setInIds(String inIds) {
|
public void setDepIds(Long depIds) {
|
||||||
this.inIds = inIds;
|
this.depIds = depIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 0部门,1人员
|
* 参与考核员工staff_id,逗号隔开
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Integer getInType() {
|
public Long getStaffIds() {
|
||||||
return inType;
|
return staffIds;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 0部门,1人员
|
* 参与考核员工staff_id,逗号隔开
|
||||||
* @param inType
|
* @param staffIds
|
||||||
*/
|
*/
|
||||||
public void setInType(Integer inType) {
|
public void setStaffIds(Long staffIds) {
|
||||||
this.inType = inType;
|
this.staffIds = staffIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 排除人员ids,逗号隔开
|
* 排除人员ids,逗号隔开
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public String getOutIds() {
|
public Long getOutIds() {
|
||||||
return outIds;
|
return outIds;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 排除人员ids,逗号隔开
|
* 排除人员ids,逗号隔开
|
||||||
* @param outIds
|
* @param outIds
|
||||||
*/
|
*/
|
||||||
public void setOutIds(String outIds) {
|
public void setOutIds(Long outIds) {
|
||||||
this.outIds = outIds;
|
this.outIds = outIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -189,8 +189,8 @@ public class EvaluationGroup implements java.io.Serializable {
|
|||||||
",gmtModified=" + gmtModified +
|
",gmtModified=" + gmtModified +
|
||||||
",name=" + name +
|
",name=" + name +
|
||||||
",managerIds=" + managerIds +
|
",managerIds=" + managerIds +
|
||||||
",inIds=" + inIds +
|
",depIds=" + depIds +
|
||||||
",inType=" + inType +
|
",staffIds=" + staffIds +
|
||||||
",outIds=" + outIds +
|
",outIds=" + outIds +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,10 +8,9 @@ import lombok.Data;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 菜单权限表
|
|
||||||
* </p>*流程审批表
|
* </p>*流程审批表
|
||||||
* @author quyixiao
|
* @author quyixiao
|
||||||
* @since 2020-10-13
|
* @since 2020-10-15
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@ -42,6 +41,9 @@ public class FlowApprovalRole implements java.io.Serializable {
|
|||||||
//流程表id
|
//流程表id
|
||||||
@ApiModelProperty(value = "流程表id", name = "flowId")
|
@ApiModelProperty(value = "流程表id", name = "flowId")
|
||||||
private Long flowId;
|
private Long flowId;
|
||||||
|
//步骤类型0:依次,1:或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可)
|
||||||
|
@ApiModelProperty(value = "步骤类型0:依次,1:或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可)", name = "stepType")
|
||||||
|
private Integer stepType;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -162,6 +164,21 @@ public class FlowApprovalRole implements java.io.Serializable {
|
|||||||
this.flowId = flowId;
|
this.flowId = flowId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 步骤类型0:依次,1:或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可)
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Integer getStepType() {
|
||||||
|
return stepType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 步骤类型0:依次,1:或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可)
|
||||||
|
* @param stepType
|
||||||
|
*/
|
||||||
|
public void setStepType(Integer stepType) {
|
||||||
|
this.stepType = stepType;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "FlowApprovalRole{" +
|
return "FlowApprovalRole{" +
|
||||||
@ -173,6 +190,7 @@ public class FlowApprovalRole implements java.io.Serializable {
|
|||||||
",type=" + type +
|
",type=" + type +
|
||||||
",roleId=" + roleId +
|
",roleId=" + roleId +
|
||||||
",flowId=" + flowId +
|
",flowId=" + flowId +
|
||||||
|
",stepType=" + stepType +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -36,8 +36,8 @@ public class FlowChart implements java.io.Serializable {
|
|||||||
//flow_manager表中id
|
//flow_manager表中id
|
||||||
@ApiModelProperty(value = "flow_manager表中id", name = "processId")
|
@ApiModelProperty(value = "flow_manager表中id", name = "processId")
|
||||||
private Long processId;
|
private Long processId;
|
||||||
//0启用,1不启用
|
//是否可允许不启用节点 0不可,1可以
|
||||||
@ApiModelProperty(value = "0启用,1不启用", name = "status")
|
@ApiModelProperty(value = "是否可允许不启用节点 0不可,1可以", name = "status")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
//1可配置细节,0不可配置细节,一般线下操作。比如执行中
|
//1可配置细节,0不可配置细节,一般线下操作。比如执行中
|
||||||
@ApiModelProperty(value = "1可配置细节,0不可配置细节,一般线下操作。比如执行中", name = "type")
|
@ApiModelProperty(value = "1可配置细节,0不可配置细节,一般线下操作。比如执行中", name = "type")
|
||||||
|
|||||||
@ -21,9 +21,12 @@ public class EvaluationGroupDto {
|
|||||||
//绩效管理员ID,system_user,id,逗号隔开
|
//绩效管理员ID,system_user,id,逗号隔开
|
||||||
@ApiModelProperty(value = "绩效管理员ID,system_user,id,逗号隔开", name = "managerIds")
|
@ApiModelProperty(value = "绩效管理员ID,system_user,id,逗号隔开", name = "managerIds")
|
||||||
private Long managerIds;
|
private Long managerIds;
|
||||||
//参与考核员工staff_id或者部门id,逗号隔开
|
//参与部门id,逗号隔开
|
||||||
@ApiModelProperty(value = "参与考核员工staff_id或者部门id,逗号隔开", name = "inIds")
|
@ApiModelProperty(value = "参与部门id,逗号隔开", name = "depIds")
|
||||||
private Long inIds;
|
private Long depIds;
|
||||||
|
//参与考核员工staff_id,逗号隔开
|
||||||
|
@ApiModelProperty(value = "参与考核员工staff_id,逗号隔开", name = "staffIds")
|
||||||
|
private Long staffIds;
|
||||||
//0部门,1人员
|
//0部门,1人员
|
||||||
@ApiModelProperty(value = "0部门,1人员", name = "inType")
|
@ApiModelProperty(value = "0部门,1人员", name = "inType")
|
||||||
private Integer inType;
|
private Integer inType;
|
||||||
@ -45,8 +48,6 @@ public class EvaluationGroupDto {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -78,18 +79,33 @@ public class EvaluationGroupDto {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 参与考核员工staff_id或者部门id,逗号隔开
|
* 参与部门id,逗号隔开
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Long getInIds() {
|
public Long getDepIds() {
|
||||||
return inIds;
|
return depIds;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 参与考核员工staff_id或者部门id,逗号隔开
|
* 参与部门id,逗号隔开
|
||||||
* @param inIds
|
* @param depIds
|
||||||
*/
|
*/
|
||||||
public void setInIds(Long inIds) {
|
public void setDepIds(Long depIds) {
|
||||||
this.inIds = inIds;
|
this.depIds = depIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 参与考核员工staff_id,逗号隔开
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Long getStaffIds() {
|
||||||
|
return staffIds;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 参与考核员工staff_id,逗号隔开
|
||||||
|
* @param staffIds
|
||||||
|
*/
|
||||||
|
public void setStaffIds(Long staffIds) {
|
||||||
|
this.staffIds = staffIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -128,7 +144,8 @@ public class EvaluationGroupDto {
|
|||||||
",id=" + id +
|
",id=" + id +
|
||||||
",name=" + name +
|
",name=" + name +
|
||||||
",managerIds=" + managerIds +
|
",managerIds=" + managerIds +
|
||||||
",inIds=" + inIds +
|
",depIds=" + depIds +
|
||||||
|
",staffIds=" + staffIds +
|
||||||
",inType=" + inType +
|
",inType=" + inType +
|
||||||
",outIds=" + outIds +
|
",outIds=" + outIds +
|
||||||
"}";
|
"}";
|
||||||
|
|||||||
@ -27,6 +27,9 @@ public class FlowApprovalRoleDto {
|
|||||||
//流程表id
|
//流程表id
|
||||||
@ApiModelProperty(value = "流程表id", name = "flowId")
|
@ApiModelProperty(value = "流程表id", name = "flowId")
|
||||||
private Long flowId;
|
private Long flowId;
|
||||||
|
//步骤类型0:依次,1:或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可)
|
||||||
|
@ApiModelProperty(value = "步骤类型0:依次,1:或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可)", name = "stepType")
|
||||||
|
private Integer stepType;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -42,8 +45,6 @@ public class FlowApprovalRoleDto {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 审批用户id
|
* 审批用户id
|
||||||
* @return
|
* @return
|
||||||
@ -104,6 +105,21 @@ public class FlowApprovalRoleDto {
|
|||||||
this.flowId = flowId;
|
this.flowId = flowId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 步骤类型0:依次,1:或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可)
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Integer getStepType() {
|
||||||
|
return stepType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 步骤类型0:依次,1:或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可)
|
||||||
|
* @param stepType
|
||||||
|
*/
|
||||||
|
public void setStepType(Integer stepType) {
|
||||||
|
this.stepType = stepType;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "FlowApprovalRole{" +
|
return "FlowApprovalRole{" +
|
||||||
@ -112,6 +128,7 @@ public class FlowApprovalRoleDto {
|
|||||||
",type=" + type +
|
",type=" + type +
|
||||||
",roleId=" + roleId +
|
",roleId=" + roleId +
|
||||||
",flowId=" + flowId +
|
",flowId=" + flowId +
|
||||||
|
",stepType=" + stepType +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -21,8 +21,8 @@ public class FlowChartDto {
|
|||||||
//flow_manager表中id
|
//flow_manager表中id
|
||||||
@ApiModelProperty(value = "flow_manager表中id", name = "processId")
|
@ApiModelProperty(value = "flow_manager表中id", name = "processId")
|
||||||
private Long processId;
|
private Long processId;
|
||||||
//0启用,1不启用
|
//是否可允许不启用节点 0不可,1可以
|
||||||
@ApiModelProperty(value = "0启用,1不启用", name = "status")
|
@ApiModelProperty(value = "是否可允许不启用节点 0不可,1可以", name = "status")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
//1可配置细节,0不可配置细节,一般线下操作。比如执行中
|
//1可配置细节,0不可配置细节,一般线下操作。比如执行中
|
||||||
@ApiModelProperty(value = "1可配置细节,0不可配置细节,一般线下操作。比如执行中", name = "type")
|
@ApiModelProperty(value = "1可配置细节,0不可配置细节,一般线下操作。比如执行中", name = "type")
|
||||||
|
|||||||
@ -21,6 +21,8 @@ public class FlowChartRoleDto {
|
|||||||
//角色id
|
//角色id
|
||||||
@ApiModelProperty(value = "角色id", name = "roleId")
|
@ApiModelProperty(value = "角色id", name = "roleId")
|
||||||
private Long roleId;
|
private Long roleId;
|
||||||
|
@ApiModelProperty(value = "角色名称", name = "roleName")
|
||||||
|
private String roleName;
|
||||||
//1默认权限,必带权限,不可修改权限,0可选权限
|
//1默认权限,必带权限,不可修改权限,0可选权限
|
||||||
@ApiModelProperty(value = "1默认权限,必带权限,不可修改权限,0可选权限", name = "type")
|
@ApiModelProperty(value = "1默认权限,必带权限,不可修改权限,0可选权限", name = "type")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
@ -92,6 +94,7 @@ public class FlowChartRoleDto {
|
|||||||
",id=" + id +
|
",id=" + id +
|
||||||
",chartId=" + chartId +
|
",chartId=" + chartId +
|
||||||
",roleId=" + roleId +
|
",roleId=" + roleId +
|
||||||
|
",roleName=" + roleName +
|
||||||
",type=" + type +
|
",type=" + type +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import java.util.Date;
|
|||||||
* 菜单权限表
|
* 菜单权限表
|
||||||
* </p>*考评组表
|
* </p>*考评组表
|
||||||
* @author quyixiao
|
* @author quyixiao
|
||||||
* @since 2020-10-13
|
* @since 2020-10-15
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -19,9 +19,13 @@ import java.util.Date;
|
|||||||
@ApiModel(value = "考评组表")
|
@ApiModel(value = "考评组表")
|
||||||
public class EvaluationGroupReq implements java.io.Serializable {
|
public class EvaluationGroupReq implements java.io.Serializable {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "page", name = "当前页码")
|
||||||
private int page = 1;
|
private int page = 1;
|
||||||
|
@ApiModelProperty(value = "rows", name = "每页返回条数")
|
||||||
private int rows = 10;
|
private int rows = 10;
|
||||||
|
@ApiModelProperty(value = "sort", name = "类型")
|
||||||
private String sort;
|
private String sort;
|
||||||
|
@ApiModelProperty(value = "order", name = "排序")
|
||||||
private String order;
|
private String order;
|
||||||
//
|
//
|
||||||
private Long id;
|
private Long id;
|
||||||
@ -40,9 +44,12 @@ public class EvaluationGroupReq implements java.io.Serializable {
|
|||||||
//绩效管理员ID,system_user,id,逗号隔开
|
//绩效管理员ID,system_user,id,逗号隔开
|
||||||
@ApiModelProperty(value = "绩效管理员ID,system_user,id,逗号隔开", name = "managerIds")
|
@ApiModelProperty(value = "绩效管理员ID,system_user,id,逗号隔开", name = "managerIds")
|
||||||
private Long managerIds;
|
private Long managerIds;
|
||||||
//参与考核员工staff_id或者部门id,逗号隔开
|
//参与部门id,逗号隔开
|
||||||
@ApiModelProperty(value = "参与考核员工staff_id或者部门id,逗号隔开", name = "inIds")
|
@ApiModelProperty(value = "参与部门id,逗号隔开", name = "depIds")
|
||||||
private Long inIds;
|
private Long depIds;
|
||||||
|
//参与考核员工staff_id,逗号隔开
|
||||||
|
@ApiModelProperty(value = "参与考核员工staff_id,逗号隔开", name = "staffIds")
|
||||||
|
private Long staffIds;
|
||||||
//0部门,1人员
|
//0部门,1人员
|
||||||
@ApiModelProperty(value = "0部门,1人员", name = "inType")
|
@ApiModelProperty(value = "0部门,1人员", name = "inType")
|
||||||
private Integer inType;
|
private Integer inType;
|
||||||
@ -140,18 +147,33 @@ public class EvaluationGroupReq implements java.io.Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 参与考核员工staff_id或者部门id,逗号隔开
|
* 参与部门id,逗号隔开
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Long getInIds() {
|
public Long getDepIds() {
|
||||||
return inIds;
|
return depIds;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 参与考核员工staff_id或者部门id,逗号隔开
|
* 参与部门id,逗号隔开
|
||||||
* @param inIds
|
* @param depIds
|
||||||
*/
|
*/
|
||||||
public void setInIds(Long inIds) {
|
public void setDepIds(Long depIds) {
|
||||||
this.inIds = inIds;
|
this.depIds = depIds;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 参与考核员工staff_id,逗号隔开
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Long getStaffIds() {
|
||||||
|
return staffIds;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 参与考核员工staff_id,逗号隔开
|
||||||
|
* @param staffIds
|
||||||
|
*/
|
||||||
|
public void setStaffIds(Long staffIds) {
|
||||||
|
this.staffIds = staffIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -193,7 +215,8 @@ public class EvaluationGroupReq implements java.io.Serializable {
|
|||||||
",gmtModified=" + gmtModified +
|
",gmtModified=" + gmtModified +
|
||||||
",name=" + name +
|
",name=" + name +
|
||||||
",managerIds=" + managerIds +
|
",managerIds=" + managerIds +
|
||||||
",inIds=" + inIds +
|
",depIds=" + depIds +
|
||||||
|
",staffIds=" + staffIds +
|
||||||
",inType=" + inType +
|
",inType=" + inType +
|
||||||
",outIds=" + outIds +
|
",outIds=" + outIds +
|
||||||
"}";
|
"}";
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import java.util.Date;
|
|||||||
* 菜单权限表
|
* 菜单权限表
|
||||||
* </p>*流程审批表
|
* </p>*流程审批表
|
||||||
* @author quyixiao
|
* @author quyixiao
|
||||||
* @since 2020-10-13
|
* @since 2020-10-15
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -19,9 +19,13 @@ import java.util.Date;
|
|||||||
@ApiModel(value = "流程审批表")
|
@ApiModel(value = "流程审批表")
|
||||||
public class FlowApprovalRoleReq implements java.io.Serializable {
|
public class FlowApprovalRoleReq implements java.io.Serializable {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "page", name = "当前页码")
|
||||||
private int page = 1;
|
private int page = 1;
|
||||||
|
@ApiModelProperty(value = "rows", name = "每页返回条数")
|
||||||
private int rows = 10;
|
private int rows = 10;
|
||||||
|
@ApiModelProperty(value = "sort", name = "类型")
|
||||||
private String sort;
|
private String sort;
|
||||||
|
@ApiModelProperty(value = "order", name = "排序")
|
||||||
private String order;
|
private String order;
|
||||||
//
|
//
|
||||||
private Long id;
|
private Long id;
|
||||||
@ -46,6 +50,9 @@ public class FlowApprovalRoleReq implements java.io.Serializable {
|
|||||||
//流程表id
|
//流程表id
|
||||||
@ApiModelProperty(value = "流程表id", name = "flowId")
|
@ApiModelProperty(value = "流程表id", name = "flowId")
|
||||||
private Long flowId;
|
private Long flowId;
|
||||||
|
//步骤类型0:依次,1:或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可)
|
||||||
|
@ApiModelProperty(value = "步骤类型0:依次,1:或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可)", name = "stepType")
|
||||||
|
private Integer stepType;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -166,6 +173,21 @@ public class FlowApprovalRoleReq implements java.io.Serializable {
|
|||||||
this.flowId = flowId;
|
this.flowId = flowId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 步骤类型0:依次,1:或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可)
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Integer getStepType() {
|
||||||
|
return stepType;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 步骤类型0:依次,1:或签(同时通知,一人通过或拒绝即可),2会签(同时通知,所有人同意才可)
|
||||||
|
* @param stepType
|
||||||
|
*/
|
||||||
|
public void setStepType(Integer stepType) {
|
||||||
|
this.stepType = stepType;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "FlowApprovalRole{" +
|
return "FlowApprovalRole{" +
|
||||||
@ -177,6 +199,7 @@ public class FlowApprovalRoleReq implements java.io.Serializable {
|
|||||||
",type=" + type +
|
",type=" + type +
|
||||||
",roleId=" + roleId +
|
",roleId=" + roleId +
|
||||||
",flowId=" + flowId +
|
",flowId=" + flowId +
|
||||||
|
",stepType=" + stepType +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -40,8 +40,8 @@ public class FlowChartReq implements java.io.Serializable {
|
|||||||
//flow_manager表中id
|
//flow_manager表中id
|
||||||
@ApiModelProperty(value = "flow_manager表中id", name = "processId")
|
@ApiModelProperty(value = "flow_manager表中id", name = "processId")
|
||||||
private Long processId;
|
private Long processId;
|
||||||
//0启用,1不启用
|
//是否可允许不启用节点 0不可,1可以
|
||||||
@ApiModelProperty(value = "0启用,1不启用", name = "status")
|
@ApiModelProperty(value = "是否可允许不启用节点 0不可,1可以", name = "status")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
//1可配置细节,0不可配置细节,一般线下操作。比如执行中
|
//1可配置细节,0不可配置细节,一般线下操作。比如执行中
|
||||||
@ApiModelProperty(value = "1可配置细节,0不可配置细节,一般线下操作。比如执行中", name = "type")
|
@ApiModelProperty(value = "1可配置细节,0不可配置细节,一般线下操作。比如执行中", name = "type")
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package com.lz.modules.flow.service;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
import com.lz.modules.flow.entity.FlowChart;
|
import com.lz.modules.flow.entity.FlowChart;
|
||||||
|
import com.lz.modules.flow.model.FlowChartRoleDto;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -33,4 +34,6 @@ public interface FlowChartService extends IService<FlowChart> {
|
|||||||
|
|
||||||
|
|
||||||
List<FlowChart> selectFlowChartByFlowManagerId(Long id);
|
List<FlowChart> selectFlowChartByFlowManagerId(Long id);
|
||||||
|
|
||||||
|
List<FlowChartRoleDto> selectChartRoleByChartId(Long id);
|
||||||
}
|
}
|
||||||
@ -3,6 +3,7 @@ package com.lz.modules.flow.service.impl;
|
|||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.lz.modules.flow.dao.FlowChartMapper;
|
import com.lz.modules.flow.dao.FlowChartMapper;
|
||||||
import com.lz.modules.flow.entity.FlowChart;
|
import com.lz.modules.flow.entity.FlowChart;
|
||||||
|
import com.lz.modules.flow.model.FlowChartRoleDto;
|
||||||
import com.lz.modules.flow.service.FlowChartService;
|
import com.lz.modules.flow.service.FlowChartService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@ -65,6 +66,11 @@ public class FlowChartServiceImpl extends ServiceImpl<FlowChartMapper, FlowChart
|
|||||||
return flowChartMapper.selectFlowChartByFlowManagerId(id);
|
return flowChartMapper.selectFlowChartByFlowManagerId(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<FlowChartRoleDto> selectChartRoleByChartId(Long id){
|
||||||
|
return flowChartMapper.selectChartRoleByChartId(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,6 +9,7 @@ import com.lz.modules.equipment.entity.model.FindEmployeeResModel;
|
|||||||
import com.lz.modules.flow.entity.EvaluationGroup;
|
import com.lz.modules.flow.entity.EvaluationGroup;
|
||||||
import com.lz.modules.flow.entity.FlowChart;
|
import com.lz.modules.flow.entity.FlowChart;
|
||||||
import com.lz.modules.flow.entity.FlowManager;
|
import com.lz.modules.flow.entity.FlowManager;
|
||||||
|
import com.lz.modules.flow.model.FlowChartRoleDto;
|
||||||
import com.lz.modules.flow.service.FlowChartService;
|
import com.lz.modules.flow.service.FlowChartService;
|
||||||
import com.lz.modules.flow.service.FlowManagerService;
|
import com.lz.modules.flow.service.FlowManagerService;
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
@ -33,7 +34,7 @@ public class FlowChartController {
|
|||||||
|
|
||||||
@GetMapping("/getByFlowManagerId")
|
@GetMapping("/getByFlowManagerId")
|
||||||
@ApiOperation("根据Manager Id获取大流程")
|
@ApiOperation("根据Manager Id获取大流程")
|
||||||
@ApiImplicitParam(name = "id",value = "流程id", required = true, dataType = "String",paramType = "query")
|
@ApiImplicitParam(name = "id",value = "流程id,绩效请传1", required = true, dataType = "String",paramType = "query")
|
||||||
@ApiResponses({@ApiResponse(code = 200,message = "成功",response = FlowChart.class)})
|
@ApiResponses({@ApiResponse(code = 200,message = "成功",response = FlowChart.class)})
|
||||||
public R getByFlowManagerId(@RequestParam Long id) {
|
public R getByFlowManagerId(@RequestParam Long id) {
|
||||||
FlowManager flowManager = flowManagerService.selectFlowManagerById(id);
|
FlowManager flowManager = flowManagerService.selectFlowManagerById(id);
|
||||||
@ -44,16 +45,24 @@ public class FlowChartController {
|
|||||||
return R.error("无相关流程");
|
return R.error("无相关流程");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/getRoleByChatId")
|
||||||
|
@ApiOperation("根据流程节点 Id获取相关权限")
|
||||||
|
@ApiImplicitParam(name = "id",value = "节点id", required = true, dataType = "String",paramType = "query")
|
||||||
|
@ApiResponses({@ApiResponse(code = 200,message = "成功",response = FlowChartRoleDto.class)})
|
||||||
|
public R getRoleByChatId(@RequestParam Long id) {
|
||||||
|
|
||||||
|
List<FlowChartRoleDto> flowCharts = flowChartService.selectChartRoleByChartId(id);
|
||||||
|
return R.ok().put("list",flowCharts);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/getById")
|
@PostMapping("/getById")
|
||||||
@ApiOperation("获取流程节点")
|
|
||||||
@ApiResponses({@ApiResponse(code = 200,message = "成功",response = FlowChart.class)})
|
@ApiResponses({@ApiResponse(code = 200,message = "成功",response = FlowChart.class)})
|
||||||
public R getById(@RequestBody @ApiParam FlowChart flowChart) {
|
public R getById(@RequestBody @ApiParam FlowChart flowChart) {
|
||||||
flowChart = flowChartService.selectFlowChartById(flowChart.getId());
|
flowChart = flowChartService.selectFlowChartById(flowChart.getId());
|
||||||
return R.ok().put("flowChart",flowChart);
|
return R.ok().put("flowChart",flowChart);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping("/update")
|
@RequestMapping("/update")
|
||||||
public R update(@RequestBody FlowChart flowChart) {
|
public R update(@RequestBody FlowChart flowChart) {
|
||||||
flowChartService.updateFlowChartById(flowChart);
|
flowChartService.updateFlowChartById(flowChart);
|
||||||
|
|||||||
@ -8,6 +8,7 @@ import com.lz.common.utils.StringUtil;
|
|||||||
import com.lz.modules.flow.entity.ResultModel;
|
import com.lz.modules.flow.entity.ResultModel;
|
||||||
import com.lz.modules.flow.service.ResultModelService;
|
import com.lz.modules.flow.service.ResultModelService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -55,7 +56,7 @@ public class ResultModelController {
|
|||||||
|
|
||||||
|
|
||||||
@RequestMapping("/delete")
|
@RequestMapping("/delete")
|
||||||
public R list(@RequestBody Long id) {
|
public R delete(@RequestBody Long id) {
|
||||||
resultModelService.deleteResultModelById(id);
|
resultModelService.deleteResultModelById(id);
|
||||||
return R.ok();
|
return R.ok();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,59 +10,59 @@
|
|||||||
<result column="gmt_modified" property="gmtModified"/>
|
<result column="gmt_modified" property="gmtModified"/>
|
||||||
<result column="name" property="name"/>
|
<result column="name" property="name"/>
|
||||||
<result column="manager_ids" property="managerIds"/>
|
<result column="manager_ids" property="managerIds"/>
|
||||||
<result column="in_ids" property="inIds"/>
|
<result column="dep_ids" property="depIds"/>
|
||||||
<result column="in_type" property="inType"/>
|
<result column="staff_ids" property="staffIds"/>
|
||||||
<result column="out_ids" property="outIds"/>
|
<result column="out_ids" property="outIds"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
<!-- 通用查询结果列 -->
|
<!-- 通用查询结果列 -->
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, name AS name, manager_ids AS managerIds, in_ids AS inIds, in_type AS inType, out_ids AS outIds
|
id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, name AS name, manager_ids AS managerIds, dep_ids AS depIds, staff_ids AS staffIds, out_ids AS outIds
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<select id="selectEvaluationGroupById" resultType="EvaluationGroup" >
|
<select id="selectEvaluationGroupById" resultType="EvaluationGroup" >
|
||||||
select * from lz_evaluation_group where id=#{id} and is_delete = 0 limit 1
|
select * from lz_evaluation_group where id=#{id} and is_delete = 0 limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<insert id="insertEvaluationGroup" parameterType="EvaluationGroup" useGeneratedKeys="true" keyProperty="id" >
|
<insert id="insertEvaluationGroup" parameterType="EvaluationGroup" useGeneratedKeys="true" keyProperty="id" >
|
||||||
insert into lz_evaluation_group(
|
insert into lz_evaluation_group(
|
||||||
<if test="name != null">name, </if>
|
<if test="name != null">name, </if>
|
||||||
<if test="managerIds != null">manager_ids, </if>
|
<if test="managerIds != null">manager_ids, </if>
|
||||||
<if test="inIds != null">in_ids, </if>
|
<if test="depIds != null">dep_ids, </if>
|
||||||
<if test="inType != null">in_type, </if>
|
<if test="staffIds != null">staff_ids, </if>
|
||||||
<if test="outIds != null">out_ids, </if>
|
<if test="outIds != null">out_ids, </if>
|
||||||
is_delete,
|
is_delete,
|
||||||
gmt_create,
|
gmt_create,
|
||||||
gmt_modified
|
gmt_modified
|
||||||
)values(
|
)values(
|
||||||
<if test="name != null">#{ name}, </if>
|
<if test="name != null">#{ name}, </if>
|
||||||
<if test="managerIds != null">#{ managerIds}, </if>
|
<if test="managerIds != null">#{ managerIds}, </if>
|
||||||
<if test="inIds != null">#{ inIds}, </if>
|
<if test="depIds != null">#{ depIds}, </if>
|
||||||
<if test="inType != null">#{ inType}, </if>
|
<if test="staffIds != null">#{ staffIds}, </if>
|
||||||
<if test="outIds != null">#{ outIds}, </if>
|
<if test="outIds != null">#{ outIds}, </if>
|
||||||
0,
|
0,
|
||||||
now(),
|
now(),
|
||||||
now()
|
now()
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
<update id="updateEvaluationGroupById" parameterType="EvaluationGroup" >
|
<update id="updateEvaluationGroupById" parameterType="EvaluationGroup" >
|
||||||
update
|
update
|
||||||
lz_evaluation_group
|
lz_evaluation_group
|
||||||
<trim prefix="set" suffixOverrides=",">
|
<trim prefix="set" suffixOverrides=",">
|
||||||
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
<if test="isDelete != null">is_delete = #{isDelete},</if>
|
||||||
<if test="gmtCreate != null">gmt_create = #{gmtCreate},</if>
|
<if test="gmtCreate != null">gmt_create = #{gmtCreate},</if>
|
||||||
<if test="name != null">name = #{name},</if>
|
<if test="name != null">name = #{name},</if>
|
||||||
<if test="managerIds != null">manager_ids = #{managerIds},</if>
|
<if test="managerIds != null">manager_ids = #{managerIds},</if>
|
||||||
<if test="inIds != null">in_ids = #{inIds},</if>
|
<if test="depIds != null">dep_ids = #{depIds},</if>
|
||||||
<if test="inType != null">in_type = #{inType},</if>
|
<if test="staffIds != null">staff_ids = #{staffIds},</if>
|
||||||
<if test="outIds != null">out_ids = #{outIds}</if>
|
<if test="outIds != null">out_ids = #{outIds}</if>
|
||||||
</trim>
|
</trim>
|
||||||
,gmt_modified = now()
|
,gmt_modified = now()
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
@ -71,14 +71,14 @@
|
|||||||
|
|
||||||
<update id="updateCoverEvaluationGroupById" parameterType="EvaluationGroup" >
|
<update id="updateCoverEvaluationGroupById" parameterType="EvaluationGroup" >
|
||||||
update
|
update
|
||||||
lz_evaluation_group
|
lz_evaluation_group
|
||||||
set
|
set
|
||||||
is_delete = #{isDelete},
|
is_delete = #{isDelete},
|
||||||
gmt_create = #{gmtCreate},
|
gmt_create = #{gmtCreate},
|
||||||
name = #{name},
|
name = #{name},
|
||||||
manager_ids = #{managerIds},
|
manager_ids = #{managerIds},
|
||||||
in_ids = #{inIds},
|
dep_ids = #{depIds},
|
||||||
in_type = #{inType},
|
staff_ids = #{staffIds},
|
||||||
out_ids = #{outIds}
|
out_ids = #{outIds}
|
||||||
,gmt_modified = now()
|
,gmt_modified = now()
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
|
|||||||
@ -12,12 +12,13 @@
|
|||||||
<result column="type" property="type"/>
|
<result column="type" property="type"/>
|
||||||
<result column="role_id" property="roleId"/>
|
<result column="role_id" property="roleId"/>
|
||||||
<result column="flow_id" property="flowId"/>
|
<result column="flow_id" property="flowId"/>
|
||||||
|
<result column="step_type" property="stepType"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
<!-- 通用查询结果列 -->
|
<!-- 通用查询结果列 -->
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, approval_id AS approvalId, type AS type, role_id AS roleId, flow_id AS flowId
|
id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, approval_id AS approvalId, type AS type, role_id AS roleId, flow_id AS flowId, step_type AS stepType
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
@ -34,6 +35,7 @@
|
|||||||
<if test="type != null">type, </if>
|
<if test="type != null">type, </if>
|
||||||
<if test="roleId != null">role_id, </if>
|
<if test="roleId != null">role_id, </if>
|
||||||
<if test="flowId != null">flow_id, </if>
|
<if test="flowId != null">flow_id, </if>
|
||||||
|
<if test="stepType != null">step_type, </if>
|
||||||
is_delete,
|
is_delete,
|
||||||
gmt_create,
|
gmt_create,
|
||||||
gmt_modified
|
gmt_modified
|
||||||
@ -42,6 +44,7 @@
|
|||||||
<if test="type != null">#{ type}, </if>
|
<if test="type != null">#{ type}, </if>
|
||||||
<if test="roleId != null">#{ roleId}, </if>
|
<if test="roleId != null">#{ roleId}, </if>
|
||||||
<if test="flowId != null">#{ flowId}, </if>
|
<if test="flowId != null">#{ flowId}, </if>
|
||||||
|
<if test="stepType != null">#{ stepType}, </if>
|
||||||
0,
|
0,
|
||||||
now(),
|
now(),
|
||||||
now()
|
now()
|
||||||
@ -58,7 +61,8 @@
|
|||||||
<if test="approvalId != null">approval_id = #{approvalId},</if>
|
<if test="approvalId != null">approval_id = #{approvalId},</if>
|
||||||
<if test="type != null">type = #{type},</if>
|
<if test="type != null">type = #{type},</if>
|
||||||
<if test="roleId != null">role_id = #{roleId},</if>
|
<if test="roleId != null">role_id = #{roleId},</if>
|
||||||
<if test="flowId != null">flow_id = #{flowId}</if>
|
<if test="flowId != null">flow_id = #{flowId},</if>
|
||||||
|
<if test="stepType != null">step_type = #{stepType}</if>
|
||||||
</trim>
|
</trim>
|
||||||
,gmt_modified = now()
|
,gmt_modified = now()
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
@ -74,7 +78,8 @@
|
|||||||
approval_id = #{approvalId},
|
approval_id = #{approvalId},
|
||||||
type = #{type},
|
type = #{type},
|
||||||
role_id = #{roleId},
|
role_id = #{roleId},
|
||||||
flow_id = #{flowId}
|
flow_id = #{flowId},
|
||||||
|
step_type = #{stepType}
|
||||||
,gmt_modified = now()
|
,gmt_modified = now()
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|||||||
@ -93,5 +93,9 @@
|
|||||||
select * from lz_flow_chart where process_id=#{id} and is_delete = 0 order by step_index asc
|
select * from lz_flow_chart where process_id=#{id} and is_delete = 0 order by step_index asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectChartRoleByChartId" resultType="com.lz.modules.flow.model.FlowChartRoleDto" >
|
||||||
|
SELECT crole.id as id, crole.chart_id as chart_id, crole.role_id as role_id, role.name as role_name, crole.type as type FROM lz_flow_chart_role crole left join lz_record_role role on role.id=crole.role_id where crole.chart_id=#{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|||||||
@ -44,6 +44,7 @@ public class MysqlMain {
|
|||||||
public static String mysql_username = "ldd_biz";
|
public static String mysql_username = "ldd_biz";
|
||||||
public static String mysql_password = "Hello1234";
|
public static String mysql_password = "Hello1234";
|
||||||
public static String dto_exclude = ",is_delete,gmt_create,gmt_modified,";//生成dto时排除字段,前后都要加英文逗号
|
public static String dto_exclude = ",is_delete,gmt_create,gmt_modified,";//生成dto时排除字段,前后都要加英文逗号
|
||||||
|
public static String req_exclude = "";//生成Req时排除字段,前后都要加英文逗号
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param args
|
* @param args
|
||||||
@ -65,17 +66,17 @@ public class MysqlMain {
|
|||||||
List<TablesBean> list = new ArrayList<TablesBean>();
|
List<TablesBean> list = new ArrayList<TablesBean>();
|
||||||
|
|
||||||
list.add(new TablesBean("lz_evaluation_group"));
|
list.add(new TablesBean("lz_evaluation_group"));
|
||||||
list.add(new TablesBean("lz_evaluation_start_staff"));
|
//list.add(new TablesBean("lz_evaluation_start_staff"));
|
||||||
list.add(new TablesBean("lz_flow_approval_role"));
|
list.add(new TablesBean("lz_flow_approval_role"));
|
||||||
list.add(new TablesBean("lz_flow_change"));
|
//list.add(new TablesBean("lz_flow_change"));
|
||||||
list.add(new TablesBean("lz_flow_chart"));
|
//list.add(new TablesBean("lz_flow_chart"));
|
||||||
list.add(new TablesBean("lz_flow_chart_role"));
|
//list.add(new TablesBean("lz_flow_chart_role"));
|
||||||
list.add(new TablesBean("lz_flow_start"));
|
//list.add(new TablesBean("lz_flow_start"));
|
||||||
list.add(new TablesBean("lz_result_calculate"));
|
//list.add(new TablesBean("lz_result_calculate"));
|
||||||
list.add(new TablesBean("lz_result_dimension"));
|
//list.add(new TablesBean("lz_result_dimension"));
|
||||||
list.add(new TablesBean("lz_result_grade"));
|
//list.add(new TablesBean("lz_result_grade"));
|
||||||
list.add(new TablesBean("lz_result_model"));
|
//list.add(new TablesBean("lz_result_model"));
|
||||||
list.add(new TablesBean("lz_result_score"));
|
//list.add(new TablesBean("lz_result_score"));
|
||||||
|
|
||||||
List<TablesBean> list2 = new ArrayList<TablesBean>();
|
List<TablesBean> list2 = new ArrayList<TablesBean>();
|
||||||
Map<String, String> map = MysqlUtil2ShowCreateTable.getComments();
|
Map<String, String> map = MysqlUtil2ShowCreateTable.getComments();
|
||||||
|
|||||||
@ -31,17 +31,23 @@ public class MysqlUtilTable2Bean {
|
|||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
bf.append(" \n");
|
bf.append(" \n");
|
||||||
|
bf.append(" @ApiModelProperty(value = \"page\", name = \"当前页码\")\n");
|
||||||
bf.append(" private int page = 1;\n");
|
bf.append(" private int page = 1;\n");
|
||||||
|
|
||||||
|
bf.append(" @ApiModelProperty(value = \"rows\", name = \"每页返回条数\")\n");
|
||||||
bf.append(" private int rows = 10;\n");
|
bf.append(" private int rows = 10;\n");
|
||||||
|
|
||||||
|
bf.append(" @ApiModelProperty(value = \"sort\", name = \"类型\")\n");
|
||||||
bf.append(" private String sort;\n");
|
bf.append(" private String sort;\n");
|
||||||
|
|
||||||
|
bf.append(" @ApiModelProperty(value = \"order\", name = \"排序\")\n");
|
||||||
bf.append(" private String order;\n");
|
bf.append(" private String order;\n");
|
||||||
|
|
||||||
// 定义声明
|
// 定义声明
|
||||||
for (FieldBean tb : list) {
|
for (FieldBean tb : list) {
|
||||||
|
if (MysqlMain.req_exclude.contains("," + tb.getField() + ",")) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
String temp = "";
|
String temp = "";
|
||||||
temp += " //" + tb.getComment() + "\n";
|
temp += " //" + tb.getComment() + "\n";
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
@ -65,6 +71,9 @@ public class MysqlUtilTable2Bean {
|
|||||||
|
|
||||||
// 定义get set方法
|
// 定义get set方法
|
||||||
for (FieldBean tb : list) {
|
for (FieldBean tb : list) {
|
||||||
|
if (MysqlMain.req_exclude.contains("," + tb.getField() + ",")) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
String temp = "";
|
String temp = "";
|
||||||
temp += " /**\n";
|
temp += " /**\n";
|
||||||
temp += " * " + tb.getComment() + " \n";
|
temp += " * " + tb.getComment() + " \n";
|
||||||
@ -99,6 +108,9 @@ public class MysqlUtilTable2Bean {
|
|||||||
sb.append(" return \"" + realName + "{\" +\n");
|
sb.append(" return \"" + realName + "{\" +\n");
|
||||||
|
|
||||||
for (FieldBean tb : list) {
|
for (FieldBean tb : list) {
|
||||||
|
if (MysqlMain.req_exclude.contains("," + tb.getField() + ",")) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
String temp = "";
|
String temp = "";
|
||||||
sb.append(" \"," + tb.getJavaCode() + "=\" + " + tb.getJavaCode() + " +\n");
|
sb.append(" \"," + tb.getJavaCode() + "=\" + " + tb.getJavaCode() + " +\n");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -78,7 +78,7 @@ public class MysqlUtilTable2Contoller {
|
|||||||
content.append("\n");
|
content.append("\n");
|
||||||
content.append("\n");
|
content.append("\n");
|
||||||
content.append(" @RequestMapping(\"/delete\")\n");
|
content.append(" @RequestMapping(\"/delete\")\n");
|
||||||
content.append(" public R list(@RequestBody Long id) {\n");
|
content.append(" public R delete(@RequestBody Long id) {\n");
|
||||||
content.append(" " + tableBean.getJavaName() + "Service.delete" + tableBean.getSpaceName() + "ById(id);\n");
|
content.append(" " + tableBean.getJavaName() + "Service.delete" + tableBean.getSpaceName() + "ById(id);\n");
|
||||||
content.append(" return R.ok();\n");
|
content.append(" return R.ok();\n");
|
||||||
content.append(" }\n");
|
content.append(" }\n");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user