@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, saveAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countByFilter, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, list, list, listByFilter, listSimpleData, pagingByFilter, save, saveAll
public List<Part> getPartInProductConfiguration(String partNumber, String partRevision, long lineId)
IPartService
getPartInProductConfiguration
在接口中 IPartService
partNumber
- 物料编码partRevision
- 物料版本lineId
- 产线idpublic List<Part> searchProductByParentBOMId(long parentBOMId, String partNumber, String partRevision)
IPartService
searchProductByParentBOMId
在接口中 IPartService
parentBOMId
- 物料清单idpartNumber
- 物料号partRevision
- 版本public List<Part> getProductPart()
IPartService
getProductPart
在接口中 IPartService
public List<Part> getProductPart(String partNumber, String partRevision)
IPartService
getProductPart
在接口中 IPartService
partNumber
- 物料编码,模糊查询partRevision
- 物料版本public Part getByPartNumberAndRev(String partNumber, String partRevision)
IPartService
getByPartNumberAndRev
在接口中 IPartService
partNumber
- 物料号partRevision
- 版本public List<Part> getByPartNumber(String partNumber)
IPartService
getByPartNumber
在接口中 IPartService
partNumber
- 物料号public List<Part> getAllHasBom()
IPartService
getAllHasBom
在接口中 IPartService
public List<Part> getPartGroup()
IPartService
getPartGroup
在接口中 IPartService
public List<Part> getSameBomByBomIdExceptPartId(long partId, long bomId)
IPartService
getSameBomByBomIdExceptPartId
在接口中 IPartService
partId
- 指定的不包含的物料idbomId
- 物料清单idpublic List<Part> getSameBomAndNotConfiguredForRoute(long routeId, long bomId)
IPartService
getSameBomAndNotConfiguredForRoute
在接口中 IPartService
routeId
- 工艺idbomId
- 物料清单idpublic void saveMaterialsAndProducts(List<Part> materials, Map<String,List<Object>> mapProducts)
IPartService
saveMaterialsAndProducts
在接口中 IPartService
materials
- 物料列表mapProducts
- 成品信息public void saveMaterials(List<Part> materials)
IPartService
saveMaterials
在接口中 IPartService
materials
- 物料列表public List<Long> getUnModifiableParts()
IPartService
getUnModifiableParts
在接口中 IPartService
public boolean isModifiableParts(Part part)
IPartService
isModifiableParts
在接口中 IPartService
part
- 物料public List<Part> getBySequenceId(long sequenceId)
IPartService
getBySequenceId
在接口中 IPartService
sequenceId
- 序列号定义idpublic List<Part> getFuzzyByPartNumberAndRev(String partName, String partRevision)
IPartService
getFuzzyByPartNumberAndRev
在接口中 IPartService
partName
- 物料号,模糊查询partRevision
- 版本public List<Part> getPartsByPartClass(long partClassId)
IPartService
getPartsByPartClass
在接口中 IPartService
partClassId
- 物料类别idpublic List<Part> getProductPart(int size, int StartPosition, String serialNumber)
IPartService
getProductPart
在接口中 IPartService
size
- 长度StartPosition
- 开始位置serialNumber
- 序列号public List<Part> getPartsHasBom()
IPartService
getPartsHasBom
在接口中 IPartService
public Part copyProductConfiguration(long fromPartId, long toPartId)
IPartService
copyProductConfiguration
在接口中 IPartService
fromPartId
- 原生产定义绑定的物料toPartId
- 新生产定义绑定的物料public List<Part> getProductByParentBOM(long partId, long parentBOMId)
IPartService
getProductByParentBOM
在接口中 IPartService
partId
- 指定的不包含的物料parentBOMId
- 物料清单idpublic List<SequenceDef> getAssignedSequenceDefs(long partId)
IPartService
getAssignedSequenceDefs
在接口中 IPartService
public void assignSequenceDefs(long partId, Set<Long> sequenceDefIds)
IPartService
assignSequenceDefs
在接口中 IPartService
protected IBaseEntityHandler<PartEntity> getEntityHandler()
Copyright © 2019. All rights reserved.