廖井涛
2024-04-22 42bc535c947bcf999c706a753635d35ef73f91e6
north-glass-erp/src/main/java/com/example/erp/service/sd/BasicOtherMoneyService.java
New file
@@ -0,0 +1,33 @@
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<BasicOtherMoney> 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);
    }
}