Commit 3b4addc5 by zhouhaibao

Merge remote-tracking branch 'origin/v2.0.1' into v2.0.1

# Conflicts:
#	platform-process/src/main/resources/mapper/SopInstNodeMapper.xml
2 parents 7878e771 8b2fd0b6
package cn.com.glsx.process.modules.entity; package cn.com.glsx.process.modules.entity;
import java.util.Date;
import java.util.List;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient; import javax.persistence.Transient;
import java.util.Date;
import java.util.List;
@Table(name = "sop_inst_node") @Table(name = "sop_inst_node")
public class SopInstNode { public class SopInstNode {
...@@ -22,6 +21,12 @@ public class SopInstNode { ...@@ -22,6 +21,12 @@ public class SopInstNode {
private String instId; private String instId;
/** /**
* 模板节点原型id
*/
@Column(name = "node_proto_id")
private Integer nodeProtoId;
/**
* 节点id * 节点id
*/ */
@Column(name = "node_id") @Column(name = "node_id")
...@@ -428,4 +433,11 @@ public class SopInstNode { ...@@ -428,4 +433,11 @@ public class SopInstNode {
this.dailyExpire = dailyExpire; this.dailyExpire = dailyExpire;
} }
public Integer getNodeProtoId() {
return nodeProtoId;
}
public void setNodeProtoId(Integer nodeProtoId) {
this.nodeProtoId = nodeProtoId;
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -20,4 +20,8 @@ public class SopDataActionDTO { ...@@ -20,4 +20,8 @@ public class SopDataActionDTO {
private List<SopDataConditionDTO> conditions; private List<SopDataConditionDTO> conditions;
/**
* 前端需要的字段
*/
private String value;
} }
\ No newline at end of file \ No newline at end of file
...@@ -17,14 +17,17 @@ public class SopDataConditionDTO { ...@@ -17,14 +17,17 @@ public class SopDataConditionDTO {
private String name; private String name;
private String desc; private String desc;
private String type; private String type;
private String style;
private String unit;
private Boolean isHide; private Boolean isHide;
private String sql; private String sql;
private String paramRemark; private String paramRemark;
private List<SopDataOperatorDTO> operators; private List<SopDataOperatorDTO> operators;
private List<SopDataConditionDTO> subConditions; private List<SopDataConditionDTO> subConditions;
/**
* 前端需要的字段
*/
private String value;
public void push(SopDataConditionDTO i) { public void push(SopDataConditionDTO i) {
if (subConditions == null) { if (subConditions == null) {
subConditions = new ArrayList<>(); subConditions = new ArrayList<>();
......
...@@ -11,6 +11,11 @@ public class SopTaskDTO { ...@@ -11,6 +11,11 @@ public class SopTaskDTO {
private String instId; private String instId;
/** /**
* 模板节点原型id
*/
private Integer nodeProtoId;
/**
* 节点id * 节点id
*/ */
private Integer nodeId; private Integer nodeId;
......
...@@ -70,7 +70,7 @@ public class KeHuLvChengAssembler { ...@@ -70,7 +70,7 @@ public class KeHuLvChengAssembler {
String dataTypeCode = JacksonUtil.getStrValueInJsonStrByPath(tplParamDef, "dataTypeCode/defaultValue"); String dataTypeCode = JacksonUtil.getStrValueInJsonStrByPath(tplParamDef, "dataTypeCode/defaultValue");
String stagesStr = JacksonUtil.getStrValueInJsonStrByPath(tplParamDef, "stages/defaultValue"); String stagesStr = JacksonUtil.getStrValueInJsonStrByPath(tplParamDef, "stages/defaultValue");
sopTplDTO.setTplCron("10 20 7 * * ?"); sopTplDTO.setTplCron("0 0 1 * * ?");
sopTplDTO.setTplRemark("运营端新增模板"); sopTplDTO.setTplRemark("运营端新增模板");
sopTplDTO.setTplStatus((byte) 1); sopTplDTO.setTplStatus((byte) 1);
sopTplDTO.setTplSingleton((byte) 1); sopTplDTO.setTplSingleton((byte) 1);
......
...@@ -226,6 +226,9 @@ public class SopDataService { ...@@ -226,6 +226,9 @@ public class SopDataService {
condStrList.add(condStr); condStrList.add(condStr);
} }
res = sqlAnd(res, joinWithDelimiter(" and ", condStrList)); res = sqlAnd(res, joinWithDelimiter(" and ", condStrList));
if (!StringUtils.hasLength(res.trim())) {
return "";
}
return String.format(updateStagePrefix, StageName) + res + ";"; return String.format(updateStagePrefix, StageName) + res + ";";
} }
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<id column="inst_node_id" jdbcType="INTEGER" property="instNodeId" /> <id column="inst_node_id" jdbcType="INTEGER" property="instNodeId" />
<result column="inst_id" jdbcType="VARCHAR" property="instId" /> <result column="inst_id" jdbcType="VARCHAR" property="instId" />
<result column="node_id" jdbcType="INTEGER" property="nodeId" /> <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_name" jdbcType="VARCHAR" property="nodeName" />
<result column="node_type" jdbcType="VARCHAR" property="nodeType" /> <result column="node_type" jdbcType="VARCHAR" property="nodeType" />
<result column="node_label" jdbcType="VARCHAR" property="nodeLabel" /> <result column="node_label" jdbcType="VARCHAR" property="nodeLabel" />
...@@ -25,13 +26,13 @@ ...@@ -25,13 +26,13 @@
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!-- WARNING - @mbg.generated --> <!-- 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 node_param, node_content, node_visible, node_skip, node_cron, node_expire_cron, node_status, daily_limit, daily_count, daily_expire
</sql> </sql>
<select id="findByInstId" resultMap="BaseResultMap" parameterType="java.lang.String"> <select id="findByInstId" resultMap="BaseResultMap" parameterType="java.lang.String">
SELECT SELECT
node_id, node_name,node_type node_id, node_proto_id, node_name,node_type
FROM sop_inst_node WHERE inst_id=#{instId} FROM sop_inst_node WHERE inst_id=#{instId}
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!