无标题文章

public String ylsjqs(){

String jsonData="";

TbUserInfo user = (TbUserInfo)getSession().get(GlobalConstants.SESSION_USER_INFO);

String gzdwid = this.getServletRequest().getParameter("gzdwid");

String bxnd = this.getServletRequest().getParameter("bxnd");

if(null == user){

throw new BusinessException("操作人员为空,请重新登录!");

}

ZhjfBean zhjfBean=new ZhjfBean();

zhjfBean.setpBxnd(bxnd);

zhjfBean.setpCztcq(user.getTcq());

if (gzdwid!=null){

zhjfBean.setpCzdwid(gzdwid);

}

else {

zhjfBean.setpCzdwid(user.getDwid());

}

zhjfBean.setpCzrid(user.getLogon_name());

zhjfBean.setpCzrxm(user.getUser_name());

HistoryUtil.toYlsjqs(zhjfBean);

int rtnCode=zhjfBean.getP_RtnCode();

String rtnMsg=zhjfBean.getP_RrtnMsg();

if(rtnCode==0)

jsonData = "{\"success\":true,\"rtnMsg\":\""+rtnMsg+"\"}";

else throw new BusinessException(rtnMsg);

createJSonData(jsonData);

return AJAX;

}

你可能感兴趣的:(无标题文章)