| | |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | */ |
| | | @Api(tags = "排产工单") |
| | | @RestController |
| | | @RequestMapping("/mesproductionworkorder/mesProductionWorkOrder") |
| | | @RequestMapping("/mes/mesProductionWorkOrder") |
| | | @Slf4j |
| | | public class MesProductionWorkOrderController extends JeecgController<MesProductionWorkOrder, IMesProductionWorkOrderService> { |
| | | @Autowired |
| | |
| | | mesProductionWorkOrderList.forEach(item -> { |
| | | if (Objects.isNull(item.getId())) { |
| | | item.setWorkOrderStatus(ProductionWorkOrderStatus.NEW.name()); |
| | | item.setCompletenessCheckFlag(CommonConstant.DEFAULT_0); |
| | | item.setEquipmentInspectionFlag(CommonConstant.DEFAULT_0); |
| | | item.setProcessInspectionFlag(CommonConstant.DEFAULT_0); |
| | | item.setActualQuantity(BigDecimal.ZERO); |
| | | item.setFinishedPallets(0); |
| | | } |
| | | }); |
| | | mesProductionWorkOrderService.saveOrUpdateBatch(mesProductionWorkOrderList); |