——————————DescriptionStart——————————
运行环境
Java≥8、MySQL≥5.7、Node.js≥14
开发工具
后端:eclipse/idea/myeclipse/sts等均可配置运行
前端:WebStorm/VSCode/HBuilderX等均可
❗没学过node.js的不要搞前后端分离项目
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明










基于javaweb的SpringBoot汽车租赁系统(java+springboot+vue+mysql+maven)
管理员
admin    123456
用户
user1    123456
user2    123456
user3    123456
业务员
业务员账号1    123456
业务员账号2    123456
租车流程:
前台用户租赁-后台业务员审核通过-前台用户归还-后台业务员生成租赁订单-前台用户支付订单……
——————————CodeStart——————————
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 
 |  * @email */
 @RestController
 @RequestMapping("/qicheleixing")
 public class QicheleixingController {
 @Autowired
 private QicheleixingService qicheleixingService;
 
 
 
 
 
 
 
 
 @RequestMapping("/page")
 public R page(@RequestParam Map<String, Object> params,QicheleixingEntity qicheleixing,
 HttpServletRequest request){
 EntityWrapper<QicheleixingEntity> ew = new EntityWrapper<QicheleixingEntity>();
 PageUtils page = qicheleixingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, qicheleixing), params), params));
 
 return R.ok().put("data", page);
 }
 
 
 
 
 @IgnoreAuth
 @RequestMapping("/list")
 public R list(@RequestParam Map<String, Object> params,QicheleixingEntity qicheleixing,
 HttpServletRequest request){
 EntityWrapper<QicheleixingEntity> ew = new EntityWrapper<QicheleixingEntity>();
 PageUtils page = qicheleixingService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, qicheleixing), params), params));
 return R.ok().put("data", page);
 }
 
 
 
 
 @RequestMapping("/lists")
 public R list( QicheleixingEntity qicheleixing){
 EntityWrapper<QicheleixingEntity> ew = new EntityWrapper<QicheleixingEntity>();
 ew.allEq(MPUtil.allEQMapPre( qicheleixing, "qicheleixing"));
 return R.ok().put("data", qicheleixingService.selectListView(ew));
 
 | 
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 
 | 
 
 
 
 
 
 
 
 
 @RestController
 @RequestMapping("/qicheguihai")
 
 | 
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 
 |    public R update(@RequestBody JianchaxinxiEntity jianchaxinxi, HttpServletRequest request){
 jianchaxinxiService.updateById(jianchaxinxi);
 return R.ok();
 }
 
 
 
 
 
 @RequestMapping("/delete")
 public R delete(@RequestBody Long[] ids){
 jianchaxinxiService.deleteBatchIds(Arrays.asList(ids));
 return R.ok();
 }
 
 
 
 
 @RequestMapping("/remind/{columnName}/{type}")
 public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
 @PathVariable("type") String type,@RequestParam Map<String, Object> map) {
 map.put("column", columnName);
 map.put("type", type);
 
 if(type.equals("2")) {
 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
 Calendar c = Calendar.getInstance();
 Date remindStartDate = null;
 Date remindEndDate = null;
 if(map.get("remindstart")!=null) {
 Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
 c.setTime(new Date());
 c.add(Calendar.DAY_OF_MONTH,remindStart);
 remindStartDate = c.getTime();
 map.put("remindstart", sdf.format(remindStartDate));
 }
 if(map.get("remindend")!=null) {
 Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
 c.setTime(new Date());
 c.add(Calendar.DAY_OF_MONTH,remindEnd);
 remindEndDate = c.getTime();
 map.put("remindend", sdf.format(remindEndDate));
 }
 }
 
 Wrapper<JianchaxinxiEntity> wrapper = new EntityWrapper<JianchaxinxiEntity>();
 if(map.get("remindstart")!=null) {
 wrapper.ge(columnName, map.get("remindstart"));
 }
 if(map.get("remindend")!=null) {
 wrapper.le(columnName, map.get("remindend"));
 }
 
 
 | 
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 
 |  * 后端接口* @email
 */
 @RestController
 @RequestMapping("/yonghu")
 public class YonghuController {
 @Autowired
 private YonghuService yonghuService;
 
 
 
 @Autowired
 private TokenService tokenService;
 
 
 
 
 @IgnoreAuth
 @RequestMapping(value = "/login")
 public R login(String username, String password, String captcha, HttpServletRequest request) {
 YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuzhanghao", username));
 if(user==null || !user.getMima().equals(password)) {
 return R.error("账号或密码不正确");
 }
 
 String token = tokenService.generateToken(user.getId(), username,"yonghu",  "用户" );
 return R.ok().put("token", token);
 }
 
 
 
 
 @IgnoreAuth
 @RequestMapping("/register")
 public R register(@RequestBody YonghuEntity yonghu){
 
 YonghuEntity user = yonghuService.selectOne(new EntityWrapper<YonghuEntity>().eq("yonghuzhanghao", yonghu.getYonghuzhanghao()));
 if(user!=null) {
 return R.error("注册用户已存在");
 
 | 
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 
 | public class ConfigController{
 @Autowired
 private ConfigService configService;
 
 
 
 
 @RequestMapping("/page")
 public R page(@RequestParam Map<String, Object> params,ConfigEntity config){
 EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
 PageUtils page = configService.queryPage(params);
 return R.ok().put("data", page);
 }
 
 
 
 
 @IgnoreAuth
 @RequestMapping("/list")
 public R list(@RequestParam Map<String, Object> params,ConfigEntity config){
 EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>();
 PageUtils page = configService.queryPage(params);
 return R.ok().put("data", page);
 }
 
 
 
 
 @RequestMapping("/info/{id}")
 public R info(@PathVariable("id") String id){
 ConfigEntity config = configService.selectById(id);
 return R.ok().put("data", config);
 }
 
 
 
 
 @IgnoreAuth
 @RequestMapping("/detail/{id}")
 public R detail(@PathVariable("id") String id){
 ConfigEntity config = configService.selectById(id);
 return R.ok().put("data", config);
 }
 
 
 
 
 @RequestMapping("/info")
 public R infoByName(@RequestParam String name){
 ConfigEntity config = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile"));
 return R.ok().put("data", config);
 }
 
 | 
——————————PayStart——————————
项目链接:
https://javayms.github.io?id=041923290309201ds
https://javayms.pages.dev?id=041923290309201ds