Commit 7994dae7cb742376e49b5f130573a09732ba0e3a
1 parent
69104b33
♻️ refactor(mes): 移除未使用的盘点方案相关代码
清理了不再使用的盘点方案列表获取方法和相关的 API 接口,简化了代码结构,提高了可维护性。
Showing
3 changed files
with
0 additions
and
24 deletions
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/wm/stocktaking/plan/MesWmStockTakingPlanController.java
| 1 | package cn.iocoder.yudao.module.mes.controller.admin.wm.stocktaking.plan; | 1 | package cn.iocoder.yudao.module.mes.controller.admin.wm.stocktaking.plan; |
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog; | 3 | import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog; |
| 4 | -import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | ||
| 5 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; | 4 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 6 | import cn.iocoder.yudao.framework.common.pojo.PageParam; | 5 | import cn.iocoder.yudao.framework.common.pojo.PageParam; |
| 7 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 6 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| @@ -24,7 +23,6 @@ import org.springframework.validation.annotation.Validated; | @@ -24,7 +23,6 @@ import org.springframework.validation.annotation.Validated; | ||
| 24 | import org.springframework.web.bind.annotation.*; | 23 | import org.springframework.web.bind.annotation.*; |
| 25 | 24 | ||
| 26 | import java.io.IOException; | 25 | import java.io.IOException; |
| 27 | -import java.util.List; | ||
| 28 | 26 | ||
| 29 | import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT; | 27 | import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT; |
| 30 | import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; | 28 | import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; |
| @@ -104,13 +102,4 @@ public class MesWmStockTakingPlanController { | @@ -104,13 +102,4 @@ public class MesWmStockTakingPlanController { | ||
| 104 | BeanUtils.toBean(pageResult.getList(), MesWmStockTakingPlanRespVO.class)); | 102 | BeanUtils.toBean(pageResult.getList(), MesWmStockTakingPlanRespVO.class)); |
| 105 | } | 103 | } |
| 106 | 104 | ||
| 107 | - @GetMapping("/simple-list") | ||
| 108 | - @Operation(summary = "获得已启用的盘点方案精简列表") | ||
| 109 | - @PreAuthorize("@ss.hasPermission('mes:wm-stock-taking-task:query')") | ||
| 110 | - public CommonResult<List<MesWmStockTakingPlanRespVO>> getEnabledStockTakingPlanSimpleList() { | ||
| 111 | - List<MesWmStockTakingPlanDO> list = stockTakingPlanService.getStockTakingPlanListByStatus( | ||
| 112 | - CommonStatusEnum.ENABLE.getStatus()); | ||
| 113 | - return success(BeanUtils.toBean(list, MesWmStockTakingPlanRespVO.class)); | ||
| 114 | - } | ||
| 115 | - | ||
| 116 | } | 105 | } |
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/wm/stocktaking/plan/MesWmStockTakingPlanService.java
| @@ -107,12 +107,4 @@ public interface MesWmStockTakingPlanService { | @@ -107,12 +107,4 @@ public interface MesWmStockTakingPlanService { | ||
| 107 | */ | 107 | */ |
| 108 | PageResult<MesWmStockTakingPlanDO> getStockTakingPlanPage(MesWmStockTakingPlanPageReqVO pageReqVO); | 108 | PageResult<MesWmStockTakingPlanDO> getStockTakingPlanPage(MesWmStockTakingPlanPageReqVO pageReqVO); |
| 109 | 109 | ||
| 110 | - /** | ||
| 111 | - * 根据状态获得盘点方案列表。 | ||
| 112 | - * | ||
| 113 | - * @param status 状态 | ||
| 114 | - * @return 盘点方案列表 | ||
| 115 | - */ | ||
| 116 | - List<MesWmStockTakingPlanDO> getStockTakingPlanListByStatus(Integer status); | ||
| 117 | - | ||
| 118 | } | 110 | } |
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/wm/stocktaking/plan/MesWmStockTakingPlanServiceImpl.java
| @@ -121,11 +121,6 @@ public class MesWmStockTakingPlanServiceImpl implements MesWmStockTakingPlanServ | @@ -121,11 +121,6 @@ public class MesWmStockTakingPlanServiceImpl implements MesWmStockTakingPlanServ | ||
| 121 | return stockTakingPlanMapper.selectPage(pageReqVO); | 121 | return stockTakingPlanMapper.selectPage(pageReqVO); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | - @Override | ||
| 125 | - public List<MesWmStockTakingPlanDO> getStockTakingPlanListByStatus(Integer status) { | ||
| 126 | - return stockTakingPlanMapper.selectListByStatus(status); | ||
| 127 | - } | ||
| 128 | - | ||
| 129 | private void validatePlanCodeUnique(Long id, String code) { | 124 | private void validatePlanCodeUnique(Long id, String code) { |
| 130 | MesWmStockTakingPlanDO plan = stockTakingPlanMapper.selectByCode(code); | 125 | MesWmStockTakingPlanDO plan = stockTakingPlanMapper.selectByCode(code); |
| 131 | if (plan == null) { | 126 | if (plan == null) { |