From 56d9aea819f23d1791c30591f2bfc81b00e3970a Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Mon, 8 Jul 2024 20:43:33 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=20=E4=BF=AE=E6=94=B9service=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E8=BF=94=E5=9B=9E=E8=AF=B7=E8=B4=AD=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E4=B8=BABaseRequisitioningOrderVo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IBaseRequisitioningOrderService.java | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 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 c4196d79..c15199ab 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 @@ -2,6 +2,10 @@ package com.ruoyi.system.service; import java.util.List; import com.ruoyi.system.domain.BaseRequisitioningOrder; +import com.ruoyi.system.domain.SysSalesOrder; +import com.ruoyi.system.domain.Vo.BaseRequisitioningOrderVo; +import org.activiti.engine.runtime.ProcessInstance; +import org.springframework.transaction.annotation.Transactional; /** * 请购单Service接口 @@ -17,15 +21,16 @@ public interface IBaseRequisitioningOrderService * @param requisitioningId 请购单ID * @return 请购单 */ - public BaseRequisitioningOrder selectBaseRequisitioningOrderById(Long requisitioningId); + public BaseRequisitioningOrderVo selectBaseRequisitioningOrderById(Long requisitioningId); /** * 查询请购单列表 - * - * @param baseRequisitioningOrder 请购单 + * + * @param baseRequisitioningOrderVo 请购单 * @return 请购单集合 */ - public List selectBaseRequisitioningOrderList(BaseRequisitioningOrder baseRequisitioningOrder); + + List selectBaseRequisitioningOrderList(BaseRequisitioningOrderVo baseRequisitioningOrderVo); /** * 新增请购单 @@ -79,4 +84,15 @@ public interface IBaseRequisitioningOrderService List selectBaseRequisitioningOrderByIds(String ids); Object getId(); + + @Transactional(rollbackFor = Exception.class) + ProcessInstance cancelSysCustomerById(Long id); + /** + * 恢复申请 */ + @Transactional(rollbackFor = Exception.class) + ProcessInstance restoreSysCustomerById(Long id); + /** + * 提交申请*/ + + public ProcessInstance submitApply(BaseRequisitioningOrder baseRequisitioningOrder); }