01 | package com.controller; |
03 | import javax.annotation.Resource; |
05 | import org.springframework.stereotype.Controller; |
06 | import org.springframework.web.bind.annotation.RequestMapping; |
07 | import org.springframework.web.bind.annotation.ResponseBody; |
09 | import com.service.CarInfoService; |
10 | import com.service.TroubleInfoService; |
11 | import com.util.Result; |
14 | @RequestMapping ( "/troubleinfo" ) |
15 | public class TroubleInfoController { |
17 | private TroubleInfoService ts; |
19 | @RequestMapping ( "/add.do" ) |
21 | public Result addTroubleInfo(String trouble_code, String trouble_name, String trouble_remark) { |
22 | System.out.println( "쏵흙TroubleInfoController/add.do" ); |
23 | Result rs= ts.addTroubleInfo(trouble_code, trouble_name, trouble_remark); |
24 | System.out.println(rs.toString()); |
29 | @RequestMapping ( "/show.do" ) |
31 | public Result troubleList() { |
32 | System.out.println( "쏵흙TroubleInfoController/show.do" ); |
33 | Result rs=ts.troubleList(); |
34 | System.out.println(rs.toString()); |
38 | @RequestMapping ( "/change.do" ) |
40 | public Result changStatus(String id) { |
41 | System.out.println( "쏵흙TroubleInfoController/change.do" ); |
42 | Result rs=ts.changStatus(id); |
43 | System.out.println(rs.toString()); |