|
|
@ -9,6 +9,7 @@ import com.github.yulichang.toolkit.JoinWrappers;
|
|
|
|
import com.github.yulichang.wrapper.MPJLambdaWrapper;
|
|
|
|
import com.github.yulichang.wrapper.MPJLambdaWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
|
|
|
import org.dromara.mes.domain.ProdBaseProcessInfo;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.dromara.mes.domain.bo.ProdBaseRouteProcessBo;
|
|
|
|
import org.dromara.mes.domain.bo.ProdBaseRouteProcessBo;
|
|
|
|
import org.dromara.mes.domain.vo.ProdBaseRouteProcessVo;
|
|
|
|
import org.dromara.mes.domain.vo.ProdBaseRouteProcessVo;
|
|
|
@ -32,6 +33,8 @@ public class ProdBaseRouteProcessServiceImpl implements IProdBaseRouteProcessSer
|
|
|
|
|
|
|
|
|
|
|
|
private final ProdBaseRouteProcessMapper baseMapper;
|
|
|
|
private final ProdBaseRouteProcessMapper baseMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final ProdBaseRouteProcessMapper prodBaseRouteProcessMapper;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询工艺路线组成信息
|
|
|
|
* 查询工艺路线组成信息
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -73,6 +76,11 @@ public class ProdBaseRouteProcessServiceImpl implements IProdBaseRouteProcessSer
|
|
|
|
Map<String, Object> params = bo.getParams();
|
|
|
|
Map<String, Object> params = bo.getParams();
|
|
|
|
MPJLambdaWrapper<ProdBaseRouteProcess> lqw = JoinWrappers.lambda(ProdBaseRouteProcess.class)
|
|
|
|
MPJLambdaWrapper<ProdBaseRouteProcess> lqw = JoinWrappers.lambda(ProdBaseRouteProcess.class)
|
|
|
|
.selectAll(ProdBaseRouteProcess.class)
|
|
|
|
.selectAll(ProdBaseRouteProcess.class)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.select(ProdBaseProcessInfo::getProcessName)
|
|
|
|
|
|
|
|
.select(ProdBaseProcessInfo::getProcessType)
|
|
|
|
|
|
|
|
.leftJoin(ProdBaseProcessInfo.class, ProdBaseProcessInfo::getProcessId, ProdBaseRouteProcess::getProcessId)
|
|
|
|
|
|
|
|
|
|
|
|
.eq(bo.getRouteProcessId() != null, ProdBaseRouteProcess::getRouteProcessId, bo.getRouteProcessId())
|
|
|
|
.eq(bo.getRouteProcessId() != null, ProdBaseRouteProcess::getRouteProcessId, bo.getRouteProcessId())
|
|
|
|
.eq(bo.getRouteId() != null, ProdBaseRouteProcess::getRouteId, bo.getRouteId())
|
|
|
|
.eq(bo.getRouteId() != null, ProdBaseRouteProcess::getRouteId, bo.getRouteId())
|
|
|
|
.eq(bo.getProcessId() != null, ProdBaseRouteProcess::getProcessId, bo.getProcessId())
|
|
|
|
.eq(bo.getProcessId() != null, ProdBaseRouteProcess::getProcessId, bo.getProcessId())
|
|
|
@ -132,4 +140,17 @@ public class ProdBaseRouteProcessServiceImpl implements IProdBaseRouteProcessSer
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return baseMapper.deleteByIds(ids) > 0;
|
|
|
|
return baseMapper.deleteByIds(ids) > 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 查询工艺路线组成信息列表,Join mes_base_process
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param prodBaseRouteProcess 工艺路线组成信息
|
|
|
|
|
|
|
|
* @return 工艺路线组成信息
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public List<ProdBaseRouteProcess> selectProdBaseRouteProcessJoinList(ProdBaseRouteProcess prodBaseRouteProcess)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return prodBaseRouteProcessMapper.selectProdBaseRouteProcessJoinList(prodBaseRouteProcess);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|