From 8728733ad60e1698bb6cf0fa2e428c28a6bffbe7 Mon Sep 17 00:00:00 2001
From: linzhijie <19970921lzj>
Date: 星期二, 06 四月 2021 10:34:12 +0800
Subject: [PATCH] 需求提交。

---
 src/main/resources/mybatis/exam/EntTestPackageMapper.xml |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/mybatis/exam/EntTestPackageMapper.xml b/src/main/resources/mybatis/exam/EntTestPackageMapper.xml
index dcbdebd..e5c8d10 100644
--- a/src/main/resources/mybatis/exam/EntTestPackageMapper.xml
+++ b/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,

--
Gitblit v1.9.1