mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
部件打印查询接口独立入参
This commit is contained in:
+35
@@ -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
-1
@@ -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.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.OrdersViewCadViewInfoRespVO;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderComponentRespVO;
|
||||
@@ -111,7 +112,7 @@ public class OrderComponentController {
|
||||
@PostMapping("/print")
|
||||
@Operation(summary = "获取订单部件打印列表")
|
||||
@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));
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
package com.cf.imes.module.executor.service.ordercomponent;
|
||||
|
||||
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.OrdersViewCadViewInfoRespVO;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderComponentRespVO;
|
||||
@@ -119,5 +120,5 @@ public interface OrderComponentService {
|
||||
* @param pageReqVO
|
||||
* @return
|
||||
*/
|
||||
OrderPrintRespVO getOrderComponentPrintList(OrderDetailComponentListReqVO pageReqVO);
|
||||
OrderPrintRespVO getOrderComponentPrintList(OrderPrintListReqVO pageReqVO);
|
||||
}
|
||||
+2
-1
@@ -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.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.OrderPrintListReqVO;
|
||||
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.ordercomponent.vo.OrderComponentRespVO;
|
||||
@@ -864,7 +865,7 @@ public class OrderComponentServiceImpl implements OrderComponentService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public OrderPrintRespVO getOrderComponentPrintList(OrderDetailComponentListReqVO pageReqVO) {
|
||||
public OrderPrintRespVO getOrderComponentPrintList(OrderPrintListReqVO pageReqVO) {
|
||||
OrderPrintRespVO result = new OrderPrintRespVO();
|
||||
List<Long> orderIds = pageReqVO.getOrderIds();
|
||||
Set<Long> componentIds = pageReqVO.getComponentIds();
|
||||
|
||||
Reference in New Issue
Block a user