|
@@ -15,10 +15,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="callStatus" column="call_status" />
|
|
<result property="callStatus" column="call_status" />
|
|
|
<result property="companyUserId" column="company_user_id" />
|
|
<result property="companyUserId" column="company_user_id" />
|
|
|
<result property="companyId" column="company_id" />
|
|
<result property="companyId" column="company_id" />
|
|
|
|
|
+ <result property="kdzlMemberId" column="kdzl_member_id" />
|
|
|
|
|
+ <result property="kdzlMemberJson" column="kdzl_member_json" />
|
|
|
|
|
+ <result property="presentIllness" column="present_illness" />
|
|
|
|
|
+ <result property="currentMedication" column="current_medication" />
|
|
|
|
|
+ <result property="allergyHistory" column="allergy_history" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsImportMemberVo">
|
|
<sql id="selectFsImportMemberVo">
|
|
|
- select id, member_name, address, member_phone, status, create_time, update_time, call_status, company_user_id, company_id from fs_import_member
|
|
|
|
|
|
|
+ select id, member_name, address, member_phone, status, create_time, update_time, call_status, company_user_id, company_id, kdzl_member_id, kdzl_member_json, present_illness, current_medication, allergy_history from fs_import_member
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectFsImportMemberList" parameterType="FsImportMember" resultMap="FsImportMemberResult">
|
|
<select id="selectFsImportMemberList" parameterType="FsImportMember" resultMap="FsImportMemberResult">
|
|
@@ -29,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="memberPhone != null and memberPhone != ''"> and member_phone = #{memberPhone}</if>
|
|
<if test="memberPhone != null and memberPhone != ''"> and member_phone = #{memberPhone}</if>
|
|
|
<if test="status != null "> and status = #{status}</if>
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
</where>
|
|
</where>
|
|
|
|
|
+ order by create_time desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectFsImportMemberById" parameterType="Long" resultMap="FsImportMemberResult">
|
|
<select id="selectFsImportMemberById" parameterType="Long" resultMap="FsImportMemberResult">
|
|
@@ -48,6 +54,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="callStatus != null">call_status,</if>
|
|
<if test="callStatus != null">call_status,</if>
|
|
|
<if test="companyUserId != null">company_user_id,</if>
|
|
<if test="companyUserId != null">company_user_id,</if>
|
|
|
<if test="companyId != null">company_id,</if>
|
|
<if test="companyId != null">company_id,</if>
|
|
|
|
|
+ <if test="kdzlMemberId != null">kdzl_member_id,</if>
|
|
|
|
|
+ <if test="kdzlMemberJson != null">kdzl_member_json,</if>
|
|
|
|
|
+ <if test="presentIllness != null">present_illness,</if>
|
|
|
|
|
+ <if test="currentMedication != null">current_medication,</if>
|
|
|
|
|
+ <if test="allergyHistory != null">allergy_history,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="memberName != null">#{memberName},</if>
|
|
<if test="memberName != null">#{memberName},</if>
|
|
@@ -59,6 +70,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="callStatus != null">#{callStatus},</if>
|
|
<if test="callStatus != null">#{callStatus},</if>
|
|
|
<if test="companyUserId != null">#{companyUserId},</if>
|
|
<if test="companyUserId != null">#{companyUserId},</if>
|
|
|
<if test="companyId != null">#{companyId},</if>
|
|
<if test="companyId != null">#{companyId},</if>
|
|
|
|
|
+ <if test="kdzlMemberId != null">#{kdzlMemberId},</if>
|
|
|
|
|
+ <if test="kdzlMemberJson != null">#{kdzlMemberJson},</if>
|
|
|
|
|
+ <if test="presentIllness != null">#{presentIllness},</if>
|
|
|
|
|
+ <if test="currentMedication != null">#{currentMedication},</if>
|
|
|
|
|
+ <if test="allergyHistory != null">#{allergyHistory},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -74,6 +90,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="callStatus != null">call_status = #{callStatus},</if>
|
|
<if test="callStatus != null">call_status = #{callStatus},</if>
|
|
|
<if test="companyUserId != null">company_user_id = #{companyUserId},</if>
|
|
<if test="companyUserId != null">company_user_id = #{companyUserId},</if>
|
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
|
|
|
+ <if test="kdzlMemberId != null">kdzl_member_id = #{kdzlMemberId},</if>
|
|
|
|
|
+ <if test="kdzlMemberJson != null">kdzl_member_json = #{kdzlMemberJson},</if>
|
|
|
|
|
+ <if test="presentIllness != null">present_illness = #{presentIllness},</if>
|
|
|
|
|
+ <if test="currentMedication != null">current_medication = #{currentMedication},</if>
|
|
|
|
|
+ <if test="allergyHistory != null">allergy_history = #{allergyHistory},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
|
</update>
|
|
</update>
|