jiapeng 6 years ago
parent
commit
a6f805e9cf

+ 14 - 9
src/main/java/com/ekexiu/project/bridge/resource/po/Bridge.java

@ -1,11 +1,17 @@
1 1
package com.ekexiu.project.bridge.resource.po;
2 2

3 3
import org.jfw.apt.orm.annotation.entry.Column;
4
import org.jfw.apt.orm.annotation.entry.PrimaryKey;
4 5
import org.jfw.apt.orm.annotation.entry.Table;
6
import org.jfw.apt.orm.annotation.entry.Unique;
7
import org.jfw.apt.orm.annotation.entry.Uniques;
5 8
import org.jfw.apt.orm.core.enums.DE;
6 9

7 10
import com.ekexiu.project.bridge.base.po.BaseTable;
8 11

12

13
@Uniques({@Unique(clolumns="shortName",name="UC_BRIDEG_SHORTNAME"),@Unique(clolumns="name",name="UC_BRIDEG_TNAME")})
14
@PrimaryKey("id")
9 15
@Table(descp="桥梁信息")
10 16
public class Bridge  implements BaseTable{
11 17
	private String createTime;
@ -13,7 +19,7 @@ public class Bridge  implements BaseTable{
13 19
	private String creator;
14 20
	private String modifier;
15 21
	
16
	
22
	private String id;
17 23
	private String code;
18 24
	private String shortName;
19 25
	private String name;
@ -30,14 +36,13 @@ public class Bridge  implements BaseTable{
30 36
	private boolean active;
31 37
	
32 38
	
33
	
34
	
35
	
36
	
37
	
38
	
39
	
40
	
39
	@Column(descp="id",value=DE.id_32)
40
	public String getId() {
41
		return id;
42
	}
43
	public void setId(String id) {
44
		this.id = id;
45
	}
41 46
	@Column(descp="是否可用",value=DE.boolean_de)	
42 47
	public boolean isActive() {
43 48
		return active;

+ 24 - 7
src/main/java/com/ekexiu/project/bridge/resource/po/BridgeServer.java

@ -1,11 +1,13 @@
1 1
package com.ekexiu.project.bridge.resource.po;
2 2

3 3
import org.jfw.apt.orm.annotation.entry.Column;
4
import org.jfw.apt.orm.annotation.entry.PrimaryKey;
4 5
import org.jfw.apt.orm.annotation.entry.Table;
5 6
import org.jfw.apt.orm.core.enums.DE;
6 7

7 8
import com.ekexiu.project.bridge.base.po.BaseTable;
8 9

10
@PrimaryKey("id")
9 11
@Table(descp="采集服务器")
10 12
public class BridgeServer implements BaseTable {
11 13
	private String createTime;
@ -13,8 +15,10 @@ public class BridgeServer implements BaseTable {
13 15
	private String creator;
14 16
	private String modifier;
15 17
	
18
	private String id;
16 19
	private String code;
17
	private String bridgeCode;
20
	private String seq;
21
	private String bridgeId;
18 22
	private String ip;
19 23
	private int devices;
20 24
	private String remark;
@ -23,7 +27,20 @@ public class BridgeServer implements BaseTable {
23 27
	
24 28
	
25 29
	
26
	
30
	@Column(descp="id",value=DE.id_32)
31
	public String getId() {
32
		return id;
33
	}
34
	public void setId(String id) {
35
		this.id = id;
36
	}
37
	@Column(descp="内部编号",value=DE.text_de)
38
	public String getSeq() {
39
		return seq;
40
	}
41
	public void setSeq(String seq) {
42
		this.seq = seq;
43
	}
27 44
	@Column(descp="是否可用",value=DE.boolean_de)	
28 45
	public boolean isActive() {
29 46
		return active;
@ -38,12 +55,12 @@ public class BridgeServer implements BaseTable {
38 55
	public void setCode(String code) {
39 56
		this.code = code;
40 57
	}
41
	@Column(descp="采集服务器所属桥梁编号",value=DE.text_de)
42
	public String getBridgeCode() {
43
		return bridgeCode;
58
	@Column(descp="采集服务器所属桥梁Id",value=DE.text_de)
59
	public String getBridgeId() {
60
		return bridgeId;
44 61
	}
45
	public void setBridgeCode(String bridgeCode) {
46
		this.bridgeCode = bridgeCode;
62
	public void setBridgeId(String bridgeId) {
63
		this.bridgeId = bridgeId;
47 64
	}
48 65
	@Column(descp="采集服务器IP",value=DE.text_de)
49 66
	public String getIp() {

+ 24 - 7
src/main/java/com/ekexiu/project/bridge/resource/po/CollectDevice.java

@ -1,15 +1,19 @@
1 1
package com.ekexiu.project.bridge.resource.po;
2 2

3 3
import org.jfw.apt.orm.annotation.entry.Column;
4
import org.jfw.apt.orm.annotation.entry.PrimaryKey;
4 5
import org.jfw.apt.orm.annotation.entry.Table;
5 6
import org.jfw.apt.orm.core.enums.DE;
6 7

7 8
import com.ekexiu.project.bridge.base.po.BaseTable;
8 9

10
@PrimaryKey("id")
9 11
@Table(descp="采集盒")
10 12
public class CollectDevice implements BaseTable {
13
	private String id;
14
	private String seq;
11 15
	private String code;
12
	private String serverCode;
16
	private String serverId;
13 17
	private int	channels;
14 18
	private String remark;
15 19
	private boolean active;
@ -24,7 +28,20 @@ public class CollectDevice implements BaseTable {
24 28
	
25 29
	
26 30
	
27
	
31
	@Column(descp="id",value=DE.id_32)
32
	public String getId() {
33
		return id;
34
	}
35
	public void setId(String id) {
36
		this.id = id;
37
	}
38
	@Column(descp="内部编号",value=DE.text_de)
39
	public String getSeq() {
40
		return seq;
41
	}
42
	public void setSeq(String seq) {
43
		this.seq = seq;
44
	}
28 45
	@Column(descp="采集盒编号",value=DE.text_de)
29 46
	public String getCode() {
30 47
		return code;
@ -32,12 +49,12 @@ public class CollectDevice implements BaseTable {
32 49
	public void setCode(String code) {
33 50
		this.code = code;
34 51
	}
35
	@Column(descp="采集盒所属服务器编号",value=DE.text_de)
36
	public String getServerCode() {
37
		return serverCode;
52
	@Column(descp="采集盒所属服务器ID",value=DE.text_de)
53
	public String getServerId() {
54
		return serverId;
38 55
	}
39
	public void setServerCode(String serverCode) {
40
		this.serverCode = serverCode;
56
	public void setServerId(String serverId) {
57
		this.serverId = serverId;
41 58
	}
42 59
	@Column(descp="采集盒信道数量",value=DE.int_de)
43 60
	public int getChannels() {

+ 24 - 5
src/main/java/com/ekexiu/project/bridge/resource/po/Transducer.java

@ -1,13 +1,17 @@
1 1
package com.ekexiu.project.bridge.resource.po;
2 2

3 3
import org.jfw.apt.orm.annotation.entry.Column;
4
import org.jfw.apt.orm.annotation.entry.PrimaryKey;
4 5
import org.jfw.apt.orm.annotation.entry.Table;
5 6
import org.jfw.apt.orm.core.enums.DE;
6 7

8
@PrimaryKey("id")
7 9
@Table(descp="传感器")
8 10
public class Transducer {
11
	private String id;
9 12
	private String code;
10
	private String deviceCode;
13
	private String deviceId;
14
	private String seq;
11 15
	private String cableType;
12 16
	private String locType;
13 17
	private String remark;
@ -18,6 +22,21 @@ public class Transducer {
18 22
	private String creator;
19 23
	private String modifier;
20 24
	
25
	
26
	@Column(descp="id",value=DE.id_32)
27
	public String getId() {
28
		return id;
29
	}
30
	public void setId(String id) {
31
		this.id = id;
32
	}
33
	@Column(descp="内部编号",value=DE.text_de)
34
	public String getSeq() {
35
		return seq;
36
	}
37
	public void setSeq(String seq) {
38
		this.seq = seq;
39
	}
21 40
	@Column(descp="采集盒编号",value=DE.text_de)
22 41
	public String getCode() {
23 42
		return code;
@ -26,11 +45,11 @@ public class Transducer {
26 45
		this.code = code;
27 46
	}
28 47
	@Column(descp="传感器编号",value=DE.text_de)
29
	public String getDeviceCode() {
30
		return deviceCode;
48
	public String getDeviceId() {
49
		return deviceId;
31 50
	}
32
	public void setDeviceCode(String deviceCode) {
33
		this.deviceCode = deviceCode;
51
	public void setDeviceId(String deviceId) {
52
		this.deviceId = deviceId;
34 53
	}
35 54
	@Column(descp="传感器所在主缆(dict)",value=DE.text_de)
36 55
	public String getCableType() {