首页>代码>基于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;
	}
}
最近下载更多
luhong  LV3 5月6日
zolscy  LV24 2024年11月24日
zouzou123  LV3 2024年10月18日
java小书童  LV18 2024年7月23日
xzg123456  LV6 2024年6月19日
quartz  LV8 2024年6月18日
sweetlove  LV20 2024年6月13日
胡闹的番茄精  LV2 2024年6月10日
luyuly  LV10 2024年5月21日
29478439  LV4 2024年5月13日
最近浏览更多
lkke23047  LV1 5月26日
小浩030629  LV1 5月8日
luhong  LV3 5月6日
15838634741  LV18 4月7日
暂无贡献等级
哪里的完整版  LV8 3月1日
docnnxxy688 3月1日
暂无贡献等级
ryadmin123  LV2 2月7日
段池卿  LV3 1月19日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友