package com.action.car;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.java.Outcm;
import com.opensymphony.xwork2.ActionSupport;
import com.service.intface.car.CarService;
import com.service.utils.Constants;
public class OutcarAction extends ActionSupport {
	private CarService carService;
	private List message;
	public List getMessage() {
		return message;
	}
	public void setMessage(List message) {
		this.message = message;
	}
	public String out() throws Exception {
		// TODO Auto-generated method stub
		HttpServletRequest re = ServletActionContext.getRequest();
		String[] a =re.getParameterValues("Id");
		System.out.println(a[0]);
		List l=new ArrayList();
		if(a[0]!=null){
			l = carService.QueryById(new Long(a[0].trim()),Constants.OUTCM);
		} 
		setMessage(l);
		return SUCCESS;
	}
	
	public String oil() throws Exception {
		// TODO Auto-generated method stub
		HttpServletRequest re = ServletActionContext.getRequest();
		String[] a =re.getParameterValues("Id");
		System.out.println(a[0]);
		List l=new ArrayList();
		if(a[0]!=null){
			l = carService.QueryById(new Long(a[0].trim()),Constants.OILM);
		} 
		setMessage(l);
		return SUCCESS;
	}
	
	public String wx() throws Exception {
		// TODO Auto-generated method stub
		HttpServletRequest re = ServletActionContext.getRequest();
		String[] a =re.getParameterValues("Id");
		System.out.println(a[0]);
		List l=new ArrayList();
		if(a[0]!=null){
			l = carService.QueryById(new Long(a[0].trim()),Constants.SERM);
		} 
		setMessage(l);
		return SUCCESS;
	}
	public String gf() throws Exception {
		// TODO Auto-generated method stub
		HttpServletRequest re = ServletActionContext.getRequest();
		String[] a =re.getParameterValues("Id");
		System.out.println(a[0]);
		List l=new ArrayList();
		if(a[0]!=null){
			l = carService.QueryById(new Long(a[0].trim()),Constants.FEESM);
		} 
		setMessage(l);
		return SUCCESS;
	}
	
	
	
	public CarService getCarService() {
		return carService;
	}
	public void setCarService(CarService carService) {
		this.carService = carService;
	}
	
}
最近下载更多
陈小灏  LV14 2023年3月2日
chenchen33  LV1 2022年3月13日
何俊霖  LV2 2021年11月4日
1813612654  LV9 2021年10月26日
zjr355870191  LV1 2021年5月19日
戒烟失败  LV3 2021年5月14日
周志超  LV2 2021年4月23日
0_1573_0  LV11 2021年4月20日
蘑菇  LV1 2021年4月11日
Wish  LV1 2021年3月27日
最近浏览更多
小旭123  LV1 3月24日
Sylvie 3月19日
暂无贡献等级
heifenglei  LV7 2月23日
微信网友_6050164023693312  LV2 2023年12月27日
WBelong  LV7 2023年12月25日
qq2901732871  LV9 2023年11月9日
wersdfs  LV1 2023年10月23日
haotzy  LV3 2023年10月8日
寂寞沙洲冷111 2023年10月3日
暂无贡献等级
2036495585  LV9 2023年9月18日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友