|
@@ -452,7 +452,7 @@
|
|
</update>
|
|
</update>
|
|
|
|
|
|
<select id="queryStudentNum" resultType="map">
|
|
<select id="queryStudentNum" resultType="map">
|
|
- SELECT count(sr.id_) total_num_,sum(case when sr.create_time_ >= timestamp(date_add(curdate(), interval - day(curdate()) + 1 day)) then 1 else 0 end) new_num_,sum(case when sr.music_group_status_ = 'QUIT' and sr.update_time_ >= timestamp(date_add(curdate(), interval - day(curdate()) + 1 day)) then 1 else 0 end) new_num_ FROM student_registration sr left join music_group mg on sr.music_group_id_ = mg.id_
|
|
|
|
|
|
+ SELECT count(sr.id_) total_num_,sum(case when sr.create_time_ >= timestamp(date_add(curdate(), interval - day(curdate()) + 1 day)) then 1 else 0 end) new_num_,sum(case when sr.music_group_status_ = 'QUIT' and sr.update_time_ >= timestamp(date_add(curdate(), interval - day(curdate()) + 1 day)) then 1 else 0 end) quit_num_ FROM student_registration sr left join music_group mg on sr.music_group_id_ = mg.id_
|
|
<where>
|
|
<where>
|
|
<if test="organId != null">
|
|
<if test="organId != null">
|
|
mg.organ_id_ = #{organId}
|
|
mg.organ_id_ = #{organId}
|