return "/management/rebate/create_hdqb";
}
@RequestMapping("/rebate/hdtjsave.do")
public String hdtjSavePage(HttpServletRequest request,HttpServletResponse response){
RunTimeUser rtUser = RunTimeUser.getRunTimeUser(request);
String dhjf = request.getParameter("dhqb");
String dhfs = request.getParameter("dhfs");
ChargeIndex ci = null;
if(rtUser!=null&&rtUser.getUsertype()!=User.USER_TYPE_GSYG&&rtUser.getUsertype()!=User.USER_TYPE_NORMAL){
ci = new ChargeIndex();
ci.setDhfs(dhfs);
ci.setDhtjr(rtUser);
ci.setDhtjrq(new Date());
ci.setDhjfs(Double.parseDouble(dhjf));
ci.setDhzt(ChargeIndex.CHARGEINDEX_DHZT_INIT);
if(rtUser.getUsertype()==User.USER_TYPE_MERCHANT){
Merchant _m = merchantDao.getMerchantById(rtUser.getOrganizationid());
ci.setDhlx(ChargeIndex.CHARGEINDEX_DHLX_MERCHANT);
ci.setMerchantId(_m);
double qbsl = _m.getFlqb();
_m.setFlqb(qbsl-Double.parseDouble(dhjf));
merchantDao.updateMerchant(_m);
}else{
Organization _or = organizationDao.getOrganizationById(rtUser.getOrganizationid());
if(_or.getJGLX().equals("3")){
ci.setDhlx(ChargeIndex.CHARGEINDEX_DHLX_TGZ);
}
if(_or.getJGLX().equals("4")){
ci.setDhlx(ChargeIndex.CHARGEINDEX_DHLX_TGCENTER);