@Service @Primary public class LotService extends WIPService<Lot,LotEntity> implements ILotService
domainObjectClass, entityClass| 构造器和说明 |
|---|
LotService() |
| 限定符和类型 | 方法和说明 |
|---|---|
Lot |
cancelLot(long lotId,
String reason)
取消批次
|
Lot |
closeLot(long lotId,
String reason)
关闭批次,会关闭批次下所有unit,并更新lot和unit状态为closed
|
void |
completeAtRouteStep(List<Long> lotIds,
long routeStepId,
String completeReason,
String comments)
将批次列表在对应的工艺步骤上执行完成动作
|
Lot |
createWithType()
创建一个单独的lot
|
void |
finishClose(long lotId)
lot在finish或者close时的通知回调,该方法会更新lot对应工单下面的所有关于数量的状态信息
|
void |
generateUnit(long orderItemId,
long lotId,
long qty,
boolean snGenerated)
根据工单项,批次号生产对应数量的unit
|
Lot |
getByName(String name)
根据批次名称查询批次
|
List<Lot> |
getByOrderItemAndTrackingRule(long orderItemId,
String trackingRule)
查询该工单项下该追溯规则的产品列表
|
List<Lot> |
getByProductionLineId(long productionLineId)
获取所有在该产线上生产且未close的批次列表
|
List<Lot> |
getByWorkOrderId(long workOrderId)
查询工单下面所有lot
|
List<Lot> |
getByWorkOrderItemId(long orderItemId)
查询所有工单项下的所有批次
|
protected IWIPHandler<LotEntity> |
getEntityHandler() |
Lot |
getLotBySN(String lotSN)
根据lot的批次号查询lot
|
List<Lot> |
getLotByWorkOrderId(long workOrderId)
获取工单下所有批次
|
List<WIPWrapper> |
getLotInStepByStepId(long workCenterId)
查询在正在工作中心上生产的批次
|
List<Lot> |
getLots(long routeId,
long routeStepId)
返回已经在当前 Route Step完成,且还没有在其它 Route Step 上 Start 的Lot的清单
|
List<Lot> |
getLotsByWorkorderAndSN(long workOrderId,
String sn)
模糊查询工单下相关序列号的批次列表
|
List<Lot> |
getLotsInProcess(long routeId,
long routeStepId)
返回已经在当前 Route Step上已经Start,且还没有Complete 的Lot的清单。
|
List<Lot> |
getLotsQueued(long routeId,
long routeStepId)
返回WIP在当前Route Step对应的 Incoming Queue上的 Lot的清单。
|
List<Lot> |
getLotsQueuedForRouteQueue(long routeId,
long routeQueueId)
返回WIP在当前Route Queue上的 Lot的清单。
|
List<WIPWrapper> |
getLotToProductByRouteStepId(long workCenterId)
查询在工作中心上待生产的批次, 包含前面费必过站上的批次
|
List<Lot> |
getProcessingByStepId(long routeStepId)
查询在routeStep上正在处理的产品列表
|
List<Lot> |
getUnprintedLot(long workOrderId)
查询工单下未打印标签的批次
|
Lot |
holdLot(long lotId,
String reason)
hold批次, 将lot和unit的状态置为hold
|
Lot |
populateLotPropertiesForRelease(Lot lot,
long orderItemId,
long lineId,
long routeId)
根据输入的参数填充lot的属性,产线,工艺等状态信息都会更新
|
Lot |
saveWithOrderItem(Lot lot,
long orderItemId,
com.ags.mes.extension.aps.dto.ScheduleDetail scheduleDetail,
boolean snLotGenerated,
boolean snUnitGenerated)
根据传过来的lot信息,创建lot以及unit信息
|
Lot |
unCloseLot(long lotId,
String reason)
对关闭的批次进行还原
|
Lot |
unHoldLot(long lotId,
String reason)
unHold批次,将lot和unit的状态还原为hold之前的状态,如果不是hold状态,则该方法不做任何动作
|
completeAtRouteStep, getBySerialNumber, getNextStartableSteps, getPreviousVisableQueue, hold, moveToStepQueue, scrappedAtRouteStep, startAtRouteStep, unHoldchangeStatuscountByFilter, 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, waitcompleteAtRouteStep, getBySerialNumber, getNextStartableSteps, getPreviousVisableQueue, hold, moveToStepQueue, scrappedAtRouteStep, startAtRouteStep, unHoldchangeStatuscountByFilter, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, list, list, listByFilter, listSimpleData, pagingByFilter, save, saveAllpublic List<Lot> getByWorkOrderId(long workOrderId)
ILotServicegetByWorkOrderId 在接口中 ILotServiceworkOrderId - 工单idpublic List<Lot> getByProductionLineId(long productionLineId)
ILotServicegetByProductionLineId 在接口中 ILotServiceproductionLineId - 产线idpublic List<Lot> getByWorkOrderItemId(long orderItemId)
ILotServicegetByWorkOrderItemId 在接口中 ILotServiceorderItemId - 工单项idpublic Lot closeLot(long lotId, String reason)
ILotServicecloseLot 在接口中 ILotServicelotId - 彼此idreason - 原因public Lot unCloseLot(long lotId, String reason)
ILotServiceunCloseLot 在接口中 ILotServicelotId - 批次idreason - 原因public Lot holdLot(long lotId, String reason)
ILotServiceholdLot 在接口中 ILotServicelotId - 批次idreason - 原因public Lot cancelLot(long lotId, String reason)
ILotServicecancelLot 在接口中 ILotServicelotId - 批次idreason - 原因public Lot unHoldLot(long lotId, String reason)
ILotServiceunHoldLot 在接口中 ILotServicelotId - 批次idreason - 原因public List<WIPWrapper> getLotToProductByRouteStepId(long workCenterId)
ILotServicegetLotToProductByRouteStepId 在接口中 ILotServiceworkCenterId - 工作中心idpublic List<WIPWrapper> getLotInStepByStepId(long workCenterId)
ILotServicegetLotInStepByStepId 在接口中 ILotServiceworkCenterId - 工作中心idpublic Lot getLotBySN(String lotSN)
ILotServicegetLotBySN 在接口中 ILotServicepublic List<Lot> getUnprintedLot(long workOrderId)
ILotServicegetUnprintedLot 在接口中 ILotServiceworkOrderId - 工单idpublic void generateUnit(long orderItemId,
long lotId,
long qty,
boolean snGenerated)
ILotServicegenerateUnit 在接口中 ILotServiceorderItemId - 工单项idlotId - 批次idqty - 生成unit的数量snGenerated - 是否根据序列号规则生成unit的序列号public void finishClose(long lotId)
ILotServicefinishClose 在接口中 ILotServicepublic Lot createWithType()
ILotServicecreateWithType 在接口中 ILotServicepublic Lot populateLotPropertiesForRelease(Lot lot, long orderItemId, long lineId, long routeId)
ILotServicepopulateLotPropertiesForRelease 在接口中 ILotServicepublic List<Lot> getLotsByWorkorderAndSN(long workOrderId, String sn)
ILotServicegetLotsByWorkorderAndSN 在接口中 ILotServiceworkOrderId - 工单idsn - 序列号,模糊查询public List<Lot> getLotByWorkOrderId(long workOrderId)
ILotServicegetLotByWorkOrderId 在接口中 ILotServiceworkOrderId - 工单idpublic void completeAtRouteStep(List<Long> lotIds, long routeStepId, String completeReason, String comments)
ILotServicecompleteAtRouteStep 在接口中 ILotServicelotIds - 批次列表idrouteStepId - 工艺步骤idcompleteReason - 完成原因comments - 备注public Lot saveWithOrderItem(Lot lot, long orderItemId, com.ags.mes.extension.aps.dto.ScheduleDetail scheduleDetail, boolean snLotGenerated, boolean snUnitGenerated)
ILotServicesaveWithOrderItem 在接口中 ILotServicelot - 批次orderItemId - 工单项idscheduleDetail - 调度信息snLotGenerated - 是否生成lot序列号snUnitGenerated - 是否生成unit序列号protected IWIPHandler<LotEntity> getEntityHandler()
getEntityHandler 在类中 WIPService<Lot,LotEntity>public List<Lot> getProcessingByStepId(long routeStepId)
IWIPServicegetProcessingByStepId 在接口中 IWIPService<Lot>routeStepId - routeStepIdpublic List<Lot> getByOrderItemAndTrackingRule(long orderItemId, String trackingRule)
IWIPServicegetByOrderItemAndTrackingRule 在接口中 IWIPService<Lot>orderItemId - 工单项idtrackingRule - 追溯规则public List<Lot> getLots(long routeId, long routeStepId)
ILotServicegetLots 在接口中 ILotServicepublic List<Lot> getLotsInProcess(long routeId, long routeStepId)
ILotServicegetLotsInProcess 在接口中 ILotServicepublic List<Lot> getLotsQueued(long routeId, long routeStepId)
ILotServicegetLotsQueued 在接口中 ILotServicepublic List<Lot> getLotsQueuedForRouteQueue(long routeId, long routeQueueId)
ILotServicegetLotsQueuedForRouteQueue 在接口中 ILotServicepublic Lot getByName(String name)
ILotServicegetByName 在接口中 ILotServiceCopyright © 2019. All rights reserved.