#
luxiaotao1123
2021-03-25 af73582c1bd3c20e2e805d4df56c111073d3fd6f
src/main/java/zy/cloud/wms/common/service/erp/ErpScheduler.java
@@ -8,7 +8,6 @@
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;
@@ -271,7 +270,7 @@
    /**
     * 持久化销售订单
     */
    @Scheduled(cron = "0/45 * * * * ? ")
//    @Scheduled(cron = "0/45 * * * * ? ")
    @Transactional
//    @PostConstruct
    public void getOrdersExecute(){
@@ -311,6 +310,7 @@
                                    data.getETypeID(),    // 经手人编号[非空]
                                    detl0.getUserCode(),    // 商品编号
                                    detl0.getQty(),    // 商品数量
                                    detl0.getQty(),    // 总数量
                                    detl0.getPrice(),    // 商品单价
                                    detl0.getComment(),    // 商品备注[非空]
                                    0,    // 状态
@@ -372,7 +372,7 @@
                            // 表体
                            GetOrderResultDetl0 detl0 = new GetOrderResultDetl0();
                            detl0.setUserCode(custOrder.getUserCode());
                            detl0.setQty(custOrder.getQty());
                            detl0.setQty(custOrder.getTotal());
                            detl0.setPrice(custOrder.getPrice());
                            detl0.setComment(custOrder.getComment());
                            list.add(detl0);
@@ -419,7 +419,7 @@
    /**
     * 库存上传
     */
    @Scheduled(cron = "0/15 * * * * ? ")
//    @Scheduled(cron = "0/15 * * * * ? ")
    @GetMapping("test2")
    public void uploadStockExecute(){
        try {