mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
装配清单顶级部件查询接口补充pid=0条件
This commit is contained in:
+13
-2
@@ -2,6 +2,7 @@ package com.cf.imes.module.executor.service.ordercomponent;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
|
||||
@@ -11,6 +12,7 @@ import com.cf.imes.framework.common.pojo.PageParam;
|
||||
import com.cf.imes.framework.common.pojo.PageResult;
|
||||
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.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;
|
||||
@@ -126,6 +128,7 @@ public class OrderComponentServiceImpl implements OrderComponentService {
|
||||
public List<OrderComponentRespVO> getOrderTopComponentList(OrderDetailComponentListReqVO reqVO) {
|
||||
List<OrderComponentDO> orderComponentDOS = orderComponentMapper.selectList(new LambdaQueryWrapperX<OrderComponentDO>()
|
||||
.eq(OrderComponentDO::getOrderId, reqVO.getOrderId())
|
||||
.eq(OrderComponentDO::getPid, OrderComponentDO.PARENT_ID_ROOT)
|
||||
.likeIfPresent(OrderComponentDO::getName, reqVO.getName())
|
||||
.eqIfPresent(OrderComponentDO::getProcessStatus, reqVO.getProcessStatus()));
|
||||
return BeanUtil.copyToList(orderComponentDOS, OrderComponentRespVO.class);
|
||||
@@ -158,7 +161,7 @@ public class OrderComponentServiceImpl implements OrderComponentService {
|
||||
.eqIfPresent(OrderComponentDO::getDeleted, reqVO.isDeleted())
|
||||
.likeIfPresent(OrderComponentDO::getName, reqVO.getName())
|
||||
.eqIfPresent(OrderComponentDO::getProcessStatus, reqVO.getProcessStatus())
|
||||
.select(OrderComponentDO::getId, OrderComponentDO::getPid, OrderComponentDO::getName, OrderComponentDO::getCadViewFileId));
|
||||
.select(OrderComponentDO::getId, OrderComponentDO::getPid, OrderComponentDO::getName, OrderComponentDO::getCadViewFileId, OrderComponentDO::getProcessStatus));
|
||||
|
||||
List<OrderComponentRespVO> orderComponentRespVOS = BeanUtil.copyToList(topComponentList, OrderComponentRespVO.class);
|
||||
// 3、获取文件 fileHash
|
||||
@@ -570,5 +573,13 @@ public class OrderComponentServiceImpl implements OrderComponentService {
|
||||
return needDeleteIds;
|
||||
}
|
||||
|
||||
|
||||
// @Override
|
||||
// public List<OrderComponentRespVO> getOrderComponentListOnOrders(List<Long> orderIds) {
|
||||
// List<OrderComponentDO> orderComponentDOS = orderComponentMapper.selectList(new LambdaQueryWrapper<OrderComponentDO>()
|
||||
// .in(OrderComponentDO::getOrderId, orderIds)
|
||||
// .eq(OrderComponentDO::getDeleted, false)
|
||||
// .eq(OrderComponentDO::getOrganId, SecurityFrameworkUtils.getUserOrganId())
|
||||
// .select(OrderComponentDO::getId, OrderComponentDO::getName, OrderComponentDO::getPid));
|
||||
// return BeanUtil.copyToList(orderComponentDOS, OrderComponentRespVO.class);
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user