春风项目四线(合箱线、总装线)
wujian
2024-09-10 51b05b093fa15dd477981372f67ae7b3b2747733
jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/controller/OmProductionOrdeInfoController.java
@@ -58,6 +58,15 @@
    public TableDataInfo list(OmProductionOrdeInfo omProductionOrdeInfo)
    {
        startPage();
        if (StrUtil.isNotBlank(omProductionOrdeInfo.getEngineNo())){
            BsOrderScheduling bsOrderScheduling = bsOrderSchedulingService.selectBsOrderSchedulingSNCode(omProductionOrdeInfo.getEngineNo());
            if (ObjectUtil.isNotEmpty(bsOrderScheduling)){
                String orderNo = bsOrderScheduling.getOrderNo();
                if (StrUtil.isNotBlank(orderNo)){
                    omProductionOrdeInfo.setWorkOrderNo(orderNo);
                }
            }
        }
        List<OmProductionOrdeInfo> list = omProductionOrdeInfoService.selectOmProductionOrdeInfoList(omProductionOrdeInfo);
        return getDataTable(list);
    }
@@ -255,8 +264,11 @@
        if (StrUtil.isBlank(factory)){
            throw new ServiceException("请选择工厂编号");
        }
        List<OmProductionOrdeInfo> omProductionOrdeInfos = omProductionOrdeInfoService.selectOmProductionOrdeInfoList(omProductionOrdeInfo);
        if(omProductionOrdeInfos.size() == 0){
        OmProductionOrdeInfo queryProductOrder = new OmProductionOrdeInfo();
        queryProductOrder.setWorkshopCode(factory);
        queryProductOrder.setProductionNotice(productionNotice);
        List<OmProductionOrdeInfo> omProductionOrdeInfos = omProductionOrdeInfoService.selectOmProductionOrdeInfoList(queryProductOrder);
        if(CollUtil.isEmpty(omProductionOrdeInfos)){
            try {
                logger.info("接收工单号:,{}",productionNotice);
                ReceivingServices.insertWebserviceData(factory,productionNotice);