From e15f561a1f9eddfde503d59baf45a860b131928e Mon Sep 17 00:00:00 2001
From: fei.wang <wf18701153496@163.com>
Date: 星期三, 13 八月 2025 14:22:50 +0800
Subject: [PATCH] 更新最新版代码

---
 src/main/java/com/flow/service/impl/DuanxinlogServiceImpl.java |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/flow/service/impl/DuanxinlogServiceImpl.java b/src/main/java/com/flow/service/impl/DuanxinlogServiceImpl.java
new file mode 100644
index 0000000..c5cc2ec
--- /dev/null
+++ b/src/main/java/com/flow/service/impl/DuanxinlogServiceImpl.java
@@ -0,0 +1,43 @@
+package com.flow.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.flow.mapper.DuanxinlogMapper;
+import com.flow.pojo.Duanxinlog;
+import com.flow.service.DuanxinlogService;
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.List;
+
+@Service
+public class DuanxinlogServiceImpl  extends ServiceImpl<DuanxinlogMapper, Duanxinlog>  implements DuanxinlogService {
+
+    @Autowired
+    DuanxinlogMapper duanxinlogMapper;
+
+    @Override
+    public PageInfo<Duanxinlog> FindDuanxinlog(Integer page, Integer limit) {
+        PageHelper.startPage(page, limit);
+        List<Duanxinlog> cardList = this.duanxinlogMapper.FindDuanxinlog();
+        PageInfo<Duanxinlog> info = new PageInfo(cardList);
+        return info;
+    }
+    public int DeleteDuanxinlog(String id) {
+        return ((DuanxinlogMapper) this.baseMapper).deleteById(id);
+    }
+    public int addDuanxinlog(Duanxinlog duanxinlog) {
+        Date date = new Date();
+        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+        duanxinlog.setDispatchdate(formatter.format(date));
+        return ((DuanxinlogMapper)this.baseMapper).insert(duanxinlog);
+    }
+
+    public String userdate(String Zong) {
+        return this.duanxinlogMapper.userdate(Zong);
+    }
+
+}

--
Gitblit v1.9.3