|
|
|
@ -334,11 +334,8 @@ public class ShopOrderReleaseServiceImpl implements ShopOrderReleaseService {
|
|
|
|
|
String routerStepBo = entryRouterStepBo;
|
|
|
|
|
|
|
|
|
|
//首工序计划开始时间为工单计划开始时间
|
|
|
|
|
LocalDateTime plannedStartDate = shopOrderModel.getPlannedStartDate();
|
|
|
|
|
if (plannedStartDate == null){
|
|
|
|
|
plannedStartDate = nowDate;
|
|
|
|
|
}
|
|
|
|
|
LocalDateTime plannedCompleteDate;
|
|
|
|
|
//LocalDateTime plannedStartDate = shopOrderModel.getPlannedStartDate();
|
|
|
|
|
//LocalDateTime plannedCompleteDate = shopOrderModel.getPlannedStartDate();
|
|
|
|
|
|
|
|
|
|
//前置步骤&工序
|
|
|
|
|
String prepositionStepId = null;
|
|
|
|
@ -369,7 +366,7 @@ public class ShopOrderReleaseServiceImpl implements ShopOrderReleaseService {
|
|
|
|
|
|
|
|
|
|
Double prodHours = new Double(this.prodHoursCl(operation, routerDTO.getProdHours()));
|
|
|
|
|
//计算完成时间
|
|
|
|
|
plannedCompleteDate = plannedStartDate.plusMinutes(prodHours.longValue());
|
|
|
|
|
//plannedCompleteDate = plannedStartDate.plusMinutes(prodHours.longValue());
|
|
|
|
|
|
|
|
|
|
//查询工序所属车间
|
|
|
|
|
String workCenter = null;
|
|
|
|
@ -406,10 +403,8 @@ public class ShopOrderReleaseServiceImpl implements ShopOrderReleaseService {
|
|
|
|
|
sfcDispatchModel.setDispatchQty(sfcModel.getQty());
|
|
|
|
|
sfcDispatchModel.setProdHours(prodHours);
|
|
|
|
|
sfcDispatchModel.setTurnOperation("false");
|
|
|
|
|
if (operation.equals("WX_6106GX")) {
|
|
|
|
|
sfcDispatchModel.setPlannedStartDate(plannedStartDate);
|
|
|
|
|
sfcDispatchModel.setPlannedCompDate(plannedCompleteDate);
|
|
|
|
|
}
|
|
|
|
|
//sfcDispatchModel.setPlannedStartDate(plannedStartDate);
|
|
|
|
|
//sfcDispatchModel.setPlannedCompleteDate(plannedCompleteDate);
|
|
|
|
|
sfcDispatchModel.setSoReleasedDate(nowDate);
|
|
|
|
|
sfcDispatchModel.setIsDispatch(Constants.BOOL_FALSE);
|
|
|
|
|
sfcDispatchModel.setIsImport(Constants.BOOL_FALSE);
|
|
|
|
|