⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intergralcumulatesearchaction.java

📁 自己制作的联通CRM,支持客户分类,管理,升级,积分管理等等..
💻 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 + -