flowchart添加字段
This commit is contained in:
parent
32b613501b
commit
5c896280de
@ -8,10 +8,9 @@ import lombok.Data;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 菜单权限表
|
|
||||||
* </p>*流程图,lz_flow的父
|
* </p>*流程图,lz_flow的父
|
||||||
* @author quyixiao
|
* @author quyixiao
|
||||||
* @since 2020-10-14
|
* @since 2020-10-26
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@ -39,12 +38,15 @@ public class FlowChart implements java.io.Serializable {
|
|||||||
//是否可允许不启用节点 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")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
//执行步骤,第几步,从0开始
|
//执行步骤,第几步,从0开始
|
||||||
@ApiModelProperty(value = "执行步骤,第几步,从0开始", name = "stepIndex")
|
@ApiModelProperty(value = "执行步骤,第几步,从0开始", name = "stepIndex")
|
||||||
private Integer stepIndex;
|
private Integer stepIndex;
|
||||||
|
//当前是目标确认还是评分,0,目标制定,1,目标确认,2执行中,3,结果值录入,4,评分,5考核结束
|
||||||
|
@ApiModelProperty(value = "当前是目标确认还是评分,0,目标制定,1,目标确认,2执行中,3,结果值录入,4,评分,5考核结束", name = "flowProcess")
|
||||||
|
private Integer flowProcess;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
@ -136,14 +138,14 @@ public class FlowChart implements java.io.Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 0启用,1不启用
|
* 是否可允许不启用节点 0不可,1可以
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Integer getStatus() {
|
public Integer getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 0启用,1不启用
|
* 是否可允许不启用节点 0不可,1可以
|
||||||
* @param status
|
* @param status
|
||||||
*/
|
*/
|
||||||
public void setStatus(Integer status) {
|
public void setStatus(Integer status) {
|
||||||
@ -151,14 +153,14 @@ public class FlowChart implements java.io.Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1可配置细节,0不可配置细节,一般线下操作。比如执行中
|
* 1可配置细节,0不可配置细节,一般线下操作。比如执行中,不可配置细节的允许自动跳过该节点。比如,还未到改节点时,人为设置该节点后面的操作,那么所有相关的都自动跳过
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Integer getType() {
|
public Integer getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 1可配置细节,0不可配置细节,一般线下操作。比如执行中
|
* 1可配置细节,0不可配置细节,一般线下操作。比如执行中,不可配置细节的允许自动跳过该节点。比如,还未到改节点时,人为设置该节点后面的操作,那么所有相关的都自动跳过
|
||||||
* @param type
|
* @param type
|
||||||
*/
|
*/
|
||||||
public void setType(Integer type) {
|
public void setType(Integer type) {
|
||||||
@ -180,6 +182,21 @@ public class FlowChart implements java.io.Serializable {
|
|||||||
this.stepIndex = stepIndex;
|
this.stepIndex = stepIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 当前是目标确认还是评分,0,目标制定,1,目标确认,2执行中,3,结果值录入,4,评分,5考核结束
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Integer getFlowProcess() {
|
||||||
|
return flowProcess;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 当前是目标确认还是评分,0,目标制定,1,目标确认,2执行中,3,结果值录入,4,评分,5考核结束
|
||||||
|
* @param flowProcess
|
||||||
|
*/
|
||||||
|
public void setFlowProcess(Integer flowProcess) {
|
||||||
|
this.flowProcess = flowProcess;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "FlowChart{" +
|
return "FlowChart{" +
|
||||||
@ -192,6 +209,7 @@ public class FlowChart implements java.io.Serializable {
|
|||||||
",status=" + status +
|
",status=" + status +
|
||||||
",type=" + type +
|
",type=" + type +
|
||||||
",stepIndex=" + stepIndex +
|
",stepIndex=" + stepIndex +
|
||||||
|
",flowProcess=" + flowProcess +
|
||||||
"}";
|
"}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -13,12 +13,13 @@
|
|||||||
<result column="status" property="status"/>
|
<result column="status" property="status"/>
|
||||||
<result column="type" property="type"/>
|
<result column="type" property="type"/>
|
||||||
<result column="step_index" property="stepIndex"/>
|
<result column="step_index" property="stepIndex"/>
|
||||||
|
<result column="flow_process" property="flowProcess"/>
|
||||||
</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, process_id AS processId, status AS status, type AS type, step_index AS stepIndex
|
id AS id, is_delete AS isDelete, gmt_create AS gmtCreate, gmt_modified AS gmtModified, name AS name, process_id AS processId, status AS status, type AS type, step_index AS stepIndex, flow_process AS flowProcess
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
@ -31,30 +32,32 @@
|
|||||||
|
|
||||||
<insert id="insertFlowChart" parameterType="FlowChart" useGeneratedKeys="true" keyProperty="id" >
|
<insert id="insertFlowChart" parameterType="FlowChart" useGeneratedKeys="true" keyProperty="id" >
|
||||||
insert into lz_flow_chart(
|
insert into lz_flow_chart(
|
||||||
<if test="name != null">name, </if>
|
<if test="name != null">name, </if>
|
||||||
<if test="processId != null">process_id, </if>
|
<if test="processId != null">process_id, </if>
|
||||||
<if test="status != null">status, </if>
|
<if test="status != null">status, </if>
|
||||||
<if test="type != null">type, </if>
|
<if test="type != null">type, </if>
|
||||||
<if test="stepIndex != null">step_index, </if>
|
<if test="stepIndex != null">step_index, </if>
|
||||||
is_delete,
|
<if test="flowProcess != null">flow_process, </if>
|
||||||
gmt_create,
|
is_delete,
|
||||||
gmt_modified
|
gmt_create,
|
||||||
|
gmt_modified
|
||||||
)values(
|
)values(
|
||||||
<if test="name != null">#{ name}, </if>
|
<if test="name != null">#{ name}, </if>
|
||||||
<if test="processId != null">#{ processId}, </if>
|
<if test="processId != null">#{ processId}, </if>
|
||||||
<if test="status != null">#{ status}, </if>
|
<if test="status != null">#{ status}, </if>
|
||||||
<if test="type != null">#{ type}, </if>
|
<if test="type != null">#{ type}, </if>
|
||||||
<if test="stepIndex != null">#{ stepIndex}, </if>
|
<if test="stepIndex != null">#{ stepIndex}, </if>
|
||||||
0,
|
<if test="flowProcess != null">#{ flowProcess}, </if>
|
||||||
now(),
|
0,
|
||||||
now()
|
now(),
|
||||||
|
now()
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
<update id="updateFlowChartById" parameterType="FlowChart" >
|
<update id="updateFlowChartById" parameterType="FlowChart" >
|
||||||
update
|
update
|
||||||
lz_flow_chart
|
lz_flow_chart
|
||||||
<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>
|
||||||
@ -62,7 +65,8 @@
|
|||||||
<if test="processId != null">process_id = #{processId},</if>
|
<if test="processId != null">process_id = #{processId},</if>
|
||||||
<if test="status != null">status = #{status},</if>
|
<if test="status != null">status = #{status},</if>
|
||||||
<if test="type != null">type = #{type},</if>
|
<if test="type != null">type = #{type},</if>
|
||||||
<if test="stepIndex != null">step_index = #{stepIndex}</if>
|
<if test="stepIndex != null">step_index = #{stepIndex},</if>
|
||||||
|
<if test="flowProcess != null">flow_process = #{flowProcess}</if>
|
||||||
</trim>
|
</trim>
|
||||||
,gmt_modified = now()
|
,gmt_modified = now()
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
@ -71,15 +75,16 @@
|
|||||||
|
|
||||||
<update id="updateCoverFlowChartById" parameterType="FlowChart" >
|
<update id="updateCoverFlowChartById" parameterType="FlowChart" >
|
||||||
update
|
update
|
||||||
lz_flow_chart
|
lz_flow_chart
|
||||||
set
|
set
|
||||||
is_delete = #{isDelete},
|
is_delete = #{isDelete},
|
||||||
gmt_create = #{gmtCreate},
|
gmt_create = #{gmtCreate},
|
||||||
name = #{name},
|
name = #{name},
|
||||||
process_id = #{processId},
|
process_id = #{processId},
|
||||||
status = #{status},
|
status = #{status},
|
||||||
type = #{type},
|
type = #{type},
|
||||||
step_index = #{stepIndex}
|
step_index = #{stepIndex},
|
||||||
|
flow_process = #{flowProcess}
|
||||||
,gmt_modified = now()
|
,gmt_modified = now()
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|||||||
@ -96,7 +96,7 @@ public class MysqlMain {
|
|||||||
//list.add(new TablesBean("lz_flow_chart_detail_record"));
|
//list.add(new TablesBean("lz_flow_chart_detail_record"));
|
||||||
//list.add(new TablesBean("lz_flow_approval_role"));
|
//list.add(new TablesBean("lz_flow_approval_role"));
|
||||||
|
|
||||||
list.add(new TablesBean("lz_flow_record"));
|
list.add(new TablesBean("lz_flow_chart"));
|
||||||
|
|
||||||
List<TablesBean> list2 = new ArrayList<TablesBean>();
|
List<TablesBean> list2 = new ArrayList<TablesBean>();
|
||||||
Map<String, String> map = MysqlUtil2ShowCreateTable.getComments();
|
Map<String, String> map = MysqlUtil2ShowCreateTable.getComments();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user