#
luxiaotao1123
2021-04-09 06a8f3fdd2122ec8c8d2fabb0832bfa1d5557e0c
src/main/java/zy/cloud/wms/common/service/erp/ErpScheduler.java
@@ -9,10 +9,8 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import zy.cloud.wms.common.service.erp.entity.*;
import zy.cloud.wms.manager.entity.*;
import zy.cloud.wms.manager.mapper.CustOrderMapper;
@@ -30,8 +28,8 @@
 * Created by vincent on 2020/11/27
 */
@Slf4j
@Component
@RestController
//@Component
//@RestController
public class ErpScheduler {
    public static final String URI = "http://8.133.182.21:8080/api";
@@ -503,6 +501,12 @@
                    boolean complete = true;
                    Set<String> existNumbers = new HashSet<>();
                    String cancelNumber = "";
                    if (!custOrderService.updateStatus(cancelNumber, 5)) {
                        throw new CoolException("修改订单状态失败");
                    }
                }
            }
        } catch (IOException e) {