|
@@ -31,7 +31,8 @@
|
|
|
<result property="completeStatus" column="complete_status" />
|
|
<result property="completeStatus" column="complete_status" />
|
|
|
<result property="deptId" column="dept_id" />
|
|
<result property="deptId" column="dept_id" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
<result property="deptName" column="dept_name" />
|
|
|
- <result property="userSource" column="user_source" />
|
|
|
|
|
|
|
+ <result property="userSource" column="user_source" />
|
|
|
|
|
+ <result property="patientMainComplaint" column="patient_main_complaint" />
|
|
|
<!-- 口袋助理相关字段 -->
|
|
<!-- 口袋助理相关字段 -->
|
|
|
<result property="kdzlAddWechatStatus" column="kdzl_add_wechat_status" />
|
|
<result property="kdzlAddWechatStatus" column="kdzl_add_wechat_status" />
|
|
|
<result property="kdzlMakeStatus" column="kdzl_make_status" />
|
|
<result property="kdzlMakeStatus" column="kdzl_make_status" />
|
|
@@ -40,6 +41,8 @@
|
|
|
<result property="prescribeId" column="prescribe_id" />
|
|
<result property="prescribeId" column="prescribe_id" />
|
|
|
<result property="templateId" column="template_id" />
|
|
<result property="templateId" column="template_id" />
|
|
|
<result property="jsonInfo" column="json_info" />
|
|
<result property="jsonInfo" column="json_info" />
|
|
|
|
|
+ <result property="jhmOrderCode" column="jhm_order_code" />
|
|
|
|
|
+ <result property="jhmCourierNumber" column="jhm_courier_number" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectFsCompanyCustomerVo">
|
|
<sql id="selectFsCompanyCustomerVo">
|
|
@@ -50,7 +53,8 @@
|
|
|
buy_count, claim_status,
|
|
buy_count, claim_status,
|
|
|
complete_status, dept_id, dept_name,
|
|
complete_status, dept_id, dept_name,
|
|
|
kdzl_add_wechat_status, kdzl_make_status, kdzl_call_status,
|
|
kdzl_add_wechat_status, kdzl_make_status, kdzl_call_status,
|
|
|
- process_status, prescribe_id, template_id, json_info,user_source
|
|
|
|
|
|
|
+ process_status, prescribe_id, template_id, json_info,user_source,jhm_order_code,
|
|
|
|
|
+ jhm_courier_number
|
|
|
from fs_company_customer
|
|
from fs_company_customer
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
@@ -272,6 +276,8 @@
|
|
|
<if test="templateId != null">template_id,</if>
|
|
<if test="templateId != null">template_id,</if>
|
|
|
<if test="jsonInfo != null">json_info,</if>
|
|
<if test="jsonInfo != null">json_info,</if>
|
|
|
<if test="userSource != null">user_source,</if>
|
|
<if test="userSource != null">user_source,</if>
|
|
|
|
|
+ <if test="jhmOrderCode != null">jhm_order_code,</if>
|
|
|
|
|
+ <if test="jhmCourierNumber != null">jhm_courier_number,</if>
|
|
|
create_time
|
|
create_time
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -307,6 +313,8 @@
|
|
|
<if test="templateId != null">#{templateId},</if>
|
|
<if test="templateId != null">#{templateId},</if>
|
|
|
<if test="jsonInfo != null">#{jsonInfo},</if>
|
|
<if test="jsonInfo != null">#{jsonInfo},</if>
|
|
|
<if test="userSource != null">#{userSource},</if>
|
|
<if test="userSource != null">#{userSource},</if>
|
|
|
|
|
+ <if test="jhmOrderCode != null">#{jhmOrderCode},</if>
|
|
|
|
|
+ <if test="jhmCourierNumber != null">#{jhmCourierNumber},</if>
|
|
|
sysdate()
|
|
sysdate()
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
@@ -340,7 +348,9 @@
|
|
|
kdzl_make_status,
|
|
kdzl_make_status,
|
|
|
kdzl_call_status,
|
|
kdzl_call_status,
|
|
|
process_status,
|
|
process_status,
|
|
|
- user_source
|
|
|
|
|
|
|
+ user_source,
|
|
|
|
|
+ jhm_order_code,
|
|
|
|
|
+ jhm_courier_number
|
|
|
) VALUES
|
|
) VALUES
|
|
|
<foreach collection="toInsertList" item="item" separator=",">
|
|
<foreach collection="toInsertList" item="item" separator=",">
|
|
|
(
|
|
(
|
|
@@ -354,7 +364,9 @@
|
|
|
#{item.kdzlMakeStatus},
|
|
#{item.kdzlMakeStatus},
|
|
|
#{item.kdzlCallStatus},
|
|
#{item.kdzlCallStatus},
|
|
|
#{item.processStatus},
|
|
#{item.processStatus},
|
|
|
- #{item.userSource}
|
|
|
|
|
|
|
+ #{item.userSource},
|
|
|
|
|
+ #{item.jhmOrderCode},
|
|
|
|
|
+ #{item.jhmCourierNumber}
|
|
|
)
|
|
)
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</insert>
|
|
</insert>
|
|
@@ -394,6 +406,8 @@
|
|
|
<if test="jsonInfo != null">json_info = #{jsonInfo},</if>
|
|
<if test="jsonInfo != null">json_info = #{jsonInfo},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="userSource != null">user_source = #{userSource},</if>
|
|
<if test="userSource != null">user_source = #{userSource},</if>
|
|
|
|
|
+ <if test="jhmOrderCode != null">jhm_order_code = #{jhmOrderCode},</if>
|
|
|
|
|
+ <if test="jhmCourierNumber != null">jhm_courier_number = #{jhmCourierNumber},</if>
|
|
|
update_time = sysdate()
|
|
update_time = sysdate()
|
|
|
</set>
|
|
</set>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
@@ -546,6 +560,24 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
ELSE kdzl_make_status
|
|
ELSE kdzl_make_status
|
|
|
</trim>
|
|
</trim>
|
|
|
|
|
+ <!-- 聚好麦订单号 -->
|
|
|
|
|
+ <trim prefix="jhm_order_code = CASE" suffix="END,">
|
|
|
|
|
+ <foreach collection="list" item="item">
|
|
|
|
|
+ WHEN id = #{item.id}
|
|
|
|
|
+ AND #{item.jhmOrderCode} IS NOT NULL
|
|
|
|
|
+ THEN #{item.jhmOrderCode}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ELSE jhm_order_code
|
|
|
|
|
+ </trim>
|
|
|
|
|
+ <!-- 聚好麦快递单号 -->
|
|
|
|
|
+ <trim prefix="jhm_courier_number = CASE" suffix="END,">
|
|
|
|
|
+ <foreach collection="list" item="item">
|
|
|
|
|
+ WHEN id = #{item.id}
|
|
|
|
|
+ AND #{item.jhmCourierNumber} IS NOT NULL
|
|
|
|
|
+ THEN #{item.jhmCourierNumber}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ ELSE jhm_courier_number
|
|
|
|
|
+ </trim>
|
|
|
<!-- 创建时间/订单时间 -->
|
|
<!-- 创建时间/订单时间 -->
|
|
|
<trim prefix="create_time = CASE" suffix="END,">
|
|
<trim prefix="create_time = CASE" suffix="END,">
|
|
|
<foreach collection="list" item="item">
|
|
<foreach collection="list" item="item">
|