#
luxiaotao1123
2021-04-13 15670bf4839412f88a669e20e8a70553172a9332
src/main/java/zy/cloud/wms/common/service/erp/ErpScheduler.java
@@ -9,8 +9,10 @@
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;
@@ -28,8 +30,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";
@@ -401,7 +403,7 @@
                        log.warn(response);
                        Result result = JSON.parseObject(response, Result.class);
                        if (result.getCode() != 1) {
                            return;
                            continue;
                        }
                        // 转历史档
                        int save = custOrderMapper.saveLog(getOrderResult0.getNumber());