| | |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.gkhy.exam.pay.mapper.NonCoalPayStudentMapper"> |
| | | |
| | | <resultMap type="NonCoalPayStudent" id="NonCoalPayStudentResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="nonCoalPayId" column="non_coal_pay_id"/> |
| | |
| | | <include refid="selectNonCoalPayStudentVo"/> |
| | | <where> |
| | | and del_flag = 0 |
| | | <if test="nonCoalPayId != null ">and non_coal_pay_id = #{nonCoalPayId}</if> |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | | <if test="idCard != null and idCard != ''">and id_card = #{idCard}</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | | <if test="sex != null ">and sex = #{sex}</if> |
| | | <if test="payCode != null and payCode != ''">and pay_code = #{payCode}</if> |
| | | <if test="payStatus != null ">and pay_status = #{payStatus}</if> |
| | | <if test="payType != null ">and pay_type = #{payType}</if> |
| | | <if test="nonCoalPayId != null "> |
| | | and non_coal_pay_id = #{nonCoalPayId} |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | and name like concat('%', #{name}, '%') |
| | | </if> |
| | | <if test="idCard != null and idCard != ''"> |
| | | and id_card = #{idCard} |
| | | </if> |
| | | <if test="phone != null and phone != ''"> |
| | | and phone = #{phone} |
| | | </if> |
| | | <if test="sex != null "> |
| | | and sex = #{sex} |
| | | </if> |
| | | <if test="payCode != null and payCode != ''"> |
| | | and pay_code = #{payCode} |
| | | </if> |
| | | <if test="payStatus != null "> |
| | | and pay_status = #{payStatus} |
| | | </if> |
| | | <if test="payType != null "> |
| | | and pay_type = #{payType} |
| | | </if> |
| | | </where> |
| | | order by create_time desc |
| | | </select> |
| | |
| | | <insert id="insertNonCoalPayStudent" parameterType="NonCoalPayStudent"> |
| | | insert into non_coal_pay_student |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="nonCoalPayId != null">non_coal_pay_id,</if> |
| | | <if test="name != null and name != ''">name,</if> |
| | | <if test="idCard != null and idCard != ''">id_card,</if> |
| | | <if test="phone != null and phone != ''">phone,</if> |
| | | <if test="sex != null">sex,</if> |
| | | <if test="govPayStatus!=null">gov_pay_status,</if> |
| | | <if test="payCode != null">pay_code,</if> |
| | | <if test="payType != null">pay_type,</if> |
| | | <if test="orderNo != null and orderNo != '' ">order_no,</if> |
| | | <if test="train != null and train != '' ">train,</if> |
| | | <if test="payStatus != null">pay_status,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="id != null"> |
| | | id, |
| | | </if> |
| | | <if test="nonCoalPayId != null"> |
| | | non_coal_pay_id, |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | name, |
| | | </if> |
| | | <if test="idCard != null and idCard != ''"> |
| | | id_card, |
| | | </if> |
| | | <if test="phone != null and phone != ''"> |
| | | phone, |
| | | </if> |
| | | <if test="sex != null"> |
| | | sex, |
| | | </if> |
| | | <if test="govPayStatus!=null"> |
| | | gov_pay_status, |
| | | </if> |
| | | <if test="payCode != null"> |
| | | pay_code, |
| | | </if> |
| | | <if test="payType != null"> |
| | | pay_type, |
| | | </if> |
| | | <if test="orderNo != null and orderNo != '' "> |
| | | order_no, |
| | | </if> |
| | | <if test="train != null and train != '' "> |
| | | train, |
| | | </if> |
| | | <if test="payStatus != null"> |
| | | pay_status, |
| | | </if> |
| | | <if test="updateBy != null"> |
| | | update_by, |
| | | </if> |
| | | <if test="updateTime != null"> |
| | | update_time, |
| | | </if> |
| | | <if test="createBy != null"> |
| | | create_by, |
| | | </if> |
| | | <if test="createTime != null"> |
| | | create_time, |
| | | </if> |
| | | <if test="delFlag != null"> |
| | | del_flag, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="nonCoalPayId != null">#{nonCoalPayId},</if> |
| | | <if test="name != null and name != ''">#{name},</if> |
| | | <if test="idCard != null and idCard != ''">#{idCard},</if> |
| | | <if test="phone != null and phone != ''">#{phone},</if> |
| | | <if test="sex != null">#{sex},</if> |
| | | <if test="govPayStatus!=null">#{govPayStatus},</if> |
| | | <if test="payCode != null">#{payCode},</if> |
| | | <if test="payType != null">#{payType},</if> |
| | | <if test="orderNo != null and orderNo != '' ">#{orderNo},</if> |
| | | <if test="train != null and train != '' ">#{train},</if> |
| | | <if test="payStatus != null">#{payStatus},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="id != null"> |
| | | #{id}, |
| | | </if> |
| | | <if test="nonCoalPayId != null"> |
| | | #{nonCoalPayId}, |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | #{name}, |
| | | </if> |
| | | <if test="idCard != null and idCard != ''"> |
| | | #{idCard}, |
| | | </if> |
| | | <if test="phone != null and phone != ''"> |
| | | #{phone}, |
| | | </if> |
| | | <if test="sex != null"> |
| | | #{sex}, |
| | | </if> |
| | | <if test="govPayStatus!=null"> |
| | | #{govPayStatus}, |
| | | </if> |
| | | <if test="payCode != null"> |
| | | #{payCode}, |
| | | </if> |
| | | <if test="payType != null"> |
| | | #{payType}, |
| | | </if> |
| | | <if test="orderNo != null and orderNo != '' "> |
| | | #{orderNo}, |
| | | </if> |
| | | <if test="train != null and train != '' "> |
| | | #{train}, |
| | | </if> |
| | | <if test="payStatus != null"> |
| | | #{payStatus}, |
| | | </if> |
| | | <if test="updateBy != null"> |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null"> |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="createBy != null"> |
| | | #{createBy}, |
| | | </if> |
| | | <if test="createTime != null"> |
| | | #{createTime}, |
| | | </if> |
| | | <if test="delFlag != null"> |
| | | #{delFlag}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | and pay_status = 0 |
| | | and order_no is null |
| | | </update> |
| | | |
| | | |
| | | <select id="getsch" resultMap="NonCoalPayStudentResult"> |
| | | select * |
| | | from non_coal_pay_student |
| | | where order_no is not null |
| | | and pay_status = 0 |
| | | and pay_type = 1 |
| | | and update_time between '2025-02-28 00:00:00' and '2025-03-04 14:29:59' |
| | | </select> |
| | | <update id="updateNonCoalPayStudent" parameterType="NonCoalPayStudent"> |
| | | update non_coal_pay_student |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="nonCoalPayId != null">non_coal_pay_id = #{nonCoalPayId},</if> |
| | | <if test="name != null and name != ''">name = #{name},</if> |
| | | <if test="idCard != null and idCard != ''">id_card = #{idCard},</if> |
| | | <if test="phone != null and phone != ''">phone = #{phone},</if> |
| | | <if test="sex != null">sex = #{sex},</if> |
| | | <if test="orderNo != null and orderNo != ''">order_no = #{orderNo},</if> |
| | | <if test="orderNo != null and orderNo != ''">order_no = #{orderNo},</if> |
| | | <if test="train != null and train != ''">train = #{train},</if> |
| | | <if test="govPayStatus!=null">gov_pay_status=#{govPayStatus},</if> |
| | | <if test="fileData != null and fileData != ''">file_data = #{fileData},</if> |
| | | <if test="payTime != null">pay_time = #{payTime},</if> |
| | | <if test="payType != null">pay_type = #{payType},</if> |
| | | <if test="payCode != null">pay_code = #{payCode},</if> |
| | | <if test="payStatus != null">pay_status = #{payStatus},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="nonCoalPayId != null"> |
| | | non_coal_pay_id = #{nonCoalPayId}, |
| | | </if> |
| | | <if test="name != null and name != ''"> |
| | | name = #{name}, |
| | | </if> |
| | | <if test="idCard != null and idCard != ''"> |
| | | id_card = #{idCard}, |
| | | </if> |
| | | <if test="phone != null and phone != ''"> |
| | | phone = #{phone}, |
| | | </if> |
| | | <if test="sex != null"> |
| | | sex = #{sex}, |
| | | </if> |
| | | <if test="orderNo != null and orderNo != ''"> |
| | | order_no = #{orderNo}, |
| | | </if> |
| | | <if test="orderNo != null and orderNo != ''"> |
| | | order_no = #{orderNo}, |
| | | </if> |
| | | <if test="train != null and train != ''"> |
| | | train = #{train}, |
| | | </if> |
| | | <if test="govPayStatus!=null"> |
| | | gov_pay_status=#{govPayStatus}, |
| | | </if> |
| | | <if test="fileData != null and fileData != ''"> |
| | | file_data = #{fileData}, |
| | | </if> |
| | | <if test="payTime != null"> |
| | | pay_time = #{payTime}, |
| | | </if> |
| | | <if test="payType != null"> |
| | | pay_type = #{payType}, |
| | | </if> |
| | | <if test="payCode != null"> |
| | | pay_code = #{payCode}, |
| | | </if> |
| | | <if test="payStatus != null"> |
| | | pay_status = #{payStatus}, |
| | | </if> |
| | | <if test="updateBy != null"> |
| | | update_by = #{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null"> |
| | | update_time = #{updateTime}, |
| | | </if> |
| | | <if test="createBy != null"> |
| | | create_by = #{createBy}, |
| | | </if> |
| | | <if test="createTime != null"> |
| | | create_time = #{createTime}, |
| | | </if> |
| | | <if test="delFlag != null"> |
| | | del_flag = #{delFlag}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |