首页>代码>SSM(spring+springmvc+mybatis)开发汽车维修管理系统>/car-repair/src/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;
	}
}
最近下载更多
可是不知道么  LV23 2月26日
lwllll  LV2 2023年9月26日
jiyun2021  LV9 2023年9月1日
hhhttu  LV2 2023年5月21日
ewan007  LV29 2023年4月12日
哈哈ha zhh  LV2 2023年2月26日
LITIANYU084414  LV11 2023年1月4日
微信网友_6112976589262848  LV2 2022年12月8日
微信网友_6248713511227392  LV11 2022年12月5日
杜宇林  LV2 2022年12月5日
最近浏览更多
小旭123  LV1 3月24日
midyn203  LV2 2月5日
anhe143 1月18日
暂无贡献等级
Hanruobing 1月8日
暂无贡献等级
abc1234cc 2023年12月29日
暂无贡献等级
WBelong  LV7 2023年12月26日
qq2901732871  LV9 2023年12月6日
jkjfdgbkl  LV2 2023年11月2日
啦啦啦嘿嘿嘿  LV5 2023年11月1日
爽朗的凯  LV2 2023年10月30日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友