教育训练处考试制证系统后端
“djh”
2025-03-11 be90c5ad7af7528872dd0eaeae6c419a5ceedbc3
exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml
@@ -102,6 +102,7 @@
        update coal_pay_student
        <trim prefix="SET" suffixOverrides=",">
            <if test="payType != null">pay_type = #{payType},</if>
            <if test="govPayStatus!=null">gov_pay_status=#{govPayStatus},</if>
        </trim>
        where coal_pay_id = #{coalPayId} and pay_status = 0
    </update>
@@ -155,7 +156,27 @@
    </select>
    <select id="selectByIdcard" resultType="com.gkhy.exam.pay.entity.CoalPayStudent">
        <include refid="selectCoalPayStudentVo"></include>
        where id_card=#{idCard} and phone=#{phone} and del_flag = 0
        select cps.id,
               cps.coal_pay_id,
               cps.name,
               cps.id_card,
               cps.phone,
               cps.sex,
               cps.pay_code,
               cps.pay_status,
               cps.pay_type,
               cps.order_id,
               cps.file_data,
               cps.gov_pay_status,
               cps.update_by,
               cps.update_time,
               cps.create_by,
               cps.create_time,
               cps.del_flag,
               cps.order_no,
               cps.pay_time
        from coal_pay_student cps
        left join coal_pay cp on cps.coal_pay_id = cp.id
        where cps.id_card=#{idCard} and cps.phone=#{phone} and cps.del_flag = 0 and cp.del_flag = 0
    </select>
</mapper>