| | |
| | | </trim> |
| | | where coal_pay_id = #{coalPayId} and pay_status = 0 |
| | | </update> |
| | | <update id="updateByCoalPayIdAndStatus"> |
| | | update coal_pay_student |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="payType != null">pay_type = #{payType},</if> |
| | | </trim> |
| | | where coal_pay_id = #{coalPayId} and pay_status = 0 |
| | | </update> |
| | | |
| | | <select id="selectByCoalPayId" resultType="com.gkhy.exam.pay.entity.CoalPayStudent"> |
| | | <include refid="selectCoalPayStudentVo"></include> |
| | |
| | | |
| | | <select id="selectByCoalPayIdAndPayStatus" resultType="com.gkhy.exam.pay.entity.CoalPayStudent"> |
| | | <include refid="selectCoalPayStudentVo"></include> |
| | | where coal_pay_id = #{id} and pay_status = #{status} |
| | | and del_flag =0 |
| | | <where> |
| | | <if test="status == 0"> |
| | | and pay_type = 2 |
| | | </if> |
| | | and coal_pay_id = #{id} |
| | | and pay_status = #{status} |
| | | and del_flag =0 |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectByIds" resultType="com.gkhy.exam.pay.entity.CoalPayStudent"> |