春风项目四线(合箱线、总装线)
吴健
9 天以前 8b43954926db6b4df6a61ab6e04d6cb11189069d
jcdm-main/src/main/java/com/jcdm/main/om/productionOrde/controller/OmProductionOrdeInfoController.java
@@ -17,6 +17,7 @@
import com.jcdm.main.om.productionOrde.domain.OmProductionOrdeInfo;
import com.jcdm.main.om.productionOrde.service.IOmProductionOrdeInfoService;
import com.jcdm.main.webservice.service.ReceivingServices;
import com.kangaroohy.milo.model.ReadWriteEntity;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
@@ -25,6 +26,7 @@
import javax.servlet.http.HttpServletResponse;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;
@@ -264,8 +266,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);