#
luxiaotao1123
2021-03-31 c8f89c1e9353d6e530b8b7fe93c15686251b7d65
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()) {
@@ -312,6 +313,7 @@
                                    detl0.getQty(),    // 商品数量
                                    detl0.getQty(),    // 总数量
                                    detl0.getPrice(),    // 商品单价
                                    detl0.getRowNo(),       // 商品明细行号
                                    detl0.getComment(),    // 商品备注[非空]
                                    0,    // 状态
                                    now,    // 添加时间