Browse Source

--update column auth_status VARCHAR(2);

zzy.zhiyuan.foxmail 8 years ago
parent
commit
d8f33cd8e2

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

@ -6,6 +6,7 @@ import org.jfw.apt.orm.annotation.entry.Table;
6 6
import org.jfw.apt.orm.annotation.entry.Unique;
7 7
import org.jfw.apt.orm.annotation.entry.Uniques;
8 8
import org.jfw.apt.orm.core.defaultImpl.FixLenStringHandler;
9
import org.jfw.apt.orm.core.defaultImpl.StringHandler;
9 10
import org.jfw.apt.orm.core.enums.DE;
10 11
11 12
import com.ekexiu.portal.basepo.BaseOrganization;
@ -124,7 +125,7 @@ public class Organization extends BaseOrganization implements CreateTimeSupporte
124 125
	public void setIsJoin(String isJoin) {
125 126
		this.isJoin = isJoin;
126 127
	}
127
	@Column(handlerClass=FixLenStringHandler.class,dbType="CHAR(2)",renewable=false)
128
	@Column(handlerClass=StringHandler.class,dbType="VARCHAR(2)",renewable=false)
128 129
	public String getAuthStatus() {
129 130
		return authStatus;
130 131
	}

+ 4 - 1
src/main/java/com/ekexiu/portal/service/SysService.java

@ -519,8 +519,11 @@ public class SysService {
519 519
			if(this.orgUserDao.queryOne(con, orgId) == null){
520 520
				return true;
521 521
			}else{
522
				if("3".equals(this.orgDao.query(con, orgId).getAuthStatus())){
522
				String authStatus = (this.orgDao.query(con, orgId)).getAuthStatus();
523
				if("3".equals(authStatus)){
523 524
					throw new JfwBaseException(3, "该企业为科袖认证企业");
525
				}else if("2".equals(authStatus)){
526
					throw new JfwBaseException(4, "该企业正在进行认证审核");
524 527
				}else{
525 528
					throw new JfwBaseException(2, "该企业已注册科袖账号");
526 529
				}