|
|
|
@ -8,6 +8,7 @@ import com.github.yulichang.toolkit.JoinWrappers;
|
|
|
|
|
import com.github.yulichang.wrapper.MPJLambdaWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import org.dromara.mes.domain.BaseMaterialCategory;
|
|
|
|
|
import org.dromara.mes.domain.ProdBaseProcessInfo;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.dromara.mes.domain.bo.BaseMaterialTypeBo;
|
|
|
|
@ -61,8 +62,12 @@ public class BaseMaterialTypeServiceImpl implements IBaseMaterialTypeService {
|
|
|
|
|
MPJLambdaWrapper<BaseMaterialType> lqw = JoinWrappers.lambda(BaseMaterialType.class)
|
|
|
|
|
|
|
|
|
|
// 关联查询工序名称
|
|
|
|
|
.select(ProdBaseProcessInfo::getProcessName)
|
|
|
|
|
.leftJoin(ProdBaseProcessInfo.class, ProdBaseProcessInfo::getProcessId, BaseMaterialType::getProcessId)
|
|
|
|
|
// .select(ProdBaseProcessInfo::getProcessName)
|
|
|
|
|
// .leftJoin(ProdBaseProcessInfo.class, ProdBaseProcessInfo::getProcessId, BaseMaterialType::getProcessId)
|
|
|
|
|
|
|
|
|
|
// 关联查询物料大类名称
|
|
|
|
|
.select(BaseMaterialCategory::getMaterialCategoryName)
|
|
|
|
|
.leftJoin(BaseMaterialCategory.class, BaseMaterialCategory::getMaterialCategoryId, BaseMaterialType::getMaterialCategoryId)
|
|
|
|
|
|
|
|
|
|
.selectAll(BaseMaterialType.class)
|
|
|
|
|
.eq(bo.getMatrialTypeId() != null, BaseMaterialType::getMatrialTypeId, bo.getMatrialTypeId())
|
|
|
|
|