首页>代码>java web酒店后台管理系统代码下载>/JavaPrj_9/src/com/hotelmaster/action/BusinessCalculationController.java
package com.hotelmaster.action;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import com.hotelmaster.service.BusinessService;

import java.io.FileOutputStream;


public class BusinessCalculationController extends MultiActionController {
	private final static Logger log = Logger.getLogger(BusinessCalculationController.class);
	private BusinessService businessService;
	public ModelAndView init(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		// start to write something to the log
		log.info("Someone come from ip address <"
				+ request.getRemoteAddr() + ">");
		System.out.println("reach BusinessController");
		
		//roomInfo=businessService.findRoomDetails("8108");
		
		return new ModelAndView("business");
	}
	
	public void calucationGuestByMonth(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		String year = null;
		if ((String) request.getParameter("year").trim() != null) {
			year = (String) request.getParameter("year").trim();
			log.info(year);
		} else {
			log.info("year is null");
			return;
		}
		for(int i = 1;i<=12;i++){
			
		}
	}
	
	public void calculateAccommodationByQuarter(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		String year = null;
		if ((String) request.getParameter("year").trim() != null) {
			year = (String) request.getParameter("year").trim();
			log.info(year);
		} else {
			log.info("year is null");
			return;
		}
		Map<String,String> map = new HashMap<String,String>();
		map = businessService.calculateAccommodationByQuarter(year);
		log.info(map);
	
	}
	/***************************************************************/

	public BusinessService getBusinessService() {
		return businessService;
	}

	public void setBusinessService(BusinessService businessService) {
		this.businessService = businessService;
	}
	
}
最近下载更多
微笑刺客  LV21 2024年11月25日
张泽帅  LV6 2024年10月17日
不不要  LV1 2024年5月15日
rrya58  LV1 2024年5月12日
微信网友_6906962132258816  LV7 2024年4月15日
大大大大大大D  LV2 2024年1月3日
12345678aaa  LV1 2023年12月19日
2741658843  LV1 2023年12月15日
sworduhan  LV1 2023年12月9日
asdfasfs12321  LV1 2023年10月25日
最近浏览更多
唐唐丶  LV34 2月17日
srl2881552  LV10 1月7日
2602275348  LV12 2024年12月24日
拜托你仔细听  LV3 2024年12月23日
微笑刺客  LV21 2024年11月25日
ww6688 2024年11月22日
暂无贡献等级
张泽帅  LV6 2024年10月17日
shunlun8855  LV1 2024年10月14日
DelinDelin 2024年8月3日
暂无贡献等级
是数据库  LV3 2024年7月31日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友