|
@@ -2122,6 +2122,24 @@
|
|
|
AND gu.grade_id = #{gradeId}
|
|
|
</if>
|
|
|
</select>
|
|
|
+ <select id="getNotPeriodPush" parameterType="com.zhongzheng.modules.user.bo.UserQueryBo" resultMap="ClassGradeUserGoodsVoResult">
|
|
|
+ SELECT
|
|
|
+ gu.*
|
|
|
+ FROM
|
|
|
+ class_grade g
|
|
|
+ LEFT JOIN class_grade_user gu ON g.grade_id = gu.grade_id
|
|
|
+ WHERE
|
|
|
+ g.interface_period_id > 0
|
|
|
+ AND g.`status` = 1
|
|
|
+ AND gu.`status` = 1
|
|
|
+ AND gu.change_grade = 0
|
|
|
+ AND gu.period_status = 1
|
|
|
+ AND gu.official_status = 1
|
|
|
+ AND (gu.period_plush is NULL or gu.period_plush=0)
|
|
|
+ <if test="gradeId != null and gradeId != ''">
|
|
|
+ AND gu.grade_id = #{gradeId}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
<select id="selectPeriodPush" parameterType="com.zhongzheng.modules.user.bo.UserQueryBo" resultMap="ClassGradeUserGoodsVoResult">
|
|
|
SELECT
|
|
|
gu.*
|