bom-查询-物料编码优先
This commit is contained in:
parent
81846b2cca
commit
8c67f4feea
|
|
@ -73,8 +73,9 @@ public class EBomForwardReport extends BaseForwardReport {
|
|||
|
||||
public void buildQueryParam(QueryWrapper<? extends BomNewEbomParentEntity> queryWrapper) {
|
||||
|
||||
queryWrapper.eq(FieldGetterUtil.getFieldInfo(BomNewEbomParentEntity::getMaterialNo), query.getMaterialNo());
|
||||
if (StrUtil.isNotBlank(query.getDrawingNo())) {
|
||||
queryWrapper.eq(StrUtil.isNotBlank(query.getMaterialNo()) , FieldGetterUtil.getFieldInfo(BomNewEbomParentEntity::getMaterialNo), query.getMaterialNo());
|
||||
//物料编码优先查询(有物料编码以物料编码为准)
|
||||
if (StrUtil.isBlank(query.getMaterialNo()) && StrUtil.isNotBlank(query.getDrawingNo())) {
|
||||
queryWrapper.eq(FieldGetterUtil.getFieldInfo(BomNewEbomParentEntity::getDrawingNo), query.getDrawingNo());
|
||||
}
|
||||
if (query.getVersionStrategy().compareTo(ReportConstant.VersionStrategyEnum.DEFINE.getValue()) == 0) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue