部件打印查询接口独立入参

This commit is contained in:
gaoqr
2026-05-11 11:51:11 +08:00
parent c86de344fa
commit e9bc682299
4 changed files with 41 additions and 3 deletions
@@ -0,0 +1,35 @@
package com.cf.imes.module.executor.controller.admin.order.vo.order;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.List;
import java.util.Set;
/**
*
*
* @author Gqr
* @since 2026/2/2 11:34
*/
@Schema(description = "管理后台 - 订单明细打印列表查询 Request VO")
@Data
@ToString(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrderPrintListReqVO {
@Schema(description = "订单编号列表", example = "[1,2]")
@Size(min = 1, max = 100, message = "{order.component.assemble.req.orderIds.max}")
private List<Long> orderIds;
@Schema(description = "部件编号", example = "[1,2]")
@Size(max = 200, message = "{order.detail.component.list.query.componentIds.max}")
private Set<Long> componentIds;
}
@@ -2,6 +2,7 @@ package com.cf.imes.module.executor.controller.admin.ordercomponent;
import com.cf.imes.framework.common.pojo.CommonResult; import com.cf.imes.framework.common.pojo.CommonResult;
import com.cf.imes.framework.common.pojo.PageResult; import com.cf.imes.framework.common.pojo.PageResult;
import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderPrintListReqVO;
import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderPrintRespVO; import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderPrintRespVO;
import com.cf.imes.module.executor.controller.admin.order.vo.order.OrdersViewCadViewInfoRespVO; import com.cf.imes.module.executor.controller.admin.order.vo.order.OrdersViewCadViewInfoRespVO;
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderComponentRespVO; import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderComponentRespVO;
@@ -111,7 +112,7 @@ public class OrderComponentController {
@PostMapping("/print") @PostMapping("/print")
@Operation(summary = "获取订单部件打印列表") @Operation(summary = "获取订单部件打印列表")
@PreAuthorize("@ss.hasPermission('production:assemblyList:print')") @PreAuthorize("@ss.hasPermission('production:assemblyList:print')")
public CommonResult<OrderPrintRespVO> getOrderComponentPrintList(@Valid @RequestBody OrderDetailComponentListReqVO reqVO) { public CommonResult<OrderPrintRespVO> getOrderComponentPrintList(@Valid @RequestBody OrderPrintListReqVO reqVO) {
return success(orderComponentService.getOrderComponentPrintList(reqVO)); return success(orderComponentService.getOrderComponentPrintList(reqVO));
} }
} }
@@ -1,6 +1,7 @@
package com.cf.imes.module.executor.service.ordercomponent; package com.cf.imes.module.executor.service.ordercomponent;
import com.cf.imes.framework.common.pojo.PageResult; import com.cf.imes.framework.common.pojo.PageResult;
import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderPrintListReqVO;
import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderPrintRespVO; import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderPrintRespVO;
import com.cf.imes.module.executor.controller.admin.order.vo.order.OrdersViewCadViewInfoRespVO; import com.cf.imes.module.executor.controller.admin.order.vo.order.OrdersViewCadViewInfoRespVO;
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderComponentRespVO; import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderComponentRespVO;
@@ -119,5 +120,5 @@ public interface OrderComponentService {
* @param pageReqVO * @param pageReqVO
* @return * @return
*/ */
OrderPrintRespVO getOrderComponentPrintList(OrderDetailComponentListReqVO pageReqVO); OrderPrintRespVO getOrderComponentPrintList(OrderPrintListReqVO pageReqVO);
} }
@@ -18,6 +18,7 @@ import com.cf.imes.framework.common.util.Assert.AssertUtils;
import com.cf.imes.framework.mybatis.core.query.LambdaQueryWrapperX; import com.cf.imes.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.cf.imes.framework.security.core.util.SecurityFrameworkUtils; import com.cf.imes.framework.security.core.util.SecurityFrameworkUtils;
import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderPrintDetailRespVO; import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderPrintDetailRespVO;
import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderPrintListReqVO;
import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderPrintRespVO; import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderPrintRespVO;
import com.cf.imes.module.executor.controller.admin.order.vo.order.OrdersViewCadViewInfoRespVO; import com.cf.imes.module.executor.controller.admin.order.vo.order.OrdersViewCadViewInfoRespVO;
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderComponentRespVO; import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderComponentRespVO;
@@ -864,7 +865,7 @@ public class OrderComponentServiceImpl implements OrderComponentService {
} }
@Override @Override
public OrderPrintRespVO getOrderComponentPrintList(OrderDetailComponentListReqVO pageReqVO) { public OrderPrintRespVO getOrderComponentPrintList(OrderPrintListReqVO pageReqVO) {
OrderPrintRespVO result = new OrderPrintRespVO(); OrderPrintRespVO result = new OrderPrintRespVO();
List<Long> orderIds = pageReqVO.getOrderIds(); List<Long> orderIds = pageReqVO.getOrderIds();
Set<Long> componentIds = pageReqVO.getComponentIds(); Set<Long> componentIds = pageReqVO.getComponentIds();