|
|
@ -893,7 +893,8 @@ public class MesWorkOrderService extends BaseMesService<MesWorkOrder> implements
|
|
|
|
String sn = getStringList(mesWorkOrder);
|
|
|
|
String sn = getStringList(mesWorkOrder);
|
|
|
|
//保存数据
|
|
|
|
//保存数据
|
|
|
|
List<MesProductOffLine> mesProductOffLineList = new ArrayList<>();
|
|
|
|
List<MesProductOffLine> mesProductOffLineList = new ArrayList<>();
|
|
|
|
String nowTime = TimeTool.getNowTime(true);
|
|
|
|
String nowTime = StringUtil.isEmpty(mesWorkOrder.getDescription())?TimeTool.getNowTime(true):mesWorkOrder.getDescription();
|
|
|
|
|
|
|
|
|
|
|
|
for (MesBom mesBom : mesBoms) {
|
|
|
|
for (MesBom mesBom : mesBoms) {
|
|
|
|
mesProductOffLineList.add(creatMesProductOffLine(mesWorkOrder, mesProductVersion, sn, mesBom, false,nowTime));
|
|
|
|
mesProductOffLineList.add(creatMesProductOffLine(mesWorkOrder, mesProductVersion, sn, mesBom, false,nowTime));
|
|
|
|
}
|
|
|
|
}
|
|
|
|