用户信息管理、车辆信息管理、故障信息管理、 维修订单管理、零件管理、统计管理等功能
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.PartsInfoService;
import com.util.Result;
@Controller
@RequestMapping("/partsinfo")
public class PartsInfoController {
@Resource
private PartsInfoService ps;
@RequestMapping("/buy.do")
@ResponseBody
public Result buyParts(String id) {
System.out.println("进入PartsInfoController/buy.do");
Result rs=ps.buyParts(id);
System.out.println(rs);
return rs;
}
@RequestMapping("/use.do")
@ResponseBody
public Result useParts(String id) {
System.out.println("进入PartsInfoController/use.do");
Result rs=ps.useParts(id);
System.out.println(rs);
return rs;
}
@RequestMapping("/show.do")
@ResponseBody
public Result findAllParts() {
System.out.println("进入PartsInfoController/show.do");
Result rs=ps.findAllParts();
System.out.println(rs);
return rs;
}
}
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.PersonalInfoService;
import com.service.UserService;
import com.util.Result;
@Controller
@RequestMapping("/personalinfo")
public class PersonalInfoController {
@Resource
private PersonalInfoService ps;
@RequestMapping("/update.do")
@ResponseBody
public Result execute(String user_id,String real_name,String sex,String birthday,
String email,String address,String tel_num,String remark){
System.out.println("进入controller");
Result rs=ps.updatePersonalInfo(user_id, real_name, sex, birthday, email, address, tel_num, remark);
System.out.println(rs.toString());
return rs;
}
@RequestMapping("/show.do")
@ResponseBody
public Result execute(String user_id){
System.out.println("进入controller");
Result rs=ps.showPersonalInfo(user_id);
System.out.println(rs.toString());
return rs;
}
}
获取完整源码:
大家点赞、收藏、关注、评论啦 、查看 微信公众号获取联系
免费领取下载链接-公众号输入口令:038