| | |
| | | import com.aps.core.enums.PLAN_TASK_STATUS; |
| | | import com.aps.core.enums.PLAN_TASK_TYPE; |
| | | import com.aps.core.enums.REDIS_LOCK_KEY; |
| | | import com.aps.core.mapper.ApsPlateStandardRequireOrderEndDayMapper; |
| | | import com.aps.core.service.ApsPlate.IApsPlateStandardRequireBatchService; |
| | | import com.aps.core.service.ApsPlate.IApsPlateStandardRequireService; |
| | | import com.aps.core.service.ApsPlateStandardRequireOrderEndDayService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | @Resource |
| | | RedisLockUtils redisLockUtils; |
| | | |
| | | @Resource |
| | | ApsPlateStandardRequireOrderEndDayMapper orderEndDayMapper; |
| | | |
| | | @Override |
| | | public Page<ApsPlanTask> pagingList(Page<ApsPlanTask> page ,ApsPlanTask task){ |
| | | LambdaQueryWrapper<ApsPlanTask> queryWrapper=new LambdaQueryWrapper<>(); |
| | | queryWrapper.like( !task.getTaskType().isEmpty(), ApsPlanTask::getTaskType,task.getTaskType()); |
| | | queryWrapper.like( null!=task.getTaskType(), ApsPlanTask::getTaskType,task.getTaskType()); |
| | | return mapper.selectPage(page, queryWrapper); |
| | | } |
| | | |
| | |
| | | this.savePlanTask(batchNum); |
| | | apsPlateStandardRequireService.generatorPlan(batchNum); |
| | | this.updateTaskStatus(batchNum, PLAN_TASK_STATUS.FINISHED); |
| | | /*清除已经存在的 工单计划完工时间*/ |
| | | orderEndDayMapper.batchRemove(); |
| | | log.info("计划任务执行完成!"+batchNum); |
| | | return success(); |
| | | }catch (Exception e){ |