@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, unHold
changeStatus
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
completeAtRouteStep, getBySerialNumber, getNextStartableSteps, getPreviousVisableQueue, hold, moveToStepQueue, scrappedAtRouteStep, startAtRouteStep, unHold
changeStatus
countByFilter, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, list, list, listByFilter, listSimpleData, pagingByFilter, save, saveAll
public List<Lot> getByWorkOrderId(long workOrderId)
ILotService
getByWorkOrderId
在接口中 ILotService
workOrderId
- 工单idpublic List<Lot> getByProductionLineId(long productionLineId)
ILotService
getByProductionLineId
在接口中 ILotService
productionLineId
- 产线idpublic List<Lot> getByWorkOrderItemId(long orderItemId)
ILotService
getByWorkOrderItemId
在接口中 ILotService
orderItemId
- 工单项idpublic Lot closeLot(long lotId, String reason)
ILotService
closeLot
在接口中 ILotService
lotId
- 彼此idreason
- 原因public Lot unCloseLot(long lotId, String reason)
ILotService
unCloseLot
在接口中 ILotService
lotId
- 批次idreason
- 原因public Lot holdLot(long lotId, String reason)
ILotService
holdLot
在接口中 ILotService
lotId
- 批次idreason
- 原因public Lot cancelLot(long lotId, String reason)
ILotService
cancelLot
在接口中 ILotService
lotId
- 批次idreason
- 原因public Lot unHoldLot(long lotId, String reason)
ILotService
unHoldLot
在接口中 ILotService
lotId
- 批次idreason
- 原因public List<WIPWrapper> getLotToProductByRouteStepId(long workCenterId)
ILotService
getLotToProductByRouteStepId
在接口中 ILotService
workCenterId
- 工作中心idpublic List<WIPWrapper> getLotInStepByStepId(long workCenterId)
ILotService
getLotInStepByStepId
在接口中 ILotService
workCenterId
- 工作中心idpublic Lot getLotBySN(String lotSN)
ILotService
getLotBySN
在接口中 ILotService
public List<Lot> getUnprintedLot(long workOrderId)
ILotService
getUnprintedLot
在接口中 ILotService
workOrderId
- 工单idpublic void generateUnit(long orderItemId, long lotId, long qty, boolean snGenerated)
ILotService
generateUnit
在接口中 ILotService
orderItemId
- 工单项idlotId
- 批次idqty
- 生成unit的数量snGenerated
- 是否根据序列号规则生成unit的序列号public void finishClose(long lotId)
ILotService
finishClose
在接口中 ILotService
public Lot createWithType()
ILotService
createWithType
在接口中 ILotService
public Lot populateLotPropertiesForRelease(Lot lot, long orderItemId, long lineId, long routeId)
ILotService
populateLotPropertiesForRelease
在接口中 ILotService
public List<Lot> getLotsByWorkorderAndSN(long workOrderId, String sn)
ILotService
getLotsByWorkorderAndSN
在接口中 ILotService
workOrderId
- 工单idsn
- 序列号,模糊查询public List<Lot> getLotByWorkOrderId(long workOrderId)
ILotService
getLotByWorkOrderId
在接口中 ILotService
workOrderId
- 工单idpublic void completeAtRouteStep(List<Long> lotIds, long routeStepId, String completeReason, String comments)
ILotService
completeAtRouteStep
在接口中 ILotService
lotIds
- 批次列表idrouteStepId
- 工艺步骤idcompleteReason
- 完成原因comments
- 备注public Lot saveWithOrderItem(Lot lot, long orderItemId, com.ags.mes.extension.aps.dto.ScheduleDetail scheduleDetail, boolean snLotGenerated, boolean snUnitGenerated)
ILotService
saveWithOrderItem
在接口中 ILotService
lot
- 批次orderItemId
- 工单项idscheduleDetail
- 调度信息snLotGenerated
- 是否生成lot序列号snUnitGenerated
- 是否生成unit序列号protected IWIPHandler<LotEntity> getEntityHandler()
getEntityHandler
在类中 WIPService<Lot,LotEntity>
public List<Lot> getProcessingByStepId(long routeStepId)
IWIPService
getProcessingByStepId
在接口中 IWIPService<Lot>
routeStepId
- routeStepIdpublic List<Lot> getByOrderItemAndTrackingRule(long orderItemId, String trackingRule)
IWIPService
getByOrderItemAndTrackingRule
在接口中 IWIPService<Lot>
orderItemId
- 工单项idtrackingRule
- 追溯规则public List<Lot> getLots(long routeId, long routeStepId)
ILotService
getLots
在接口中 ILotService
public List<Lot> getLotsInProcess(long routeId, long routeStepId)
ILotService
getLotsInProcess
在接口中 ILotService
public List<Lot> getLotsQueued(long routeId, long routeStepId)
ILotService
getLotsQueued
在接口中 ILotService
public List<Lot> getLotsQueuedForRouteQueue(long routeId, long routeQueueId)
ILotService
getLotsQueuedForRouteQueue
在接口中 ILotService
public Lot getByName(String name)
ILotService
getByName
在接口中 ILotService
Copyright © 2019. All rights reserved.