/**
* 从request得到POJO类.
*/
private SystemUser getSystemUser(HttpServletRequest request) {
SystemUser systemUser = new SystemUser();
String id = (null == request.getParameter("id") ? "" : request
.getParameter("id"));
if (!"".equals(id))
systemUser.setId(Long.parseLong(id));
systemUser.setLoginName((null == request.getParameter("loginName") ? ""
: request.getParameter("loginName")));
systemUser.setPasswd((null == request.getParameter("passwd") ? ""
: request.getParameter("passwd")));
systemUser.setName((null == request.getParameter("name") ? "" : request
.getParameter("name")));
systemUser.setPhone((null == request.getParameter("phone") ? ""
: request.getParameter("phone")));
systemUser.setEmail((null == request.getParameter("email") ? ""
: request.getParameter("email")));
/*
* systemUser.setCreateDate((null == request.getParameter("createDate")
* ? "" : request .getParameter("createDate")));
*/
systemUser.setIslock((null == request.getParameter("islock") ? ""
: request.getParameter("islock")));
systemUser
.setLoginTimes((null == request.getParameter("loginTimes") ? ""
: request.getParameter("loginTimes")));
systemUser.setLastLogin((null == request.getParameter("lastLogin") ? ""
: request.getParameter("lastLogin")));
return systemUser;
}