From 4e5c47ee19caf98810b4ee50661fc141c4d7478f Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期五, 28 三月 2025 08:51:19 +0800
Subject: [PATCH] fix: 11
---
src/main/java/com/mzl/flower/service/supplier/SupplierService.java | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/mzl/flower/service/supplier/SupplierService.java b/src/main/java/com/mzl/flower/service/supplier/SupplierService.java
index 225c894..c86491a 100644
--- a/src/main/java/com/mzl/flower/service/supplier/SupplierService.java
+++ b/src/main/java/com/mzl/flower/service/supplier/SupplierService.java
@@ -23,6 +23,7 @@
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
+import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
@@ -129,6 +130,12 @@
return dto;
}
+ public SupplierDTO findSupplierByPhone(String phone) {
+ SupplierDTO dto = supplierMapper.findSupplierByPhone(phone);
+ dto.setOverTime(LocalDate.from(dto.getPassTime()));
+ return dto;
+ }
+
public void auditSupplier(AuditSupplierDTO dto) {
Supplier supplier = supplierMapper.selectById(dto.getId());
if(supplier==null){
@@ -213,4 +220,8 @@
supplier.update(SecurityUtils.getUserId());
supplierMapper.updateById(supplier);
}
+
+ public Supplier getSupplierById(Long supplierId) {
+ return supplierMapper.selectById(supplierId);
+ }
}
--
Gitblit v1.9.3