首页>代码>基于SSM实现的车辆维修管理系统>/源代码/car-repair/src/main/java/com/controller/TroubleInfoController.java
package com.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.service.CarInfoService;
import com.service.TroubleInfoService;
import com.util.Result;

@Controller
@RequestMapping("/troubleinfo")
public class TroubleInfoController {
	@Resource
	private TroubleInfoService ts;
		
	@RequestMapping("/add.do")
	@ResponseBody
	public Result addTroubleInfo(String trouble_code, String trouble_name, String trouble_remark) {
		System.out.println("쏵흙TroubleInfoController/add.do");
		Result rs= ts.addTroubleInfo(trouble_code, trouble_name, trouble_remark);
		System.out.println(rs.toString());
		return rs;
	}
	
	
	@RequestMapping("/show.do")
	@ResponseBody
	public Result troubleList() {
		System.out.println("쏵흙TroubleInfoController/show.do");
		Result rs=ts.troubleList();
		System.out.println(rs.toString());
		return rs;
	}

	@RequestMapping("/change.do")
	@ResponseBody
	public Result changStatus(String id) {
		System.out.println("쏵흙TroubleInfoController/change.do");
		Result rs=ts.changStatus(id);
		System.out.println(rs.toString());
		return rs;
	}
}
最近下载更多
java小书童  LV18 7月23日
xzg123456  LV6 6月19日
quartz  LV8 6月18日
sweetlove  LV20 6月13日
胡闹的番茄精  LV2 6月10日
luyuly  LV10 5月21日
29478439  LV4 5月13日
JulyMagnolia  LV4 4月29日
genyuan2014  LV6 4月27日
最近浏览更多
897258976  LV8 8月29日
abdkfksdkf  LV15 8月25日
绝对零度  LV4 8月8日
cyd yyds  LV2 8月2日
疯狂小太阳 7月9日
暂无贡献等级
柳咪华沙  LV7 6月29日
xzg123456  LV6 6月19日
chenranr  LV10 6月15日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友