<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jeeplus.human.enrollment.enrollmentRegistration.mapper.EnrollmentWageCardMapper">

    <sql id="Base_Column_List">
        a.id,
        a.create_by_id,
        a.create_time,
        a.update_by_id,
        a.update_time,
        a.del_flag,
        a.type,
        a.proc_ins_id,
        a.process_definition_id,
        a.enrollment_registration_id,
        a.remarks,
        a.zx_bank_card_number,
        a.gs_bank_card_number,
        a.zx_account_holder,
        a.account_holder_front,
        a.account_holder_opposite,
        a.gs_account_holder,
        a.gs_account_holder_front,
        a.gs_account_holder_opposite
    </sql>
    <update id="updateStatusById">
         UPDATE human_resources_enrollment_wage_card SET type = #{type}
		WHERE id = #{registrationId}
    </update>

    <select id="getById"
            resultType="com.jeeplus.human.enrollment.enrollmentRegistration.domain.EnrollmentWageCard">
        select
        <include refid="Base_Column_List"></include>
        from human_resources_enrollment_wage_card a
        where a.id = #{id} and a.del_flag = '0'
    </select>
</mapper>