zhoushihao
2024-12-31 aa64540348a39c2247a79b48156e089d80f43030
hangzhoumesParent/common/servicebase/src/main/java/com/mes/damage/service/impl/DamageServiceImpl.java
@@ -20,7 +20,6 @@
import com.mes.work_assignment.mapper.WorkAssignmentMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@@ -54,8 +53,8 @@
    @Resource
    WorkAssignmentMapper workAssignmentMapper;
    @Value("${mes.glassGap}")
    private String erpUrl;
    private final static String ERP_URL = "http://192.168.2.100:8086";
    /**
@@ -308,7 +307,7 @@
        log.info("报工数据reportingWork:{},reportingWorkDetails:{}", reportingWork, reportingWorkDetails);
        try {
            // 目标系统的API URL
            String url = erpUrl + "/reportingWork/mesReportingWork";
            String url = ERP_URL + "/reportingWork/mesReportingWork";
            URL obj = new URL(url);
            HttpURLConnection con = (HttpURLConnection) obj.openConnection();