@Service @Primary public class PartService extends AbstractBaseDomainObjectService<Part,PartEntity> implements IPartService
domainObjectClass, entityClass| 构造器和说明 |
|---|
PartService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
assignSequenceDefs(long partId,
Set<Long> sequenceDefIds)
给指定的物料绑定序列号定义
|
Part |
copyProductConfiguration(long fromPartId,
long toPartId)
拷贝生产定义
|
List<Part> |
getAllHasBom()
查询所有成品物料
|
List<SequenceDef> |
getAssignedSequenceDefs(long partId)
查询和该物料绑定的序列号定义列表
|
List<Part> |
getByPartNumber(String partNumber)
根据物料编码查询物料
|
Part |
getByPartNumberAndRev(String partNumber,
String partRevision)
根据物料编码和物料版本查询物料
|
List<Part> |
getBySequenceId(long sequenceId)
查询和该sequence定义绑定的物料列表
|
protected IBaseEntityHandler<PartEntity> |
getEntityHandler() |
List<Part> |
getFuzzyByPartNumberAndRev(String partName,
String partRevision)
根据物料号和物料版本查询物料列表
|
List<Part> |
getPartGroup()
查询物料最新版本信息,返回的结果只包含物料号和版本信息
|
List<Part> |
getPartInProductConfiguration(String partNumber,
String partRevision,
long lineId)
查询已经配置了生产定义的物料,要求生产定义对应的工艺已经与产线绑定,生产定义在有效期内
|
List<Part> |
getPartsByPartClass(long partClassId)
根据物料类别查询物料列表
|
List<Part> |
getPartsHasBom()
获取所有成品或半成品
|
List<Part> |
getProductByParentBOM(long partId,
long parentBOMId)
查询指定物料清单的物料列表信息,不包含指定的物料
|
List<Part> |
getProductPart()
查询所有成品物料
|
List<Part> |
getProductPart(int size,
int StartPosition,
String serialNumber)
分页查询成品part
|
List<Part> |
getProductPart(String partNumber,
String partRevision)
根据物料编码,物料版本查询成品物料
|
List<Part> |
getSameBomAndNotConfiguredForRoute(long routeId,
long bomId)
查询指定物料清单的物料列表信息,物料没有配置指定工艺的生产配置信息
|
List<Part> |
getSameBomByBomIdExceptPartId(long partId,
long bomId)
查询属于该bom的物料列表,不包含指定的物料
|
List<Long> |
getUnModifiableParts()
查询不可修改的物料,即被其他地方引用
|
boolean |
isModifiableParts(Part part)
判断物料是否可以被修改
|
void |
saveMaterials(List<Part> materials)
存储物料信息
|
void |
saveMaterialsAndProducts(List<Part> materials,
Map<String,List<Object>> mapProducts)
存储物料信息
|
List<Part> |
searchProductByParentBOMId(long parentBOMId,
String partNumber,
String partRevision)
根据物料清单查询成品物料
|
countByFilter, createClientObject, createClientObject, createClientObjects, createClientObjects, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, getInternalEntities, getInternalEntity, getObjectType, list, list, listByFilter, listSimpleData, pagingByFilter, save, saveAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountByFilter, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, list, list, listByFilter, listSimpleData, pagingByFilter, save, saveAllpublic List<Part> getPartInProductConfiguration(String partNumber, String partRevision, long lineId)
IPartServicegetPartInProductConfiguration 在接口中 IPartServicepartNumber - 物料编码partRevision - 物料版本lineId - 产线idpublic List<Part> searchProductByParentBOMId(long parentBOMId, String partNumber, String partRevision)
IPartServicesearchProductByParentBOMId 在接口中 IPartServiceparentBOMId - 物料清单idpartNumber - 物料号partRevision - 版本public List<Part> getProductPart()
IPartServicegetProductPart 在接口中 IPartServicepublic List<Part> getProductPart(String partNumber, String partRevision)
IPartServicegetProductPart 在接口中 IPartServicepartNumber - 物料编码,模糊查询partRevision - 物料版本public Part getByPartNumberAndRev(String partNumber, String partRevision)
IPartServicegetByPartNumberAndRev 在接口中 IPartServicepartNumber - 物料号partRevision - 版本public List<Part> getByPartNumber(String partNumber)
IPartServicegetByPartNumber 在接口中 IPartServicepartNumber - 物料号public List<Part> getAllHasBom()
IPartServicegetAllHasBom 在接口中 IPartServicepublic List<Part> getPartGroup()
IPartServicegetPartGroup 在接口中 IPartServicepublic List<Part> getSameBomByBomIdExceptPartId(long partId, long bomId)
IPartServicegetSameBomByBomIdExceptPartId 在接口中 IPartServicepartId - 指定的不包含的物料idbomId - 物料清单idpublic List<Part> getSameBomAndNotConfiguredForRoute(long routeId, long bomId)
IPartServicegetSameBomAndNotConfiguredForRoute 在接口中 IPartServicerouteId - 工艺idbomId - 物料清单idpublic void saveMaterialsAndProducts(List<Part> materials, Map<String,List<Object>> mapProducts)
IPartServicesaveMaterialsAndProducts 在接口中 IPartServicematerials - 物料列表mapProducts - 成品信息public void saveMaterials(List<Part> materials)
IPartServicesaveMaterials 在接口中 IPartServicematerials - 物料列表public List<Long> getUnModifiableParts()
IPartServicegetUnModifiableParts 在接口中 IPartServicepublic boolean isModifiableParts(Part part)
IPartServiceisModifiableParts 在接口中 IPartServicepart - 物料public List<Part> getBySequenceId(long sequenceId)
IPartServicegetBySequenceId 在接口中 IPartServicesequenceId - 序列号定义idpublic List<Part> getFuzzyByPartNumberAndRev(String partName, String partRevision)
IPartServicegetFuzzyByPartNumberAndRev 在接口中 IPartServicepartName - 物料号,模糊查询partRevision - 版本public List<Part> getPartsByPartClass(long partClassId)
IPartServicegetPartsByPartClass 在接口中 IPartServicepartClassId - 物料类别idpublic List<Part> getProductPart(int size, int StartPosition, String serialNumber)
IPartServicegetProductPart 在接口中 IPartServicesize - 长度StartPosition - 开始位置serialNumber - 序列号public List<Part> getPartsHasBom()
IPartServicegetPartsHasBom 在接口中 IPartServicepublic Part copyProductConfiguration(long fromPartId, long toPartId)
IPartServicecopyProductConfiguration 在接口中 IPartServicefromPartId - 原生产定义绑定的物料toPartId - 新生产定义绑定的物料public List<Part> getProductByParentBOM(long partId, long parentBOMId)
IPartServicegetProductByParentBOM 在接口中 IPartServicepartId - 指定的不包含的物料parentBOMId - 物料清单idpublic List<SequenceDef> getAssignedSequenceDefs(long partId)
IPartServicegetAssignedSequenceDefs 在接口中 IPartServicepublic void assignSequenceDefs(long partId,
Set<Long> sequenceDefIds)
IPartServiceassignSequenceDefs 在接口中 IPartServiceprotected IBaseEntityHandler<PartEntity> getEntityHandler()
Copyright © 2019. All rights reserved.