| | |
| | | import com.zy.acs.manager.manager.service.CodeService; |
| | | import com.zy.acs.manager.manager.service.LocService; |
| | | import com.zy.acs.manager.manager.service.StaService; |
| | | import com.zy.acs.manager.manager.service.TaskService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | @Autowired |
| | | private MapService mapService; |
| | | @Autowired |
| | | private TaskService taskService; |
| | | @Autowired |
| | | private SnowflakeIdWorker snowflakeIdWorker; |
| | | @Autowired |
| | | private UplinkProperties uplinkProperties; |
| | |
| | | if (Cools.isEmpty(taskDto.getTaskNo())) { |
| | | throw new BusinessException("Task seqNum can't be empty!"); |
| | | } |
| | | if (taskService.selectBySeqNum(null, taskDto.getTaskNo()) != null){ |
| | | throw new BusinessException("Task seqNum is exist!"); |
| | | } |
| | | taskDto.setPriority(Optional.ofNullable(taskDto.getPriority()).orElse(1)); |
| | | Task task = new Task(); |
| | | taskList.add(task); |