|
|
@@ -18,6 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="type" column="type" />
|
|
|
<result property="qwExternalContactId" column="qw_external_contact_id" />
|
|
|
<result property="handleType" column="handle_type" />
|
|
|
+ <result property="doctorMemberSalesId" column="doctor_member_sales_id" />
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.fs.his.vo.SopDoctorTaskVo" id="SopDoctorTaskVoResult">
|
|
|
@@ -35,18 +36,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="qwExternalContactId" column="qw_external_contact_id" />
|
|
|
<result property="handleType" column="handle_type" />
|
|
|
-
|
|
|
+ <result property="doctorMemberSalesId" column="doctor_member_sales_id" />
|
|
|
+ <result property="sendDays" column="send_days" />
|
|
|
<!-- 关联表字段 -->
|
|
|
<result property="name" column="name" /> <!-- qwec.name -->
|
|
|
<result property="companyUserName" column="company_user_name" /> <!-- cp.nick_name -->
|
|
|
<result property="packageName" column="package_name" />
|
|
|
<result property="avatar" column="avatar" />
|
|
|
<result property="phone" column="phone" />
|
|
|
- <result property="doctor_name" column="doctorName" />
|
|
|
+ <result property="doctorName" column="doctor_name" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsSopDoctorTaskVo">
|
|
|
- select id, company_user_id,doctor_id, user_id, status, create_time, update_time, remark, package_id, order_code, type,qw_external_contact_id,handle_type from fs_sop_doctor_task
|
|
|
+ select id, company_user_id,doctor_id, user_id, status, create_time, update_time, remark, package_id, order_code, type,qw_external_contact_id,handle_type,doctor_member_sales_id,send_days from fs_sop_doctor_task
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsSopDoctorTaskVoList" parameterType="com.fs.his.dto.SopDoctorTaskDto" resultMap="SopDoctorTaskVoResult">
|
|
|
@@ -66,7 +68,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
sdt.type,
|
|
|
fd.doctor_name,
|
|
|
sdt.qw_external_contact_id,
|
|
|
- sdt.handle_type
|
|
|
+ sdt.handle_type,
|
|
|
+ sdt.send_days
|
|
|
FROM
|
|
|
fs_sop_doctor_task sdt
|
|
|
LEFT JOIN company_user cp ON sdt.company_user_id = cp.user_id
|
|
|
@@ -82,6 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="companyUserId != null "> and sdt.company_user_id = #{companyUserId}</if>
|
|
|
<if test="status != null "> and sdt.status = #{status}</if>
|
|
|
<if test="handleType != null "> and sdt.handle_type = #{handleType}</if>
|
|
|
+ <if test="doctorMemberSalesId != null "> and sdt.doctor_member_sales_id = #{doctorMemberSalesId}</if>
|
|
|
<if test="type != null "> and sdt.type = #{type}</if>
|
|
|
<if test="qwUserId != null "> and qwec.qw_user_id = #{qwUserId}</if>
|
|
|
<if test="name != null "> and qwec.name like concat('%', #{name}, '%')</if>
|
|
|
@@ -113,7 +117,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
sdt.remark,
|
|
|
sdt.type,
|
|
|
sdt.qw_external_contact_id,
|
|
|
- sdt.handle_type
|
|
|
+ sdt.handle_type,
|
|
|
+ sdt.doctor_member_sales_id,
|
|
|
+ sdt.send_days
|
|
|
FROM
|
|
|
fs_sop_doctor_task sdt
|
|
|
LEFT JOIN company_user cp ON sdt.company_user_id = cp.user_id
|
|
|
@@ -138,6 +144,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="handleType != null">handle_type,</if>
|
|
|
<if test="qwExternalContactId != null">qw_external_contact_id,</if>
|
|
|
<if test="doctorMemberSalesId != null">doctor_member_sales_id,</if>
|
|
|
+ <if test="sendDays != null">send_days,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="companyUserId != null">#{companyUserId},</if>
|
|
|
@@ -153,6 +160,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="handleType != null">#{handleType},</if>
|
|
|
<if test="qwExternalContactId != null">#{qwExternalContactId},</if>
|
|
|
<if test="doctorMemberSalesId != null">#{doctorMemberSalesId},</if>
|
|
|
+ <if test="sendDays != null">#{sendDays},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -171,6 +179,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="type != null">type = #{type},</if>
|
|
|
<if test="handleType != null">handle_type = #{handleType},</if>
|
|
|
<if test="qwExternalContactId != null">qw_external_contact_id=#{qwExternalContactId},</if>
|
|
|
+ <if test="sendDays != null">send_days=#{sendDays},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|