package com.stylefeng.guns.modular.system.service.impl; 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.util.Date; @Service public class IncomeServiceImpl extends ServiceImpl 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) throws Exception { 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); } }