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:
+2
-1
@@ -5,6 +5,7 @@ import com.cf.imes.framework.common.pojo.PageResult;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderComponentRespVO;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderDetailComponentListReqVO;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderDetailComponentPageReqVO;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrdersTopComponentListReqVO;
|
||||
import com.cf.imes.module.executor.controller.admin.plate.vo.OrderViewPlatePageRespVO;
|
||||
import com.cf.imes.module.executor.service.ordercomponent.OrderComponentService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@@ -48,7 +49,7 @@ public class OrderComponentController {
|
||||
|
||||
@PostMapping("/top/list")
|
||||
@Operation(summary = "查询订单顶级部件列表")
|
||||
public CommonResult<List<OrderComponentRespVO>> getOrderTopComponentList(@Valid @RequestBody OrderDetailComponentListReqVO reqVO) {
|
||||
public CommonResult<List<OrderComponentRespVO>> getOrderTopComponentList(@Valid @RequestBody OrdersTopComponentListReqVO reqVO) {
|
||||
return success(orderComponentService.getOrderTopComponentList(reqVO));
|
||||
}
|
||||
|
||||
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.cf.imes.module.executor.controller.admin.ordercomponent.vo;
|
||||
|
||||
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 org.hibernate.validator.constraints.Length;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Gqr
|
||||
* @since 2026/2/2 11:34
|
||||
*/
|
||||
@Schema(description = "管理后台 - 装配清单 - 顶级部件列表查询 Request VO")
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class OrdersTopComponentListReqVO {
|
||||
|
||||
@Schema(description = "订单编号列表", example = "[1,2]")
|
||||
@Size(max = 100, message = "{order.component.assemble.req.orderIds.max}")
|
||||
private List<Long> orderIds;
|
||||
|
||||
@Schema(description = "部件名称", example = "部件")
|
||||
@Length(max = 64, message = "{order.component.assemble.req.name.max}")
|
||||
private String name;
|
||||
|
||||
}
|
||||
+2
-1
@@ -4,6 +4,7 @@ import com.cf.imes.framework.common.pojo.PageResult;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderComponentRespVO;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderDetailComponentListReqVO;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderDetailComponentPageReqVO;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrdersTopComponentListReqVO;
|
||||
import com.cf.imes.module.executor.controller.admin.plate.vo.OrderViewPlatePageRespVO;
|
||||
|
||||
import java.util.List;
|
||||
@@ -29,7 +30,7 @@ public interface OrderComponentService {
|
||||
* @param reqVO
|
||||
* @return
|
||||
*/
|
||||
List<OrderComponentRespVO> getOrderTopComponentList(OrderDetailComponentListReqVO reqVO);
|
||||
List<OrderComponentRespVO> getOrderTopComponentList(OrdersTopComponentListReqVO reqVO);
|
||||
|
||||
/**
|
||||
* 获取节点的顶级节点下所有节点
|
||||
|
||||
+3
-2
@@ -17,6 +17,7 @@ import com.cf.imes.framework.security.core.util.SecurityFrameworkUtils;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderComponentRespVO;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderDetailComponentListReqVO;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrderDetailComponentPageReqVO;
|
||||
import com.cf.imes.module.executor.controller.admin.ordercomponent.vo.OrdersTopComponentListReqVO;
|
||||
import com.cf.imes.module.executor.controller.admin.plate.vo.OrderViewPlatePageRespVO;
|
||||
import com.cf.imes.module.executor.dal.dataobject.goods.GoodsDO;
|
||||
import com.cf.imes.module.executor.dal.dataobject.goods.OrderGoodsPlateNumAndAreaDO;
|
||||
@@ -126,7 +127,7 @@ public class OrderComponentServiceImpl implements OrderComponentService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<OrderComponentRespVO> getOrderTopComponentList(OrderDetailComponentListReqVO reqVO) {
|
||||
public List<OrderComponentRespVO> getOrderTopComponentList(OrdersTopComponentListReqVO reqVO) {
|
||||
List<Long> orderIds = reqVO.getOrderIds();
|
||||
if (CollUtil.isEmpty(orderIds)) {
|
||||
return Collections.emptyList();
|
||||
@@ -135,7 +136,7 @@ public class OrderComponentServiceImpl implements OrderComponentService {
|
||||
.in(OrderComponentDO::getOrderId, orderIds)
|
||||
.eq(OrderComponentDO::getPid, OrderComponentDO.PARENT_ID_ROOT)
|
||||
.likeIfPresent(OrderComponentDO::getName, reqVO.getName())
|
||||
.eqIfPresent(OrderComponentDO::getProcessStatus, reqVO.getProcessStatus()));
|
||||
);
|
||||
return BeanUtil.copyToList(orderComponentDOS, OrderComponentRespVO.class);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user