📄 intergralcumulatesearchaction.java
字号:
package com.jn0801.intergral.detail;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
/**
* 累积积分查询的Action类
* @author jzh
*
*/
public class IntergralCumulateSearchAction extends DispatchAction {
/**
* 显示累积积分页面
* @param mapping
* @param form
* @param request
* @param response
* @return
*/
public ActionForward show(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
IntergralCumulateSearchForm intergralCumulateSearchForm
= (IntergralCumulateSearchForm) form;
return mapping.findForward("show");
}
/**
* 查询累积积分
* @param mapping
* @param form
* @param request
* @param response
* @return
*/
public ActionForward search(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
IntergralCumulateSearchForm intergralCumulateSearchForm
= (IntergralCumulateSearchForm) form;
IntergralSearchInf isi = new IntergralSearchImp();
//获取数据
String phone = intergralCumulateSearchForm.getPhone();
int intergral_start = intergralCumulateSearchForm.getIntergral_start();
int intergral_end = intergralCumulateSearchForm.getIntergral_end();
CumulateIntergral cumulateIntergral
= isi.searchCumulateIntegral(phone, intergral_start, intergral_end);
request.setAttribute("cumulateIntergral", cumulateIntergral);
return mapping.findForward("show");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -