String czjf = "";
String[] is_nore = request.getParameterValues("is_nore");
if(rtUser!=null&&rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
long _mid = rtUser.getOrganizationid();
Merchant _m = merchantDao.getMerchantById(_mid);
Rechargehistory rechargeh = new Rechargehistory();
rechargeh.setCZYHBH(rtUser);
rechargeh.setCZSJ(new Date());
rechargeh.setRESERVATION01(Rechargehistory.RECHARGEHISTORY_CZLX_SDCZ);
rechargeh.setCzzt(Rechargehistory.RECHARGEHISTORY_INIT);
rechargeh.setCZJE(Double.parseDouble(czje==null?"0":czje));
if(is_nore!=null&&is_nore.length > 0){
czjf = request.getParameter("czjf");
rechargeh.setRESERVATION02("02");//设定为不返利
}else{
czjf = Double.parseDouble(czje==null?"0":czje)*10+"";
rechargeh.setRESERVATION02("01");//设定为返利
}
rechargeh.setCZDHJFS(Double.parseDouble(czjf==null?"0":czjf));
rechargeh.setCZYHLX("02");
if(_m!=null){
rechargeh.setMerchant(_m);
}
rechargehistoryDao.createRechargeHistory(rechargeh);
request.setAttribute("rechargehistory", rechargeh);
}
return "/management/recharge/result_rechargehistory";