|
@@ -16,6 +16,7 @@
|
|
|
<result column="memo_" jdbcType="VARCHAR" property="memo"/>
|
|
|
<result column="settlement_status_" property="settlementStatus" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="settlement_date_" property="settlementDate"/>
|
|
|
+ <result column="confirm_status_" property="confirmStatus" typeHandler="com.ym.mec.common.dal.CustomEnumTypeHandler"/>
|
|
|
<result column="create_time_" jdbcType="TIMESTAMP" property="createTime"/>
|
|
|
<result column="update_time_" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
</resultMap>
|
|
@@ -87,7 +88,10 @@
|
|
|
settlement_date_ = #{settlementDate},
|
|
|
</if>
|
|
|
<if test="settlementStatus != null">
|
|
|
- settlement_status_ = #{settlementStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
+ settlement_status_ = #{settlementStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
+ </if>
|
|
|
+ <if test="confirmStatus != null">
|
|
|
+ confirm_status_ = #{confirmStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
</if>
|
|
|
</set>
|
|
|
where id_ = #{id,jdbcType=BIGINT}
|
|
@@ -118,6 +122,16 @@
|
|
|
where id_ = #{item.id,jdbcType=BIGINT}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
+ <update id="updateTeacherRewardConfirmStatusWithMonth">
|
|
|
+ UPDATE teacher_course_reward SET confirm_status_ = #{confirmStatus,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
|
+ WHERE DATE_FORMAT( settlement_date_, '%Y-%m-%d' ) = #{month}
|
|
|
+ <if test="teacherId!=null">
|
|
|
+ AND teacher_id_=#{teacherId}
|
|
|
+ </if>
|
|
|
+ <if test="confirmStatus==@com.ym.mec.biz.dal.enums.TeacherSalaryConfirmStatus@COMPLETED">
|
|
|
+ AND confirm_status_=1
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
|
|
|
<sql id="queryCondition">
|
|
|
<where>
|