瀏覽代碼

商城订单新增客户信息id

wjj 1 天之前
父節點
當前提交
9871c1563b

+ 3 - 0
fs-service/src/main/java/com/fs/hisStore/domain/FsStoreOrderScrm.java

@@ -372,4 +372,7 @@ public class FsStoreOrderScrm extends BaseEntity
      * 1:首次注册奖品订单、2:看课奖品订单;常规订单可不传
      * */
     private Integer appRewardFlag;
+
+    //患者信息id
+    private Long companyCustomerId;
 }

+ 5 - 1
fs-service/src/main/resources/mapper/hisStore/FsStoreOrderScrmMapper.xml

@@ -96,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="tagNames"    column="tag_names"    />
         <result property="erpType"    column="erp_type"    />
         <result property="appRewardFlag"    column="app_reward_flag"    />
+        <result property="companyCustomerId" column="company_customer_id" />
     </resultMap>
 
     <sql id="selectFsStoreOrderVo">
@@ -110,7 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                company_id,company_user_id,is_package,package_json,item_json,order_type,package_id,finish_time,delivery_status,
                delivery_pay_status,delivery_time,delivery_pay_time,delivery_pay_money,tui_money,tui_money_status,delivery_import_time,
                tui_user_id,tui_user_money_status,order_create_type,store_house_code,dept_id,is_edit_money,customer_id,is_pay_remain,
-               delivery_send_time,certificates,schedule_id,div_amount, div_huifu_id,zyy_div_amount,zyy_huifu_id,tag_names,erp_type,app_reward_flag from fs_store_order_scrm
+               delivery_send_time,certificates,schedule_id,div_amount, div_huifu_id,zyy_div_amount,zyy_huifu_id,tag_names,erp_type,app_reward_flag,company_customer_id from fs_store_order_scrm
     </sql>
 
     <select id="selectFsStoreOrderList" parameterType="FsStoreOrderScrm" resultMap="FsStoreOrderResult">
@@ -274,6 +275,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="tagNames != null">tag_names,</if>
             <if test="erpType != null">erp_type,</if>
             <if test="appRewardFlag != null">app_reward_flag,</if>
+            <if test="companyCustomerId != null"> company_customer_id,</if>
          </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="orderCode != null and orderCode != ''">#{orderCode},</if>
@@ -367,6 +369,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="tagNames != null">#{tagNames},</if>
             <if test="erpType != null">#{erpType},</if>
             <if test="appRewardFlag != null">#{appRewardFlag},</if>
+            <if test="companyCustomerId != null">#{companyCustomerId},</if>
          </trim>
     </insert>
 
@@ -467,6 +470,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="tagNames != null and tagNames != ''">tag_names = #{tagNames},</if>
             <if test="erpType != null and erpType != ''">erp_type = #{erpType},</if>
             <if test="appRewardFlag != null and appRewardFlag != ''">app_reward_flag = #{appRewardFlag},</if>
+            <if test="companyCustomerId != null "> company_customer_id = #{companyCustomerId},</if>
         </trim>
         where id = #{id}
     </update>