linzhijie
2021-04-06 8728733ad60e1698bb6cf0fa2e428c28a6bffbe7
src/main/resources/mybatis/exam/EntTestPackageMapper.xml
@@ -32,19 +32,20 @@
        <result property="professionalCategory"    column="professional_category"    />
        <result property="superiorPosition"    column="superior_position"    />
        <result property="phonenumber"    column="phonenumber"    />
        <result property="memberTemplate"    column="member_template"    />
    </resultMap>
    <sql id="selectEntTestPackageVo">
        select id,prod_id, p.user_id, test_name,prod_name, test_type, test_area, lang_type, test_email, frame_text_content_id, create_by, create_time, update_by, update_time, invalid_time,p.param_codes, status, template,remark, auto_send_report,report_template_id,p.hrTemplate, p.position,p.superior_position, p.professional_category from ent_test_package p
        select id,prod_id, p.user_id, test_name,prod_name, test_type, test_area, lang_type, test_email, frame_text_content_id, create_by, create_time, update_by, update_time, invalid_time,p.param_codes, status, template,remark, auto_send_report,report_template_id,p.hrTemplate, p.position,p.superior_position, p.professional_category,p.member_template from ent_test_package p
    </sql>
    <sql id="selectEntTestPackageSuVo">
        select p.id, p.prod_id, p.user_id, p.test_name, p.prod_name, p.test_type, p.test_area, p.lang_type, p.test_email, p.frame_text_content_id, p.create_by, p.create_time, p.update_by, p.update_time, p.invalid_time,p.param_codes, p.status, p.template, p.remark, p.auto_send_report, p.report_template_id,p.hrTemplate, p.position,p.superior_position, p.professional_category, u.user_name from ent_test_package p
        select p.id, p.prod_id, p.user_id, p.test_name, p.prod_name, p.test_type, p.test_area, p.lang_type, p.test_email, p.frame_text_content_id, p.create_by, p.create_time, p.update_by, p.update_time, p.invalid_time,p.param_codes, p.status, p.template, p.remark, p.auto_send_report, p.report_template_id,p.hrTemplate, p.position,p.superior_position, p.professional_category, u.user_name,p.member_template from ent_test_package p
        left join sys_user u on u.user_id = p.user_id
    </sql>
    <select id="selectEntTestPackageList" parameterType="EntTestPackage" resultMap="EntTestPackageResult">
        select id,prod_id, p.user_id, p.test_name,p.prod_name, p.test_type, p.test_area, p.lang_type, p.test_email, p.frame_text_content_id, p.create_by, p.create_time, p.update_by, p.update_time, p.invalid_time,p.param_codes, p.status, p.template,p.remark,u.user_name,p.auto_send_report,p.report_template_id,p.hrTemplate,u.phonenumber from ent_test_package p
        select id,prod_id, p.user_id, p.test_name,p.prod_name, p.test_type, p.test_area, p.lang_type, p.test_email, p.frame_text_content_id, p.create_by, p.create_time, p.update_by, p.update_time, p.invalid_time,p.param_codes, p.status, p.template,p.remark,u.user_name,p.auto_send_report,p.report_template_id,p.hrTemplate,u.phonenumber,p.member_template from ent_test_package p
        left join sys_user u on u.user_id = p.user_id
        <where>  
            <if test="userId != null "> and p.user_id = #{userId}</if>
@@ -69,7 +70,7 @@
    <select id="selectEntTestPackageMainList" parameterType="EntTestPackage" resultMap="EntTestPackageResult">
        select id,prod_id, p.user_id, p.test_name,p.prod_name, p.test_type, p.test_area, p.lang_type, p.test_email, p.frame_text_content_id, p.create_by, p.create_time, p.update_by, p.update_time, p.invalid_time,p.param_codes, p.status, p.template,p.remark,u.user_name,p.auto_send_report,p.report_template_id,p.hrTemplate,u.phonenumber from ent_test_package p
        select id,prod_id, p.user_id, p.test_name,p.prod_name, p.test_type, p.test_area, p.lang_type, p.test_email, p.frame_text_content_id, p.create_by, p.create_time, p.update_by, p.update_time, p.invalid_time,p.param_codes, p.status, p.template,p.remark,u.user_name,p.auto_send_report,p.report_template_id,p.hrTemplate,u.phonenumber,p.member_template from ent_test_package p
        left join sys_user u on u.user_id = p.user_id
        <where>
            <if test="userId != null "> and p.user_id = #{userId}</if>
@@ -136,6 +137,7 @@
            <if test="position != null  and position != ''">position,</if>
            <if test="professionalCategory != null  and professionalCategory != ''">professional_category,</if>
            <if test="superiorPosition != null  and superiorPosition != ''">superior_position,</if>
            <if test="memberTemplate != null  and memberTemplate != ''">member_template,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="userId != null ">#{userId},</if>
@@ -162,6 +164,7 @@
            <if test="position != null  and position != ''">#{position},</if>
            <if test="professionalCategory != null  and professionalCategory != ''">#{professionalCategory},</if>
            <if test="superiorPosition != null  and superiorPosition != ''">#{superiorPosition},</if>
            <if test="memberTemplate != null  and memberTemplate != ''">#{memberTemplate},</if>
         </trim>
    </insert>
@@ -190,6 +193,7 @@
            <if test="position != null  and position != ''">position = #{position},</if>
            <if test="professionalCategory != null  and professionalCategory != ''">professional_category = #{professionalCategory},</if>
            <if test="superiorPosition != null  and superiorPosition != ''">superior_position = #{superiorPosition},</if>
            <if test="memberTemplate != null  and memberTemplate != ''">member_template = #{memberTemplate},</if>
            <choose>
                <when test="autoSendReport==true">
                    auto_send_report = 1,