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);
    }

    }

  • 相关阅读:
    解上三角矩阵和下三角矩阵方程的fortran程序
    用sublimetext写fortran程序
    fortran子程序传入可变数组要在module里实现
    ubuntu wineqq 输入中文显示方格的问题
    mathtype快捷键很方便+公式上边不显示问题的解决
    滚动字符小程序-python
    传递矩阵法求简支梁固有频率的近似解 --matlab程序
    explorer.exe总是重启导致打开的文件夹关闭
    python把数据分为训练部分和测试部分的简单实现
    用python批量删掉文件名中共同存在的字符
  • 原文地址:https://www.cnblogs.com/liuzhaolong/p/12971329.html
Copyright © 2011-2022 走看看