zzy.zhiyuan.foxmail лет назад: 8
Родитель
Сommit
becafb772b

+ 2 - 1
src/main/java/com/ekexiu/portal/basepo/BaseOrganization.java

2
2
3
import org.jfw.apt.orm.annotation.entry.Column;
3
import org.jfw.apt.orm.annotation.entry.Column;
4
import org.jfw.apt.orm.annotation.entry.Table;
4
import org.jfw.apt.orm.annotation.entry.Table;
5
import org.jfw.apt.orm.core.defaultImpl.StringHandler;
5
import org.jfw.apt.orm.core.enums.DE;
6
import org.jfw.apt.orm.core.enums.DE;
6
7
7
@Table(create=false)
8
@Table(create=false)
25
	public void setId(String id) {
26
	public void setId(String id) {
26
		this.id = id;
27
		this.id = id;
27
	}
28
	}
28
	@Column(value=DE.string_de,dbType="VARCHAR(100)",renewable=false)
29
	@Column(handlerClass=StringHandler.class,dbType="VARCHAR(100)",nullable=false,renewable=false)
29
	public String getName() {
30
	public String getName() {
30
		return name;
31
		return name;
31
	}
32
	}

+ 0 - 2
src/main/java/com/ekexiu/portal/dao/OrgDao.java

7
import org.jfw.apt.annotation.Nullable;
7
import org.jfw.apt.annotation.Nullable;
8
import org.jfw.apt.orm.annotation.dao.Column;
8
import org.jfw.apt.orm.annotation.dao.Column;
9
import org.jfw.apt.orm.annotation.dao.DAO;
9
import org.jfw.apt.orm.annotation.dao.DAO;
10
import org.jfw.apt.orm.annotation.dao.Dynamic;
11
import org.jfw.apt.orm.annotation.dao.method.From;
10
import org.jfw.apt.orm.annotation.dao.method.From;
12
import org.jfw.apt.orm.annotation.dao.method.operator.DeleteWith;
11
import org.jfw.apt.orm.annotation.dao.method.operator.DeleteWith;
13
import org.jfw.apt.orm.annotation.dao.method.operator.Insert;
12
import org.jfw.apt.orm.annotation.dao.method.operator.Insert;
40
	@From(Organization.class)
39
	@From(Organization.class)
41
	int updateAuthStatus(Connection con,String id,@Set String authStatus)throws SQLException;
40
	int updateAuthStatus(Connection con,String id,@Set String authStatus)throws SQLException;
42
	
41
	
43
	@Dynamic
44
	@Update
42
	@Update
45
	int update(Connection con,Organization org)throws SQLException;
43
	int update(Connection con,Organization org)throws SQLException;
46
	
44
	

+ 2 - 2
src/main/java/com/ekexiu/portal/po/Organization.java

117
	public void setQualification(String qualification) {
117
	public void setQualification(String qualification) {
118
		this.qualification = qualification;
118
		this.qualification = qualification;
119
	}
119
	}
120
	@Column(value=DE.SingleChar,renewable=false)
120
	@Column(handlerClass=FixLenStringHandler.class,dbType="CHAR(1)",renewable=false)
121
	public String getIsJoin() {
121
	public String getIsJoin() {
122
		return isJoin;
122
		return isJoin;
123
	}
123
	}
124
	public void setIsJoin(String isJoin) {
124
	public void setIsJoin(String isJoin) {
125
		this.isJoin = isJoin;
125
		this.isJoin = isJoin;
126
	}
126
	}
127
	@Column(value=DE.SingleChar,renewable=false)
127
	@Column(handlerClass=FixLenStringHandler.class,dbType="CHAR(1)",renewable=false)
128
	public String getAuthStatus() {
128
	public String getAuthStatus() {
129
		return authStatus;
129
		return authStatus;
130
	}
130
	}