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;
	}
	
}
最近下载更多
FelixXu  LV2 2024年5月20日
陈小灏  LV18 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日
最近浏览更多
ryadmin123  LV2 2月7日
quartz  LV8 2024年6月18日
FelixXu  LV2 2024年5月20日
genyuan2014  LV6 2024年4月27日
hmf1989 2024年4月26日
暂无贡献等级
小旭123  LV1 2024年3月24日
Sylvie 2024年3月19日
暂无贡献等级
heifenglei  LV7 2024年2月23日
微信网友_6050164023693312  LV2 2023年12月27日
WBelong  LV8 2023年12月25日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友