@Service @Primary public class UnitService extends WIPService<Unit,UnitEntity> implements IUnitService
domainObjectClass, entityClass| 构造器和说明 |
|---|
UnitService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cancelUnit(long id,
String reason) |
Unit |
changeOrder(long unitId,
long lotId) |
void |
changePrintState(List<String> unitSn) |
void |
changeState(long id,
String stateType) |
void |
closeUnit(long unitId,
String reason) |
void |
completeAtRouteStep(List<Long> unitIds,
long routeStepId,
String completeReason,
String comments) |
void |
completeTestUnit(Map<String,String> result,
Unit unit,
WorkStation workStation,
long routeStepId,
String errorCode) |
void |
finishClose(long unitId) |
List<Unit> |
getByIds(List<Long> id) |
List<Unit> |
getByLotId(long lotId) |
List<Unit> |
getByOrderItemAndTrackingRule(long orderItemId,
String trackingRule)
查询该工单项下该追溯规则的产品列表
|
List<Unit> |
getByWorkCenterAndOrder(String workCenterName,
String orderNumber) |
List<Unit> |
getByWorkorderAndSN(long id,
String sn)
根据orderId 再根据sn模糊查询
|
List<Unit> |
getByWorkOrderId(long id) |
List<Unit> |
getByWorkOrderItemId(long id) |
List<Unit> |
getCompletedUnitByWorkCenterAndOrder(String workCenterName,
String orderNumber) |
List<Unit> |
getCompletedUnitByWorkCenterAndOrder(String workCenterName,
String orderNumber,
int startPos,
int maxResult) |
long |
getCountByLotId(long lotId) |
long |
getCountOfCompletedUnitByWorkCenterAndOrder(String workCenterName,
String orderNumber) |
protected IWIPHandler<UnitEntity> |
getEntityHandler() |
List<Unit> |
getPrintedUnits(long workOrderId,
int quantity) |
List<Unit> |
getProcessingByStepId(long routeStepId)
查询在routeStep上正在处理的产品列表
|
List<WIPWrapper> |
getStartedUnitByWorkCenterId(long workCenterId) |
Unit |
getTargetUnitByMaterialSN(String materialSN)
根据物料SN查找它对应的Unit,多层的情况(有半成品)返回最上层。
|
List<Unit> |
getUnitByWorkOrderId(long workOrderId)
通过工单ID获取该工单所有的Unit
|
Collection<? extends WIPWrapper> |
getUnitInStep(long stepId,
long productionLineId) |
List<WIPWrapper> |
getUnitInStepByWorkCenterId(long workCenterId) |
List<WIPWrapper> |
getUnitInStepByWorkCenterId(long workCenterId,
int startPosition,
int maxResult) |
List<Unit> |
getUnits(long routeId,
long routeStepId)
返回已经在当前 Route Step完成,且还没有在其它 Route Step 上 Start 的Unit的清单。
|
List<Unit> |
getUnitsByRMAOrder(long rmaOrderId) |
List<Unit> |
getUnitsInProcess(long routeId,
long routeStepId)
返回已经在当前 Route Step上已经Start,且还没有Complete 的Unit的清单。
|
List<Unit> |
getUnitsQueued(long routeId,
long routeStepId)
返回WIP在当前Route Step对应的 Incoming Queue上的 Unit的清单。
|
List<Unit> |
getUnitsQueuedForRouteQueue(long routeId,
long routeQueueId)
返回WIP在当前Route Queue上的 Unit的清单。
|
List<WIPWrapper> |
getUnitToProductByPage(Map<String,Object> params,
int startPosition,
int maxCount) |
int |
getUnitToProductByPageTotalCount(Map<String,Object> params) |
List<WIPWrapper> |
getUnitToProductByWorkCenterId(long workCenterId) |
List<Unit> |
getUnprinted(long orderId,
int quantity)
查询为打印的Unit
|
void |
holdUnit(long unitId,
String reason) |
void |
startAtRouteStep(List<Long> unitIds,
long routeStepId,
long workStationId,
String comments) |
void |
unCloseUnit(long unitId,
String reason) |
void |
unHoldUnit(long unitId,
String reason) |
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, waitgetBySerialNumbercompleteAtRouteStep, getNextStartableSteps, getPreviousVisableQueue, hold, moveToStepQueue, scrappedAtRouteStep, startAtRouteStep, unHoldchangeStatuscountByFilter, createFilter, delete, deleteById, deleteByIds, getByFilter, getById, getByIdAndEvict, list, list, listByFilter, listSimpleData, pagingByFilter, save, saveAllpublic List<WIPWrapper> getUnitToProductByWorkCenterId(long workCenterId)
getUnitToProductByWorkCenterId 在接口中 IUnitServicepublic List<WIPWrapper> getUnitToProductByPage(Map<String,Object> params, int startPosition, int maxCount)
getUnitToProductByPage 在接口中 IUnitServicepublic int getUnitToProductByPageTotalCount(Map<String,Object> params)
getUnitToProductByPageTotalCount 在接口中 IUnitServicepublic List<WIPWrapper> getStartedUnitByWorkCenterId(long workCenterId)
getStartedUnitByWorkCenterId 在接口中 IUnitServicepublic void closeUnit(long unitId,
String reason)
closeUnit 在接口中 IUnitServicepublic void unCloseUnit(long unitId,
String reason)
unCloseUnit 在接口中 IUnitServicepublic void holdUnit(long unitId,
String reason)
holdUnit 在接口中 IUnitServicepublic void unHoldUnit(long unitId,
String reason)
unHoldUnit 在接口中 IUnitServicepublic void changeState(long id,
String stateType)
changeState 在接口中 IUnitServicepublic List<Unit> getByWorkOrderItemId(long id)
getByWorkOrderItemId 在接口中 IUnitServicepublic List<Unit> getByWorkOrderId(long id)
getByWorkOrderId 在接口中 IUnitServicepublic List<Unit> getByLotId(long lotId)
getByLotId 在接口中 IUnitServicepublic List<Unit> getByWorkCenterAndOrder(String workCenterName, String orderNumber)
getByWorkCenterAndOrder 在接口中 IUnitServicepublic List<Unit> getCompletedUnitByWorkCenterAndOrder(String workCenterName, String orderNumber)
public long getCountOfCompletedUnitByWorkCenterAndOrder(String workCenterName, String orderNumber)
public List<Unit> getCompletedUnitByWorkCenterAndOrder(String workCenterName, String orderNumber, int startPos, int maxResult)
public List<WIPWrapper> getUnitInStepByWorkCenterId(long workCenterId)
getUnitInStepByWorkCenterId 在接口中 IUnitServicepublic List<WIPWrapper> getUnitInStepByWorkCenterId(long workCenterId, int startPosition, int maxResult)
getUnitInStepByWorkCenterId 在接口中 IUnitServicepublic void startAtRouteStep(List<Long> unitIds, long routeStepId, long workStationId, String comments)
startAtRouteStep 在接口中 IUnitServicepublic void completeAtRouteStep(List<Long> unitIds, long routeStepId, String completeReason, String comments)
completeAtRouteStep 在接口中 IUnitServicepublic List<Unit> getUnprinted(long orderId, int quantity)
IUnitServicegetUnprinted 在接口中 IUnitServicequantity - 如果 quantity<=0 则查询对应Order所有未打印的Unitpublic List<Unit> getPrintedUnits(long workOrderId, int quantity)
getPrintedUnits 在接口中 IUnitServicepublic Unit changeOrder(long unitId, long lotId)
changeOrder 在接口中 IUnitServicepublic void finishClose(long unitId)
finishClose 在接口中 IUnitServicepublic void changePrintState(List<String> unitSn)
changePrintState 在接口中 IUnitServicepublic List<Unit> getByWorkorderAndSN(long id, String sn)
IUnitServicegetByWorkorderAndSN 在接口中 IUnitServicepublic void cancelUnit(long id,
String reason)
cancelUnit 在接口中 IUnitServicepublic long getCountByLotId(long lotId)
getCountByLotId 在接口中 IUnitServicepublic Collection<? extends WIPWrapper> getUnitInStep(long stepId, long productionLineId)
getUnitInStep 在接口中 IUnitServicepublic Unit getTargetUnitByMaterialSN(String materialSN)
IUnitServicegetTargetUnitByMaterialSN 在接口中 IUnitServicepublic void completeTestUnit(Map<String,String> result, Unit unit, WorkStation workStation, long routeStepId, String errorCode)
completeTestUnit 在接口中 IUnitServicepublic List<Unit> getUnitByWorkOrderId(long workOrderId)
IUnitServicegetUnitByWorkOrderId 在接口中 IUnitServiceprotected IWIPHandler<UnitEntity> getEntityHandler()
getEntityHandler 在类中 WIPService<Unit,UnitEntity>public List<Unit> getProcessingByStepId(long routeStepId)
IWIPServicegetProcessingByStepId 在接口中 IWIPService<Unit>routeStepId - routeStepIdpublic List<Unit> getByOrderItemAndTrackingRule(long orderItemId, String trackingRule)
IWIPServicegetByOrderItemAndTrackingRule 在接口中 IWIPService<Unit>orderItemId - 工单项idtrackingRule - 追溯规则public List<Unit> getUnits(long routeId, long routeStepId)
IUnitServicegetUnits 在接口中 IUnitServicepublic List<Unit> getUnitsInProcess(long routeId, long routeStepId)
IUnitServicegetUnitsInProcess 在接口中 IUnitServicepublic List<Unit> getUnitsQueued(long routeId, long routeStepId)
IUnitServicegetUnitsQueued 在接口中 IUnitServicepublic List<Unit> getUnitsQueuedForRouteQueue(long routeId, long routeQueueId)
IUnitServicegetUnitsQueuedForRouteQueue 在接口中 IUnitServicepublic List<Unit> getUnitsByRMAOrder(long rmaOrderId)
getUnitsByRMAOrder 在接口中 IUnitServiceCopyright © 2019. All rights reserved.