| | |
| | | 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; |
| | |
| | | /** |
| | | * 持久化销售订单 |
| | | */ |
| | | // @Scheduled(cron = "0/45 * * * * ? ") |
| | | @Scheduled(cron = "0/5 * * * * ? ") |
| | | @Transactional |
| | | // @PostConstruct |
| | | public void getOrdersExecute(){ |
| | |
| | | // .ne("bType_id", data.getBTypeID()) |
| | | ) > 0) { |
| | | // log.error("{}单号已存在", data.getNumber()); |
| | | complete = false; |
| | | // complete = false; |
| | | continue; |
| | | } |
| | | for (GetOrderResultDetl0 detl0 : data.getDetail()) { |
| | |
| | | detl0.getQty(), // 商品数量 |
| | | detl0.getQty(), // 总数量 |
| | | detl0.getPrice(), // 商品单价 |
| | | detl0.getRowNo(), // 商品明细行号 |
| | | detl0.getComment(), // 商品备注[非空] |
| | | 0, // 状态 |
| | | now, // 添加时间 |