| 
					
				 | 
			
			
				@@ -25,6 +25,7 @@ import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import javax.annotation.Resource; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.math.BigDecimal; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.Optional; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -94,6 +95,9 @@ public class TeacherCourseGroupController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation("创建直播课程组-新增课程组") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/addLiveCourse") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public HttpResponseResult<Object> addLiveCourse(@RequestBody LiveCourseGroupDto dto) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (dto.getCoursePrice().compareTo(BigDecimal.ZERO) <= 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return failed("课程价格不能为0元"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         courseGroupService.addLiveCourse(dto); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return succeed(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 |