package ncc.pub.wy.constant;

import java.io.Serializable;

import nc.bs.framework.common.NCLocator;
import nc.itf.uap.IUAPQueryBS;
import nc.jdbc.framework.processor.ColumnProcessor;
import nc.vo.pub.BusinessException;

/**
 * @Description: 常量
 * 
 * @author 周蓝萍 【碧桂园服务NCC项目】
 * @date 2020-12-03
 * @version with NCC
 */
public class WyConstants implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * esb请求
	 */
	public final static String  ESBINFO="esbInfo";
	public final static String QUERYINFO="queryInfo";
	public final static String  RESULTINFO="resultInfo";
	public final static String   RESULTLIST="resultlist";
	//接口返回状态：S（成功）/W（警告）/E（错误）
	public final static String   RESULTSTATUS="returnStatus";
	public final static String  RETURNMSG="returnMsg";
	//集团
	public static final String GROUPID="0001H910000000000BLO";
	//指定数据源
	public static final String NUMSOURSE="NCCDATA";//生产环境
	 //NCC管理员
	public static String NCCADMIN_CUSERID = null;
	
	public WyConstants() {
		NCCADMIN_CUSERID = queryUserId();
	} 
	
	public final static String queryUserId() {
		String userId = "";
		String sql = "select cuserid from sm_user where user_code ='NCCadmin'";    
		try {
			   userId = (String) NCLocator.getInstance().lookup(IUAPQueryBS.class).executeQuery(sql, new ColumnProcessor());
		} catch (BusinessException e) {
			e.printStackTrace();
		}
		return userId;
	}

}
