|  | @@ -43,6 +43,7 @@
 | 
	
		
			
				|  |  |  		g.shelves_time_ as shelvesTime,
 | 
	
		
			
				|  |  |  		g.shelves_reason_ as shelvesReason,
 | 
	
		
			
				|  |  |  		g.audit_status_ AS auditStatus,
 | 
	
		
			
				|  |  | +		g.audit_version_ as auditVersion,
 | 
	
		
			
				|  |  |  		g.shelves_id_ as shelvesId,
 | 
	
		
			
				|  |  |  		g.create_time_ AS createTime,
 | 
	
		
			
				|  |  |  		g.update_time_ AS updateTime,
 | 
	
	
		
			
				|  | @@ -108,6 +109,7 @@
 | 
	
		
			
				|  |  |  			<if test="shelvesTime !=null">shelves_time_ = #{shelvesTime},</if>
 | 
	
		
			
				|  |  |  			<if test="shelvesReason !=null and shelvesReason!=''">shelves_reason_ = #{shelvesReason},</if>
 | 
	
		
			
				|  |  |  			<if test="shelvesId !=null">shelves_id_ = #{shelvesId},</if>
 | 
	
		
			
				|  |  | +		    <if test="shelvesFlag != null and shelvesFlag == 0">audit_status_ = 'DOING',audit_name_ = null,audit_id_ = null,</if>
 | 
	
		
			
				|  |  |  			update_time_ = SYSDATE()
 | 
	
		
			
				|  |  |  		</set>
 | 
	
		
			
				|  |  |  		WHERE id_ = #{id}
 | 
	
	
		
			
				|  | @@ -160,7 +162,8 @@
 | 
	
		
			
				|  |  |  			g.lesson_count_ AS lessonCount,
 | 
	
		
			
				|  |  |  			p.pay_money_ AS payMoney,
 | 
	
		
			
				|  |  |  			p.order_no_ AS orderNo,
 | 
	
		
			
				|  |  | -			p.purchase_time_ AS purchaseTime
 | 
	
		
			
				|  |  | +			p.purchase_time_ AS purchaseTime,
 | 
	
		
			
				|  |  | +			g.audit_version_ as auditVersion
 | 
	
		
			
				|  |  |  		FROM video_lesson_group g
 | 
	
		
			
				|  |  |  		LEFT JOIN video_lesson_purchase_record p ON g.id_ = p.video_lesson_group_id_
 | 
	
		
			
				|  |  |  		LEFT JOIN sys_user s ON g.teacher_id_ = s.id_
 | 
	
	
		
			
				|  | @@ -279,6 +282,7 @@
 | 
	
		
			
				|  |  |  			u.username_ AS userName,
 | 
	
		
			
				|  |  |  			u.real_name_ AS realName,
 | 
	
		
			
				|  |  |  			u.avatar_ AS avatar,
 | 
	
		
			
				|  |  | +			g.audit_version_ as auditVersion,
 | 
	
		
			
				|  |  |  			(SELECT COUNT(1) FROM video_lesson_purchase_record r WHERE r.video_lesson_group_id_=g.id_ AND r.order_status_='PAID') AS countStudent
 | 
	
		
			
				|  |  |  		FROM video_lesson_group g
 | 
	
		
			
				|  |  |  		LEFT JOIN sys_user u ON g.teacher_id_=u.id_
 |