Commit 8b2fd0b6 by 林永健

处理nodeProtoId

1 parent 19c193f1
package cn.com.glsx.process.modules.entity;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;
@Table(name = "sop_inst_node")
public class SopInstNode {
......@@ -22,6 +21,12 @@ public class SopInstNode {
private String instId;
/**
* 模板节点原型id
*/
@Column(name = "node_proto_id")
private Integer nodeProtoId;
/**
* 节点id
*/
@Column(name = "node_id")
......@@ -428,4 +433,11 @@ public class SopInstNode {
this.dailyExpire = dailyExpire;
}
public Integer getNodeProtoId() {
return nodeProtoId;
}
public void setNodeProtoId(Integer nodeProtoId) {
this.nodeProtoId = nodeProtoId;
}
}
\ No newline at end of file
......@@ -11,6 +11,11 @@ public class SopTaskDTO {
private String instId;
/**
* 模板节点原型id
*/
private Integer nodeProtoId;
/**
* 节点id
*/
private Integer nodeId;
......
......@@ -6,6 +6,7 @@
<id column="inst_node_id" jdbcType="INTEGER" property="instNodeId" />
<result column="inst_id" jdbcType="VARCHAR" property="instId" />
<result column="node_id" jdbcType="INTEGER" property="nodeId" />
<result column="node_proto_id" jdbcType="INTEGER" property="nodeProtoId" />
<result column="node_name" jdbcType="VARCHAR" property="nodeName" />
<result column="node_type" jdbcType="VARCHAR" property="nodeType" />
<result column="node_label" jdbcType="VARCHAR" property="nodeLabel" />
......@@ -25,19 +26,19 @@
<sql id="Base_Column_List">
<!-- WARNING - @mbg.generated -->
inst_node_id, inst_id, node_id, node_name, node_type, node_label, node_key, node_show,
inst_node_id, inst_id, node_id, node_proto_id, node_name, node_type, node_label, node_key, node_show,
node_param, node_content, node_visible, node_skip, node_cron, node_expire_cron, node_status, daily_limit, daily_count, daily_expire
</sql>
<select id="findByInstId" resultMap="BaseResultMap" parameterType="java.lang.String">
SELECT
node_id, node_name,node_type
node_id, node_proto_id, node_name,node_type
FROM sop_inst_node WHERE inst_id=#{instId}
</select>
<select id="findPageListByInstId"
resultType="cn.com.glsx.process.modules.model.task.SopTaskDTO">
select inst_id as instId, node_id as nodeId,node_param as nodeParam from sop_inst_node where inst_id=#{instId} and node_param!='' and node_param->'$.taskType' is not null
select inst_id as instId, node_id as nodeId, node_proto_id as nodeProtoId, node_param as nodeParam from sop_inst_node where inst_id=#{instId} and node_param!='' and node_param->'$.taskType' is not null
</select>
<update id="resetInstNodeDailyCount">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!