|  | @@ -578,7 +578,7 @@
 | 
											
												
													
														|  |      </select>
 |  |      </select>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      <select id="getMusicGroupCalenderBatchNoTimes" resultMap="MusicGroupPaymentCalender">
 |  |      <select id="getMusicGroupCalenderBatchNoTimes" resultMap="MusicGroupPaymentCalender">
 | 
											
												
													
														|  | -        SELECT music_group_id_, COUNT(*) expect_num_ FROM music_group_payment_calender
 |  | 
 | 
											
												
													
														|  | 
 |  | +        SELECT batch_no_, COUNT(*) expect_num_ FROM music_group_payment_calender
 | 
											
												
													
														|  |          WHERE music_group_id_ = #{musicGroupId}
 |  |          WHERE music_group_id_ = #{musicGroupId}
 | 
											
												
													
														|  |          AND status_ IN ('AUDITING','NO', 'OPEN', 'OVER', 'PAID')
 |  |          AND status_ IN ('AUDITING','NO', 'OPEN', 'OVER', 'PAID')
 | 
											
												
													
														|  |          GROUP BY batch_no_
 |  |          GROUP BY batch_no_
 | 
											
										
											
												
													
														|  | @@ -593,13 +593,13 @@
 | 
											
												
													
														|  |      </select>
 |  |      </select>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      <select id="getMusicGroupCalenderBatchNoByIds" resultMap="MusicGroupPaymentCalender">
 |  |      <select id="getMusicGroupCalenderBatchNoByIds" resultMap="MusicGroupPaymentCalender">
 | 
											
												
													
														|  | -        SELECT music_group_id_, COUNT(*) expect_num_ FROM music_group_payment_calender
 |  | 
 | 
											
												
													
														|  | 
 |  | +        SELECT music_group_id_,batch_no_, COUNT(*) expect_num_ FROM music_group_payment_calender
 | 
											
												
													
														|  |          WHERE music_group_id_ IN
 |  |          WHERE music_group_id_ IN
 | 
											
												
													
														|  |          <foreach collection="ids" item="id" open="(" close=")" separator=",">
 |  |          <foreach collection="ids" item="id" open="(" close=")" separator=",">
 | 
											
												
													
														|  |              #{id}
 |  |              #{id}
 | 
											
												
													
														|  |          </foreach>
 |  |          </foreach>
 | 
											
												
													
														|  |          AND status_ IN ('AUDITING','NO', 'OPEN', 'OVER', 'PAID')
 |  |          AND status_ IN ('AUDITING','NO', 'OPEN', 'OVER', 'PAID')
 | 
											
												
													
														|  |          AND batch_no_ IS NOT NULL
 |  |          AND batch_no_ IS NOT NULL
 | 
											
												
													
														|  | -        GROUP BY batch_no_
 |  | 
 | 
											
												
													
														|  | 
 |  | +        GROUP BY music_group_id_,batch_no_
 | 
											
												
													
														|  |      </select>
 |  |      </select>
 | 
											
												
													
														|  |  </mapper>
 |  |  </mapper>
 |