| | |
| | | import com.zy.asrs.wms.asrs.entity.enums.LocStsType;
|
| | | import com.zy.asrs.wms.asrs.entity.enums.TaskStsType;
|
| | | import com.zy.asrs.wms.asrs.service.*;
|
| | | import lombok.extern.slf4j.Slf4j;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.scheduling.annotation.Scheduled;
|
| | | import org.springframework.stereotype.Component;
|
| | |
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | @Slf4j
|
| | | @Component
|
| | | public class TaskTimer {
|
| | |
|
| | |
| | | private OrderDetlService orderDetlService;
|
| | |
|
| | |
|
| | | // @Scheduled(cron = "0/3 * * * * ? ")
|
| | | @Scheduled(cron = "0/30 * * * * ? ")
|
| | | @Transactional
|
| | | public void inExecute() {
|
| | | InterceptorIgnoreHelper.handle(IgnoreStrategy.builder().tenantLine(true).build());
|
| | |
| | |
|
| | | Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>().eq(Loc::getLocNo, task.getTargetLoc()).eq(Loc::getHostId, hostId));
|
| | | if (loc == null) {
|
| | | log.info("库位不存在" + "=======>" + task.getTargetLoc());
|
| | | throw new CoolException("库位不存在");
|
| | | }
|
| | |
|