if(p_id!=0&&p_type!=0){
Rebate re = new Rebate();
Rebaterule re_rule = null;
double flje = 0.0;
if(p_type==3){
Organization or = organizationDao.getOrganizationById(p_id);
double qbsj = or.getFlqb();
_xf.setXFLX("02");
re_rule = rebateRuleDao.findRebateRuleByLx("02");
if(re_rule!=null){
flje = xfje*re_rule.getFLLV();
re.setFLED(flje);
re.setFLSJ(date);
re.setFLSYFBH(p_id);
re.setFLLX("02");
or.setFlqb(qbsj+flje);
re.setRESERVATION01(u.getTruename());
re.setRESERVATION02(u.getId()+"");
re.setRESERVATION03(or.getJGMC());
organizationDao.updateOrganization(or);
rebateDao.createRebate(re);
}
}
if(p_type==2){