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; } }
最近下载更多
微信网友_6906962132258816 LV6
4月15日
大大大大大大D LV2
1月3日
12345678aaa LV1
2023年12月19日
2741658843 LV1
2023年12月15日
sworduhan LV1
2023年12月9日
asdfasfs12321 LV1
2023年10月25日
fish_oil LV1
2023年9月30日
byk123321 LV1
2023年9月4日
jiuyueyi LV1
2023年7月10日
微信网友_6508798513811456 LV5
2023年6月20日
最近浏览更多
微信网友_6906962132258816 LV6
4月15日
FFF112233 LV8
4月1日
qqFFFFF LV8
3月26日
Hopu2024 LV2
2月22日
yanixh LV1
2月19日
fesfefe LV13
1月28日
xiongwei11231 LV8
1月15日
冰淇淋kk
1月13日
暂无贡献等级
heshao LV2
1月11日
lo8lukoukoum LV4
1月8日