|
|
@@ -36,7 +36,6 @@ import java.util.*;
|
|
|
|
|
|
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
|
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
|
|
-import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList;
|
|
|
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertSet;
|
|
|
|
|
|
@Tag(name = "管理后台 - MES 生产工单")
|
|
|
@@ -104,18 +103,6 @@ public class MesProWorkOrderController {
|
|
|
return success(new PageResult<>(buildWorkOrderRespVOList(pageResult.getList()), pageResult.getTotal()));
|
|
|
}
|
|
|
|
|
|
- @GetMapping("/simple-list")
|
|
|
- @Operation(summary = "获得生产工单精简列表", description = "主要用于前端的下拉选项")
|
|
|
- @Parameter(name = "type", description = "工单类型", example = "2")
|
|
|
- public CommonResult<List<MesProWorkOrderRespVO>> getWorkOrderSimpleList(
|
|
|
- @RequestParam(value = "type", required = false) Integer type) {
|
|
|
- List<MesProWorkOrderDO> list = workOrderService.getWorkOrderList(type);
|
|
|
- return success(convertList(list, wo -> new MesProWorkOrderRespVO()
|
|
|
- .setId(wo.getId()).setCode(wo.getCode()).setName(wo.getName())
|
|
|
- .setType(wo.getType()).setVendorId(wo.getVendorId())
|
|
|
- .setStatus(wo.getStatus())));
|
|
|
- }
|
|
|
-
|
|
|
@GetMapping("/export-excel")
|
|
|
@Operation(summary = "导出生产工单 Excel")
|
|
|
@PreAuthorize("@ss.hasPermission('mes:pro-work-order:export')")
|