新城项目

来自ling
跳转至: 导航搜索

单点登录时,如果没有用户应报错

EKPSSOClientAuthenticationFilter

如遇系统后台更新不能登录,请在登入页面显示“系统维护中”的字样

用户失效的时候应该把loginaccount也变成disable

改接口

所有页面可以按照人员名称和账号搜索,人员名称显示为中文

package com.deloitte.tms.tom.tom.base.ctrlhandler;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.deloitte.tms.tom.srv.base.service.USRBaseUserService;
import com.deloitte.tms.tom.srv.security.service.BaseUserService;
import com.deloitte.tms.tom.util.AssertHelper;

import net.ibizsys.paas.core.DEDataSetCond;
import net.ibizsys.paas.core.DEDataSetFetchContext;
import net.ibizsys.paas.core.IDEDataSetCond;
import net.ibizsys.paas.db.DBFetchResult;
import net.ibizsys.paas.service.ServiceGlobal;
import net.ibizsys.paas.util.spring.IBizOverride;

/**
 * 
 * 
 * @author bo.wang
 */
@IBizOverride
public class USROrgUserPickupGridViewGridHandler extends OrgUserPickupGridViewGridHandler {

    public USROrgUserPickupGridViewGridHandler() {
        super();
    }
    @Override
    protected DBFetchResult fetchDEDataSet(DEDataSetFetchContext deDataSetFetchContext) throws Exception {
    	List<IDEDataSetCond> userConditions = deDataSetFetchContext.getConditionList();
    	Map<String,String> map = new HashMap<String,String>();
		for (IDEDataSetCond ideDataSetCond : userConditions) {
			String defName = ideDataSetCond.getDEFName();
			String condValue = ideDataSetCond.getCondValue();
			map.put(defName, condValue);
		}
		String[] n_userdata_likes=deDataSetFetchContext.getWebContext().getRequest().getParameterMap().get("n_userdata_like");
		if(n_userdata_likes.length>0) {
			String name=n_userdata_likes[0];
			if(AssertHelper.notEmpty(name)) {
//				USRBaseUserService userService=(USRBaseUserService)ServiceGlobal.getService(BaseUserService.class);
//				List<String> userIds=userService.findUserIdByUserNameOrName(name);
//				if(userIds.size()>0) {
//					//通过查询出来的结果来查询reqH
//					DEDataSetCond deDataSetCondImpl = new DEDataSetCond();
//					deDataSetCondImpl.setCondType(IDEDataSetCond.CONDTYPE_CUSTOM);
//					String con = " ORGUSERID in (";
//					for (String item : userIds) {
//						con += "'" + item + "',";
//					}
//					con = con.substring(0, con.length() - 1);
//					con += ")";
//					deDataSetCondImpl.setCustomCond(con);
//					deDataSetFetchContext.getConditionList().add(deDataSetCondImpl);
//				}else {
//					//通过查询出来的结果来查询reqH
//					DEDataSetCond deDataSetCondImpl = new DEDataSetCond();
//					deDataSetCondImpl.setCondType(IDEDataSetCond.CONDTYPE_CUSTOM);
//					String con = " 1=2 ";
//					deDataSetCondImpl.setCustomCond(con);
//					deDataSetFetchContext.getConditionList().add(deDataSetCondImpl);
//				}
				//通过查询出来的结果来查询SQL
				DEDataSetCond deDataSetCondImpl = new DEDataSetCond();
				deDataSetCondImpl.setCondType(IDEDataSetCond.CONDTYPE_CUSTOM);
				String con = " UPPER(T1.USERDATA) LIKE '%"+name+"%'" ;
				deDataSetCondImpl.setCustomCond(con);
				deDataSetFetchContext.getConditionList().add(deDataSetCondImpl);
			}
		}
        return  this.getRealService().fetchDefault(deDataSetFetchContext);
    }
}