From 2c1fce1aeac4eb35ce340ee7ffaa75682a2b4368 Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Fri, 24 May 2024 19:12:38 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF:?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AF=B7=E8=B4=AD=E5=8D=95=E7=94=9F=E6=88=90?= =?UTF-8?q?=E8=AF=B7=E8=B4=AD=E5=8D=95=E7=BC=96=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/IBaseRequisitioningOrderService.java | 2 ++ .../service/impl/BaseRequisitioningOrderServiceImpl.java | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseRequisitioningOrderService.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseRequisitioningOrderService.java index 8d367dd1..c4196d79 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseRequisitioningOrderService.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/IBaseRequisitioningOrderService.java @@ -77,4 +77,6 @@ public interface IBaseRequisitioningOrderService List selectBaseRequisitioningOrderByIds(String ids); + + Object getId(); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseRequisitioningOrderServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseRequisitioningOrderServiceImpl.java index 1fa7bc2d..7c2f659f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseRequisitioningOrderServiceImpl.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/BaseRequisitioningOrderServiceImpl.java @@ -2,7 +2,6 @@ package com.ruoyi.system.service.impl; import java.math.BigDecimal; import java.math.RoundingMode; -import java.util.ArrayList; import java.util.List; import com.ruoyi.common.core.redis.RedisCache; @@ -10,7 +9,6 @@ import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.ShiroUtils; import com.ruoyi.system.domain.BaseRequisitioningOrderChild; import com.ruoyi.system.mapper.BaseRequisitioningOrderChildMapper; -import io.swagger.models.auth.In; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ruoyi.system.mapper.BaseRequisitioningOrderMapper; @@ -206,4 +204,8 @@ public class BaseRequisitioningOrderServiceImpl implements IBaseRequisitioningOr public List selectBaseRequisitioningOrderByIds(String ids){ return baseRequisitioningOrderMapper.selectBaseRequisitioningOrderByIds(Convert.toStrArray(ids)); } + @Override + public Object getId(){ + return redisCache.generateBillNo("QG"); + } }