package com.example.erp.service.sd; import com.baomidou.dynamic.datasource.annotation.DS; import com.example.erp.entity.sd.BasicOtherMoney; import com.example.erp.mapper.sd.BasicOtherMoneyMapper; import org.springframework.stereotype.Service; import java.util.List; @Service @DS("sd") public class BasicOtherMoneyService { private final BasicOtherMoneyMapper basicOtherMoneyMapper; public BasicOtherMoneyService(BasicOtherMoneyMapper basicOtherMoneyMapper) { this.basicOtherMoneyMapper = basicOtherMoneyMapper; } public List findAll() { return basicOtherMoneyMapper.selectList(null); } public int deleteById(Integer id) { return basicOtherMoneyMapper.deleteById(id); } public int save(String alias) { BasicOtherMoney basicOtherMoney = new BasicOtherMoney(); basicOtherMoney.setAlias(alias); return basicOtherMoneyMapper.insert(basicOtherMoney); } }