Commit 4c3ea6af0eab88b0a8eef400908d51221778509b

Authored by YunaiV
1 parent e490503b

♻️ refactor(card): 移除精简列表相关代码和接口

删除不再使用的获取生产流转卡精简列表的接口及相关逻辑,优化代码结构。
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/pro/card/MesProCardController.java
@@ -128,12 +128,6 @@ public class MesProCardController { @@ -128,12 +128,6 @@ public class MesProCardController {
128 return success(new PageResult<>(buildCardRespVOList(pageResult.getList()), pageResult.getTotal())); 128 return success(new PageResult<>(buildCardRespVOList(pageResult.getList()), pageResult.getTotal()));
129 } 129 }
130 130
131 - @GetMapping("/simple-list")  
132 - @Operation(summary = "获得生产流转卡精简列表", description = "主要用于前端的下拉选项")  
133 - public CommonResult<List<MesProCardRespVO>> getCardSimpleList() {  
134 - List<MesProCardDO> list = cardService.getCardSimpleList();  
135 - return success(buildCardRespVOList(list));  
136 - }  
137 131
138 @GetMapping("/export-excel") 132 @GetMapping("/export-excel")
139 @Operation(summary = "导出生产流转卡 Excel") 133 @Operation(summary = "导出生产流转卡 Excel")
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/pro/card/MesProCardService.java
@@ -6,8 +6,6 @@ import cn.iocoder.yudao.module.mes.controller.admin.pro.card.vo.MesProCardSaveRe @@ -6,8 +6,6 @@ import cn.iocoder.yudao.module.mes.controller.admin.pro.card.vo.MesProCardSaveRe
6 import cn.iocoder.yudao.module.mes.dal.dataobject.pro.card.MesProCardDO; 6 import cn.iocoder.yudao.module.mes.dal.dataobject.pro.card.MesProCardDO;
7 import jakarta.validation.Valid; 7 import jakarta.validation.Valid;
8 8
9 -import java.util.List;  
10 -  
11 /** 9 /**
12 * MES 生产流转卡 Service 接口 10 * MES 生产流转卡 Service 接口
13 * 11 *
@@ -61,13 +59,6 @@ public interface MesProCardService { @@ -61,13 +59,6 @@ public interface MesProCardService {
61 PageResult<MesProCardDO> getCardPage(MesProCardPageReqVO pageReqVO); 59 PageResult<MesProCardDO> getCardPage(MesProCardPageReqVO pageReqVO);
62 60
63 /** 61 /**
64 - * 获得生产流转卡精简列表  
65 - *  
66 - * @return 流转卡列表  
67 - */  
68 - List<MesProCardDO> getCardSimpleList();  
69 -  
70 - /**  
71 * 提交生产流转卡(草稿 → 已确认) 62 * 提交生产流转卡(草稿 → 已确认)
72 * 63 *
73 * @param id 编号 64 * @param id 编号
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/pro/card/MesProCardServiceImpl.java
@@ -19,8 +19,6 @@ import org.springframework.stereotype.Service; @@ -19,8 +19,6 @@ import org.springframework.stereotype.Service;
19 import org.springframework.transaction.annotation.Transactional; 19 import org.springframework.transaction.annotation.Transactional;
20 import org.springframework.validation.annotation.Validated; 20 import org.springframework.validation.annotation.Validated;
21 21
22 -import java.util.List;  
23 -  
24 import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; 22 import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
25 import static cn.iocoder.yudao.module.mes.enums.ErrorCodeConstants.*; 23 import static cn.iocoder.yudao.module.mes.enums.ErrorCodeConstants.*;
26 24
@@ -98,11 +96,6 @@ public class MesProCardServiceImpl implements MesProCardService { @@ -98,11 +96,6 @@ public class MesProCardServiceImpl implements MesProCardService {
98 } 96 }
99 97
100 @Override 98 @Override
101 - public List<MesProCardDO> getCardSimpleList() {  
102 - return cardMapper.selectList();  
103 - }  
104 -  
105 - @Override  
106 public void submitCard(Long id) { 99 public void submitCard(Long id) {
107 // 1. 校验存在 + 草稿状态 100 // 1. 校验存在 + 草稿状态
108 validateCardExistsAndStatus(id, MesProWorkOrderStatusEnum.PREPARE); 101 validateCardExistsAndStatus(id, MesProWorkOrderStatusEnum.PREPARE);