Commit 8ec690e9 by zhouhaibao

[+]sop实体处理

1 parent fd754179
...@@ -5,6 +5,13 @@ import javax.persistence.*; ...@@ -5,6 +5,13 @@ import javax.persistence.*;
@Table(name = "sop_inst") @Table(name = "sop_inst")
public class SopInst { public class SopInst {
/**
* 启用状态:0,未启用;1,启用;-1,已删除/过期;
*/
public static final Byte INST_STATUS_UNUSED = 0;
public static final Byte INST_STATUS_DELETED = -1;
/** /**
* 实例id,一般sop只允许一个实例。特殊情况可以根据输入参数来区分不同实例。实例名可以用于在cdp保存状态 * 实例id,一般sop只允许一个实例。特殊情况可以根据输入参数来区分不同实例。实例名可以用于在cdp保存状态
*/ */
......
...@@ -4,6 +4,13 @@ import javax.persistence.*; ...@@ -4,6 +4,13 @@ import javax.persistence.*;
@Table(name = "sop_inst_node") @Table(name = "sop_inst_node")
public class SopInstNode { public class SopInstNode {
public static final byte NODE_SKIP_FALSE = 0;
public static final byte NODE_SKIP_TRUE = 1;
public static final int NODE_STATUS_DELETED = 0;
public static final int NODE_STATUS_NORMAL = 1;
/** /**
* 实例节点id * 实例节点id
*/ */
......
...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopInstBatch; import cn.com.glsx.process.modules.entity.SopInstBatch;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopInstBatchMapper extends CommonBaseMapper<SopInstBatch> { public interface SopInstBatchMapper extends CommonBaseMapper<SopInstBatch> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopInstLink; import cn.com.glsx.process.modules.entity.SopInstLink;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopInstLinkMapper extends CommonBaseMapper<SopInstLink> { public interface SopInstLinkMapper extends CommonBaseMapper<SopInstLink> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopInst; import cn.com.glsx.process.modules.entity.SopInst;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopInstMapper extends CommonBaseMapper<SopInst> { public interface SopInstMapper extends CommonBaseMapper<SopInst> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopInstNodeBatch; import cn.com.glsx.process.modules.entity.SopInstNodeBatch;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopInstNodeBatchMapper extends CommonBaseMapper<SopInstNodeBatch> { public interface SopInstNodeBatchMapper extends CommonBaseMapper<SopInstNodeBatch> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopInstNode; import cn.com.glsx.process.modules.entity.SopInstNode;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopInstNodeMapper extends CommonBaseMapper<SopInstNode> { public interface SopInstNodeMapper extends CommonBaseMapper<SopInstNode> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopNodeTpl; import cn.com.glsx.process.modules.entity.SopNodeTpl;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopNodeTplMapper extends CommonBaseMapper<SopNodeTpl> { public interface SopNodeTplMapper extends CommonBaseMapper<SopNodeTpl> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopTplLink; import cn.com.glsx.process.modules.entity.SopTplLink;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopTplLinkMapper extends CommonBaseMapper<SopTplLink> { public interface SopTplLinkMapper extends CommonBaseMapper<SopTplLink> {
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper; ...@@ -2,6 +2,8 @@ package cn.com.glsx.process.modules.mapper;
import cn.com.glsx.process.modules.entity.SopTplNode; import cn.com.glsx.process.modules.entity.SopTplNode;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper; import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface SopTplNodeMapper extends CommonBaseMapper<SopTplNode> { public interface SopTplNodeMapper extends CommonBaseMapper<SopTplNode> {
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!