首页>代码>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日