@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, 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
getBySerialNumber
completeAtRouteStep, 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<WIPWrapper> getUnitToProductByWorkCenterId(long workCenterId)
getUnitToProductByWorkCenterId
在接口中 IUnitService
public List<WIPWrapper> getUnitToProductByPage(Map<String,Object> params, int startPosition, int maxCount)
getUnitToProductByPage
在接口中 IUnitService
public int getUnitToProductByPageTotalCount(Map<String,Object> params)
getUnitToProductByPageTotalCount
在接口中 IUnitService
public List<WIPWrapper> getStartedUnitByWorkCenterId(long workCenterId)
getStartedUnitByWorkCenterId
在接口中 IUnitService
public void closeUnit(long unitId, String reason)
closeUnit
在接口中 IUnitService
public void unCloseUnit(long unitId, String reason)
unCloseUnit
在接口中 IUnitService
public void holdUnit(long unitId, String reason)
holdUnit
在接口中 IUnitService
public void unHoldUnit(long unitId, String reason)
unHoldUnit
在接口中 IUnitService
public void changeState(long id, String stateType)
changeState
在接口中 IUnitService
public List<Unit> getByWorkOrderItemId(long id)
getByWorkOrderItemId
在接口中 IUnitService
public List<Unit> getByWorkOrderId(long id)
getByWorkOrderId
在接口中 IUnitService
public List<Unit> getByLotId(long lotId)
getByLotId
在接口中 IUnitService
public List<Unit> getByWorkCenterAndOrder(String workCenterName, String orderNumber)
getByWorkCenterAndOrder
在接口中 IUnitService
public 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
在接口中 IUnitService
public List<WIPWrapper> getUnitInStepByWorkCenterId(long workCenterId, int startPosition, int maxResult)
getUnitInStepByWorkCenterId
在接口中 IUnitService
public void startAtRouteStep(List<Long> unitIds, long routeStepId, long workStationId, String comments)
startAtRouteStep
在接口中 IUnitService
public void completeAtRouteStep(List<Long> unitIds, long routeStepId, String completeReason, String comments)
completeAtRouteStep
在接口中 IUnitService
public List<Unit> getUnprinted(long orderId, int quantity)
IUnitService
getUnprinted
在接口中 IUnitService
quantity
- 如果 quantity<=0 则查询对应Order所有未打印的Unitpublic List<Unit> getPrintedUnits(long workOrderId, int quantity)
getPrintedUnits
在接口中 IUnitService
public Unit changeOrder(long unitId, long lotId)
changeOrder
在接口中 IUnitService
public void finishClose(long unitId)
finishClose
在接口中 IUnitService
public void changePrintState(List<String> unitSn)
changePrintState
在接口中 IUnitService
public List<Unit> getByWorkorderAndSN(long id, String sn)
IUnitService
getByWorkorderAndSN
在接口中 IUnitService
public void cancelUnit(long id, String reason)
cancelUnit
在接口中 IUnitService
public long getCountByLotId(long lotId)
getCountByLotId
在接口中 IUnitService
public Collection<? extends WIPWrapper> getUnitInStep(long stepId, long productionLineId)
getUnitInStep
在接口中 IUnitService
public Unit getTargetUnitByMaterialSN(String materialSN)
IUnitService
getTargetUnitByMaterialSN
在接口中 IUnitService
public void completeTestUnit(Map<String,String> result, Unit unit, WorkStation workStation, long routeStepId, String errorCode)
completeTestUnit
在接口中 IUnitService
public List<Unit> getUnitByWorkOrderId(long workOrderId)
IUnitService
getUnitByWorkOrderId
在接口中 IUnitService
protected IWIPHandler<UnitEntity> getEntityHandler()
getEntityHandler
在类中 WIPService<Unit,UnitEntity>
public List<Unit> getProcessingByStepId(long routeStepId)
IWIPService
getProcessingByStepId
在接口中 IWIPService<Unit>
routeStepId
- routeStepIdpublic List<Unit> getByOrderItemAndTrackingRule(long orderItemId, String trackingRule)
IWIPService
getByOrderItemAndTrackingRule
在接口中 IWIPService<Unit>
orderItemId
- 工单项idtrackingRule
- 追溯规则public List<Unit> getUnits(long routeId, long routeStepId)
IUnitService
getUnits
在接口中 IUnitService
public List<Unit> getUnitsInProcess(long routeId, long routeStepId)
IUnitService
getUnitsInProcess
在接口中 IUnitService
public List<Unit> getUnitsQueued(long routeId, long routeStepId)
IUnitService
getUnitsQueued
在接口中 IUnitService
public List<Unit> getUnitsQueuedForRouteQueue(long routeId, long routeQueueId)
IUnitService
getUnitsQueuedForRouteQueue
在接口中 IUnitService
public List<Unit> getUnitsByRMAOrder(long rmaOrderId)
getUnitsByRMAOrder
在接口中 IUnitService
Copyright © 2019. All rights reserved.