#
luxiaotao1123
2021-03-30 7e3e333b70b1b92445d6a7117ff8e20746e1558e
src/main/java/zy/cloud/wms/common/service/erp/ErpScheduler.java
@@ -8,6 +8,7 @@
import com.core.exception.CoolException;
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;
@@ -270,7 +271,7 @@
    /**
     * 持久化销售订单
     */
//    @Scheduled(cron = "0/45 * * * * ? ")
    @Scheduled(cron = "0/5 * * * * ? ")
    @Transactional
//    @PostConstruct
    public void getOrdersExecute(){
@@ -299,7 +300,7 @@
//                                .ne("bType_id", data.getBTypeID())
                                ) > 0) {
//                            log.error("{}单号已存在", data.getNumber());
                            complete = false;
//                            complete = false;
                            continue;
                        }
                        for (GetOrderResultDetl0 detl0 : data.getDetail()) {