public interface ILotService extends IWIPService<Lot>
限定符和类型 | 方法和说明 |
---|---|
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> |
getByProductionLineId(long productionLineId)
获取所有在该产线上生产且未close的批次列表
|
List<Lot> |
getByWorkOrderId(long workOrderId)
查询工单下面所有lot
|
List<Lot> |
getByWorkOrderItemId(long orderItemId)
查询所有工单项下的所有批次
|
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> |
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, getByOrderItemAndTrackingRule, getBySerialNumber, getNextStartableSteps, getPreviousVisableQueue, getProcessingByStepId, hold, moveToStepQueue, scrappedAtRouteStep, startAtRouteStep, unHold
changeStatus
countByFilter, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, list, list, listByFilter, listSimpleData, pagingByFilter, save, saveAll
List<Lot> getByWorkOrderId(long workOrderId)
workOrderId
- 工单idList<Lot> getByProductionLineId(long productionLineId)
productionLineId
- 产线idList<Lot> getByWorkOrderItemId(long orderItemId)
orderItemId
- 工单项idLot closeLot(long lotId, String reason)
lotId
- 彼此idreason
- 原因Lot holdLot(long lotId, String reason)
lotId
- 批次idreason
- 原因Lot unHoldLot(long lotId, String reason)
lotId
- 批次idreason
- 原因List<WIPWrapper> getLotToProductByRouteStepId(long workCenterId)
workCenterId
- 工作中心idList<WIPWrapper> getLotInStepByStepId(long workCenterId)
workCenterId
- 工作中心idList<Lot> getUnprintedLot(long workOrderId)
workOrderId
- 工单idvoid generateUnit(long orderItemId, long lotId, long qty, boolean snGenerated)
orderItemId
- 工单项idlotId
- 批次idqty
- 生成unit的数量snGenerated
- 是否根据序列号规则生成unit的序列号void finishClose(long lotId)
lotId
- Lot createWithType()
Lot saveWithOrderItem(Lot lot, long orderItemId, com.ags.mes.extension.aps.dto.ScheduleDetail scheduleDetail, boolean snLotGenerated, boolean snUnitGenerated)
lot
- 批次orderItemId
- 工单项idscheduleDetail
- 调度信息snLotGenerated
- 是否生成lot序列号snUnitGenerated
- 是否生成unit序列号Lot populateLotPropertiesForRelease(Lot lot, long orderItemId, long lineId, long routeId)
lot
- orderItemId
- lineId
- routeId
- List<Lot> getLotsByWorkorderAndSN(long workOrderId, String sn)
workOrderId
- 工单idsn
- 序列号,模糊查询List<Lot> getLotByWorkOrderId(long workOrderId)
workOrderId
- 工单idvoid completeAtRouteStep(List<Long> lotIds, long routeStepId, String completeReason, String comments)
lotIds
- 批次列表idrouteStepId
- 工艺步骤idcompleteReason
- 完成原因comments
- 备注List<Lot> getLots(long routeId, long routeStepId)
routeId
- routeStepId
- List<Lot> getLotsInProcess(long routeId, long routeStepId)
routeId
- routeStepId
- List<Lot> getLotsQueuedForRouteQueue(long routeId, long routeQueueId)
routeId
- routeQueueId
- List<Lot> getLotsQueued(long routeId, long routeStepId)
routeId
- routeStepId
- Copyright © 2019. All rights reserved.