|
@@ -19,7 +19,6 @@ import com.github.zuihou.business.productionReadyCenter.service.MToolClampServic
|
|
|
import com.github.zuihou.business.productionReadyCenter.service.TrayService;
|
|
|
import com.github.zuihou.business.productionResourceCenter.dao.ProductionresourceBizMapper;
|
|
|
import com.github.zuihou.business.productionResourceCenter.dao.ProductionresourcePositionMapper;
|
|
|
-import com.github.zuihou.business.productionResourceCenter.entity.Productionresource;
|
|
|
import com.github.zuihou.business.productionResourceCenter.entity.ProductionresourcePosition;
|
|
|
import com.github.zuihou.business.productionResourceCenter.service.ProductionresourcePositionService;
|
|
|
import com.github.zuihou.common.util.StringUtil;
|
|
@@ -333,8 +332,31 @@ public class WorkpieceServiceImpl extends SuperServiceImpl<WorkpieceMapper, TWor
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param taskNodeId
|
|
|
+ * @param isParent
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@Override
|
|
|
- public TWorkpiece getWorkPieceStock(Long taskNodeId) {
|
|
|
+ public Storge getWorkPieceStock(Long taskNodeId,boolean isParent) {
|
|
|
+ Storge storge = new Storge();
|
|
|
+ TWorkpiece tWorkpiece = new TWorkpiece();
|
|
|
+ List<TWorkpiece>list = baseMapper.selectList(Wraps.<TWorkpiece>lbQ().eq(TWorkpiece::getTaskNodeId,taskNodeId));
|
|
|
+ if(CollectionUtil.isNotEmpty(list)){
|
|
|
+ tWorkpiece = list.get(0);
|
|
|
+ }
|
|
|
+ if(isParent){//查父
|
|
|
+ storge = storgeMapper.selectById(tWorkpiece.getPstorgeId());
|
|
|
+ }else{
|
|
|
+ storge = storgeMapper.selectById(tWorkpiece.getStorgeId());
|
|
|
+ }
|
|
|
+
|
|
|
+ return storge;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public TWorkpiece getWorkPiece(Long taskNodeId) {
|
|
|
TWorkpiece tWorkpiece = new TWorkpiece();
|
|
|
List<TWorkpiece>list = baseMapper.selectList(Wraps.<TWorkpiece>lbQ().eq(TWorkpiece::getTaskNodeId,taskNodeId));
|
|
|
if(CollectionUtil.isNotEmpty(list)){
|