| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import com.tcm.training.admin.common.enums.EnabledStatus; |
| | | import com.tcm.training.admin.common.enums.EnabledStatusEnum; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | |
| | | if (expert == null) { |
| | | throw new IllegalArgumentException("授课专家不存在"); |
| | | } |
| | | if (expert.getStatus() != null && expert.getStatus() != EnabledStatus.ENABLED.getValue()) { |
| | | if (expert.getStatus() != null && expert.getStatus() != EnabledStatusEnum.ENABLED.getValue()) { |
| | | throw new IllegalArgumentException("授课专家已禁用"); |
| | | } |
| | | } |