|
|
|
@ -9,10 +9,7 @@ import org.dromara.common.core.utils.MapstructUtils;
|
|
|
|
|
import org.dromara.common.core.utils.StringUtils;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
import org.dromara.mes.domain.BaseMaterialInfo;
|
|
|
|
|
import org.dromara.mes.domain.BaseMaterialType;
|
|
|
|
|
import org.dromara.mes.domain.ProdBaseFactoryInfo;
|
|
|
|
|
import org.dromara.mes.domain.ProdMaterialBom;
|
|
|
|
|
import org.dromara.mes.domain.*;
|
|
|
|
|
import org.dromara.mes.domain.bo.BaseMaterialInfoBo;
|
|
|
|
|
import org.dromara.mes.domain.vo.BaseMaterialInfoVo;
|
|
|
|
|
import org.dromara.mes.mapper.BaseMaterialInfoMapper;
|
|
|
|
@ -94,6 +91,10 @@ public class BaseMaterialInfoServiceImpl implements IBaseMaterialInfoService {
|
|
|
|
|
.select(BaseMeasurementUnitInfo::getUnitName)
|
|
|
|
|
.leftJoin(BaseMeasurementUnitInfo.class, BaseMeasurementUnitInfo::getUnitId, BaseMaterialInfo::getMaterialUnitId)*/
|
|
|
|
|
|
|
|
|
|
//关联物料大类信息(物料大类从字典改为了数据库表)
|
|
|
|
|
.select(BaseMaterialCategory::getMaterialCategoryName)
|
|
|
|
|
.leftJoin(BaseMaterialCategory.class, BaseMaterialCategory::getMaterialCategoryId, BaseMaterialInfo::getMaterialCategoryId)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.eq(bo.getMaterialId() != null, BaseMaterialInfo::getMaterialId, bo.getMaterialId())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getErpId()), BaseMaterialInfo::getErpId, bo.getErpId())
|
|
|
|
@ -101,7 +102,7 @@ public class BaseMaterialInfoServiceImpl implements IBaseMaterialInfoService {
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getOldMaterialCode()), BaseMaterialInfo::getOldMaterialCode, bo.getOldMaterialCode())
|
|
|
|
|
.like(StringUtils.isNotBlank(bo.getMaterialName()), BaseMaterialInfo::getMaterialName, bo.getMaterialName())
|
|
|
|
|
.eq(bo.getMaterialTypeId() != null, BaseMaterialInfo::getMaterialTypeId, bo.getMaterialTypeId())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getMaterialCategories()), BaseMaterialInfo::getMaterialCategories, bo.getMaterialCategories())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getMaterialCategoryId()), BaseMaterialInfo::getMaterialCategoryId, bo.getMaterialCategoryId())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getMaterialSubclass()), BaseMaterialInfo::getMaterialSubclass, bo.getMaterialSubclass())
|
|
|
|
|
.eq(StringUtils.isNotBlank(bo.getBatchFlag()), BaseMaterialInfo::getBatchFlag, bo.getBatchFlag())
|
|
|
|
|
.eq(bo.getBatchAmount() != null, BaseMaterialInfo::getBatchAmount, bo.getBatchAmount())
|
|
|
|
|