package com.stylefeng.guns.modular.system.service.impl;
|
|
import com.baomidou.mybatisplus.plugins.Page;
|
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
import com.stylefeng.guns.modular.system.dao.IncomeMapper;
|
import com.stylefeng.guns.modular.system.model.Income;
|
import com.stylefeng.guns.modular.system.service.IIncomeService;
|
import org.springframework.stereotype.Service;
|
|
import java.time.LocalDateTime;
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Map;
|
|
|
@Service
|
public class IncomeServiceImpl extends ServiceImpl<IncomeMapper, Income> implements IIncomeService {
|
|
|
/**
|
* 添加数据
|
* @param userType
|
* @param objectId
|
* @param type
|
* @param incomeId
|
* @param money
|
* @throws Exception
|
*/
|
@Override
|
public void saveData(Integer userType, Integer objectId, Integer type, Integer incomeId, Integer orderType, Double money){
|
Income income = new Income();
|
income.setUserType(userType);
|
income.setObjectId(objectId);
|
income.setType(type);
|
income.setIncomeId(incomeId);
|
income.setOrderType(orderType);
|
income.setMoney(money);
|
income.setInsertTime(new Date());
|
this.insert(income);
|
}
|
|
@Override
|
public List<Map<String, Object>> getList(Page<Map<String, Object>> page, Integer id) {
|
return this.baseMapper.getList(page,id);
|
}
|
@Override
|
public List<Map<String, Object>> getExcelList( Integer id) {
|
return this.baseMapper.getExcelList(id);
|
}
|
|
@Override
|
public List<Map<String, Object>> getList1(Page<Map<String, Object>> page) {
|
return this.baseMapper.getList1(page);
|
}
|
|
@Override
|
public List<Map<String, Object>> getList2(Page<Map<String, Object>> page, String times) {
|
return this.baseMapper.getList2(page,times);
|
}
|
|
@Override
|
public List<Map<String, Object>> getTotal(String times) {
|
return this.baseMapper.getTotal(times);
|
}
|
|
|
}
|