|
@@ -501,7 +501,7 @@ public class WorkpieceServiceImpl extends SuperServiceImpl<WorkpieceMapper, TWor
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void setWorkPieceStock(String completeBatchNo,String currStorgeId,String parentStorgeId,TaskNode taskNode) {
|
|
|
+ public void setWorkPieceStock(String completeBatchNo,String currStorgeId,String parentStorgeId,TaskNode taskNode,String uniqueCode) {
|
|
|
List<TWorkpiece>list = baseMapper.selectList(Wraps.<TWorkpiece>lbQ().eq(TWorkpiece::getCompleteBatchNo,completeBatchNo));
|
|
|
if(CollectionUtil.isNotEmpty(list)){
|
|
|
TWorkpiece tWorkpiece = list.get(0);
|
|
@@ -524,6 +524,10 @@ public class WorkpieceServiceImpl extends SuperServiceImpl<WorkpieceMapper, TWor
|
|
|
// tWorkpiece.setTpointId(tstorge.getPointId());
|
|
|
// }
|
|
|
|
|
|
+ if(StringUtil.isNotEmpty(uniqueCode)){
|
|
|
+ tWorkpiece.setUniqueCode(uniqueCode);
|
|
|
+ }
|
|
|
+
|
|
|
baseMapper.updateAllById(tWorkpiece);
|
|
|
}
|
|
|
}
|