From 9b9a62a2b23b3dd86c8b87be3b790f4ae9d0849a Mon Sep 17 00:00:00 2001
From: guoyuji <guoyujie@ng.com>
Date: 星期三, 24 四月 2024 08:19:28 +0800
Subject: [PATCH] 修改相应尺寸问题
---
north-glass-erp/src/main/java/com/example/erp/service/sd/BasicOtherMoneyService.java | 33 +++++++++++++++++++++++++++++++++
1 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/src/main/java/com/example/erp/service/sd/BasicOtherMoneyService.java b/north-glass-erp/src/main/java/com/example/erp/service/sd/BasicOtherMoneyService.java
new file mode 100644
index 0000000..14d50af
--- /dev/null
+++ b/north-glass-erp/src/main/java/com/example/erp/service/sd/BasicOtherMoneyService.java
@@ -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);
+ }
+}
--
Gitblit v1.8.0