zoukankan      html  css  js  c++  java
  • 充值-server+impl

    package com.zhenshan.service;

    import java.util.List;

    import com.github.pagehelper.PageInfo;
    import com.zhenshan.entity.BorrowCar;
    import com.zhenshan.entity.Condition;

    public interface BorrowCarService {

    PageInfo<BorrowCar> findAll(Condition con,Integer pageNum,Integer pageSize);

    List<BorrowCar> list();

    int jia(BorrowCar borrowCar);

    int add(BorrowCar borrowCar);

    BorrowCar toChe(Integer bid);

    int updateAmount(BorrowCar borrowCar);

    int updateNumber(BorrowCar borrowCar);



    }

    -------------------------------------------impl

    package com.zhenshan.service.impl;

    import java.util.List;

    import org.apache.dubbo.config.annotation.Service;
    import org.springframework.beans.factory.annotation.Autowired;

    import com.github.pagehelper.PageHelper;
    import com.github.pagehelper.PageInfo;
    import com.zhenshan.entity.BorrowCar;
    import com.zhenshan.entity.Condition;
    import com.zhenshan.dao.BorrowCarDao;
    import com.zhenshan.service.BorrowCarService;
    @Service
    public class BorrowCarServiceImpl implements BorrowCarService{
    @Autowired
    BorrowCarDao borrowCarDao;


    @Override
    public PageInfo<BorrowCar> findAll(Condition con, Integer pageNum, Integer pageSize) {
    PageHelper.startPage(pageNum, pageSize);
    List<BorrowCar> list = borrowCarDao.findAll(con);
    for (BorrowCar borrowCar : list) {
    System.out.println("*****"+borrowCar);
    }
    return new PageInfo<BorrowCar>(list);
    }


    @Override
    public List<BorrowCar> list() {
    // TODO Auto-generated method stub
    return borrowCarDao.list();
    }


    @Override
    public int jia(BorrowCar borrowCar) {
    // TODO Auto-generated method stub
    return borrowCarDao.jia(borrowCar);
    }


    @Override
    public int add(BorrowCar borrowCar) {
    // TODO Auto-generated method stub
    return borrowCarDao.add(borrowCar);
    }


    @Override
    public BorrowCar toChe(Integer bid) {
    // TODO Auto-generated method stub
    return borrowCarDao.toChe(bid);
    }


    @Override
    public int updateAmount(BorrowCar borrowCar) {
    // TODO Auto-generated method stub
    return borrowCarDao.updateAmount(borrowCar);
    }


    @Override
    public int updateNumber(BorrowCar borrowCar) {
    // TODO Auto-generated method stub
    return borrowCarDao.updateNumber(borrowCar);
    }

    }

  • 相关阅读:
    docker-ce版本19.03.8修改docker镜像的存储地址的方法
    Django自带的用户认证模块auth auth.authenticate
    怎么用Python pip怎么升级pip?
    Python import Module加载模块失败 in ImportError: No module named
    系统如何查看某个端口的应用进程pid,关闭进程,解决应用端口占用问题
    琐碎知识点(2)
    琐碎知识点(1)
    微信小程序开发笔记6——小程序添加并使用外部字体(亲测可用)
    Gitlab教程2 —— 多人协同工作(清晰)
    Gitlab教程1 —— 安装和基本使用
  • 原文地址:https://www.cnblogs.com/liuzhaolong/p/12971329.html
Copyright © 2011-2022 走看看