package cn.updev.EventWeight.Rate;

/**
 * Created by hypo on 15-11-24.
 */
public class EventGroupRateManage {
}

@@ -33,82 +33,884 @@
 e;%0A%0A
-/**%0A * Created by hypo on 15-11-24.%0A */%0Apublic class EventGroupRateManage %7B
+import org.apache.struts2.ServletActionContext;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpSession;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Created by hypo on 15-11-24.%0A */%0Apublic class EventGroupRateManage %7B%0A%0A    HttpServletRequest request;%0A    HttpSession session;%0A%0A    public EventGroupRateManage() %7B%0A        this.request = ServletActionContext.getRequest();%0A        this.session = request.getSession();%0A    %7D%0A%0A    public void setEventGroupRate(List%3CInteger%3E groupIds)%7B%0A%0A        List%3CEventGroupRate%3E list = new ArrayList%3CEventGroupRate%3E();%0A%0A        for(Integer groupId : groupIds)%7B%0A            EventGroupRate groupRate = new EventGroupRate(groupId);%0A            if(groupRate.getGroupRate() != 100)%7B%0A%0A                list.add(groupRate);%0A            %7D%0A        %7D%0A%0A        session.setAttribute(%22eventGroupRate%22, list);%0A    %7D
 %0A%7D%0A

update EventGroupRateManage