1. 修复 base 编译错误

This commit is contained in:
chenbowen
2025-11-25 10:41:27 +08:00
parent f4bb887f09
commit bbc1970215
5 changed files with 40 additions and 0 deletions

View File

@@ -69,4 +69,7 @@ public interface ErrorCodeConstants {
ErrorCode PROCESSING_INFOMATION_OPERATION_NOT_EXISTS = new ErrorCode(1_027_101_006, "工艺工序不存在"); ErrorCode PROCESSING_INFOMATION_OPERATION_NOT_EXISTS = new ErrorCode(1_027_101_006, "工艺工序不存在");
ErrorCode PROCESSING_OPERATION_NOT_EXISTS = new ErrorCode(1_027_101_007, "工序不存在"); ErrorCode PROCESSING_OPERATION_NOT_EXISTS = new ErrorCode(1_027_101_007, "工序不存在");
ErrorCode PROCESSING_OPERATION_MATERIAL_NOT_EXISTS = new ErrorCode(1_027_101_008, "工艺工序物料不存在"); ErrorCode PROCESSING_OPERATION_MATERIAL_NOT_EXISTS = new ErrorCode(1_027_101_008, "工艺工序物料不存在");
// ========== 主数据同步 ==========
ErrorCode MASTER_DATA_SYNC_DISABLED = new ErrorCode(1_027_900_001, "主数据同步功能已禁用");
} }

View File

@@ -28,4 +28,12 @@ public interface MaterialClassesMapper extends BaseMapperX<MaterialClassesDO> {
.orderByDesc(MaterialClassesDO::getId)); .orderByDesc(MaterialClassesDO::getId));
} }
default List<MaterialClassesDO> selectByCodes(Collection<String> codes) {
if (codes == null || codes.isEmpty()) {
return Collections.emptyList();
}
return selectList(new LambdaQueryWrapperX<MaterialClassesDO>()
.in(MaterialClassesDO::getCode, codes));
}
} }

View File

@@ -25,4 +25,12 @@ public interface MaterialHasClassesMapper extends BaseMapperX<MaterialHasClasses
.orderByDesc(MaterialHasClassesDO::getId)); .orderByDesc(MaterialHasClassesDO::getId));
} }
default List<MaterialHasClassesDO> selectByInfoIds(Collection<Long> infoIds) {
if (infoIds == null || infoIds.isEmpty()) {
return Collections.emptyList();
}
return selectList(new LambdaQueryWrapperX<MaterialHasClassesDO>()
.in(MaterialHasClassesDO::getInfomationId, infoIds));
}
} }

View File

@@ -30,4 +30,13 @@ public interface MaterialHasPropertiesMapper extends BaseMapperX<MaterialHasProp
.orderByDesc(MaterialHasPropertiesDO::getId)); .orderByDesc(MaterialHasPropertiesDO::getId));
} }
default List<MaterialHasPropertiesDO> selectByInfoIdsAndPropertyIds(Collection<Long> infoIds, Collection<Long> propertyIds) {
if (infoIds == null || infoIds.isEmpty() || propertyIds == null || propertyIds.isEmpty()) {
return Collections.emptyList();
}
return selectList(new LambdaQueryWrapperX<MaterialHasPropertiesDO>()
.in(MaterialHasPropertiesDO::getInfomationId, infoIds)
.in(MaterialHasPropertiesDO::getPropertiesId, propertyIds));
}
} }

View File

@@ -9,6 +9,10 @@ import com.zt.plat.module.base.controller.admin.materialproperties.vo.MaterialPr
import com.zt.plat.module.base.dal.dataobject.materialproperties.MaterialPropertiesDO; import com.zt.plat.module.base.dal.dataobject.materialproperties.MaterialPropertiesDO;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
/** /**
* 物料属性 Mapper * 物料属性 Mapper
* *
@@ -47,4 +51,12 @@ public interface MaterialPropertiesMapper extends BaseMapperX<MaterialProperties
return selectPage(reqVO, query); return selectPage(reqVO, query);
} }
default List<MaterialPropertiesDO> selectByCodes(Collection<String> codes) {
if (codes == null || codes.isEmpty()) {
return Collections.emptyList();
}
return selectList(new LambdaQueryWrapperX<MaterialPropertiesDO>()
.in(MaterialPropertiesDO::getCode, codes));
}
} }