订单新增优化
This commit is contained in:
		| @@ -40,6 +40,15 @@ | ||||
|         <result property="conditioningProjectId" column="conditioning_project_id"/> | ||||
|         <result property="serverEndTime" column="server_end_time"/> | ||||
|         <result property="becomeFanTime" column="become_fan_time"/> | ||||
|  | ||||
|         <result property="onSaleId"    column="on_sale_id"    /> | ||||
|         <result property="orderType"    column="order_type"    /> | ||||
|         <result property="orderCountType"    column="order_count_type"    /> | ||||
|         <result property="orderMoneyType"    column="order_money_type"    /> | ||||
|         <result property="mainOrderId"    column="main_order_id"    /> | ||||
|         <result property="afterSaleCommissOrder"    column="after_sale_commiss_order"    /> | ||||
|         <result property="delFlag"    column="del_flag"    /> | ||||
|  | ||||
|         <!-- 非持久化字段 --> | ||||
|         <result property="afterSale" column="afterSale_name"></result><!-- 售后名称  --> | ||||
|         <result property="nutritionist" column="nutritionist_name"></result><!-- 营养师名称 --> | ||||
| @@ -140,72 +149,84 @@ | ||||
|     <insert id="insertSysOrder" parameterType="SysOrder" useGeneratedKeys="true" keyProperty="orderId"> | ||||
|         insert into sys_order | ||||
|         <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
|             <if test="orderId != null and orderId != ''">order_id,</if> | ||||
|             <if test="customer != null and customer != ''">customer,</if> | ||||
|             <if test="cusId != null">cus_id,</if> | ||||
|             <if test="phone != null">phone,</if> | ||||
|             <if test="amount != null">amount,</if> | ||||
|             <if test="status != null">status,</if> | ||||
|             <if test="pauseTime != null">pause_time,</if> | ||||
|             <if test="startTime != null">start_time,</if> | ||||
|             <if test="weight != null">weight,</if> | ||||
|             <if test="payTypeId != null">pay_type_id,</if> | ||||
|             <if test="reviewStatus != null">review_status,</if> | ||||
|             <if test="preSaleId != null">pre_sale_id,</if> | ||||
|             <if test="createBy != null">create_by,</if> | ||||
|             <if test="createTime != null">create_time,</if> | ||||
|             <if test="status != null">status,</if> | ||||
|             <if test="weight != null">weight,</if> | ||||
|             <if test="afterSaleId != null">after_sale_id,</if> | ||||
|             <if test="updateBy != null">update_by,</if> | ||||
|             <if test="updateTime != null">update_time,</if> | ||||
|             <if test="startTime != null">start_time,</if> | ||||
|             <if test="pauseTime != null">pause_time,</if> | ||||
|             <if test="nutritionistId != null">nutritionist_id,</if> | ||||
|             <if test="remark != null">remark,</if> | ||||
|             <if test="nutriAssisId != null">nutri_assis_id,</if> | ||||
|             <if test="onSaleId != null">on_sale_id,</if> | ||||
|             <if test="accountId != null">account_id,</if> | ||||
|             <if test="plannerId != null">planner_id,</if> | ||||
|             <if test="plannerAssisId != null">planner_assis_id,</if> | ||||
|             <if test="operatorId != null">operator_id,</if> | ||||
|             <if test="operatorAssisId != null">operator_assis_id,</if> | ||||
|             <if test="recommender != null">recommender,</if> | ||||
|             <if test="orderTime != null">order_time,</if> | ||||
|             <if test="operatorId != null">operator_id,</if> | ||||
|             <if test="serveTimeId != null">serve_time_id,</if> | ||||
|             <if test="reviewStatus != null">review_status,</if> | ||||
|             <if test="recommender != null">recommender,</if> | ||||
|             <if test="amount != null">amount,</if> | ||||
|             <if test="orderTime != null">order_time,</if> | ||||
|             <if test="createBy != null">create_by,</if> | ||||
|             <if test="createTime != null">create_time,</if> | ||||
|             <if test="updateBy != null">update_by,</if> | ||||
|             <if test="updateTime != null">update_time,</if> | ||||
|             <if test="remark != null">remark,</if> | ||||
|             <if test="giveServeDay != null">give_serve_day,</if> | ||||
|             <if test="conditioningProjectId != null">conditioning_project_id,</if> | ||||
|             <if test="serverEndTime != null">server_end_time,</if> | ||||
|             <if test="becomeFanTime != null">become_fan_time,</if> | ||||
|             <if test="orderType != null">order_type,</if> | ||||
|             <if test="orderCountType != null">order_count_type,</if> | ||||
|             <if test="orderMoneyType != null">order_money_type,</if> | ||||
|             <if test="mainOrderId != null">main_order_id,</if> | ||||
|             <if test="afterSaleCommissOrder != null">after_sale_commiss_order,</if> | ||||
|             <if test="delFlag != null">del_flag,</if> | ||||
|         </trim> | ||||
|         <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||
|             <if test="orderId != null and orderId != ''">#{orderId},</if> | ||||
|             <if test="customer != null and customer != ''">#{customer},</if> | ||||
|             <if test="cusId != null">#{cusId},</if> | ||||
|             <if test="phone != null">#{phone},</if> | ||||
|             <if test="amount != null">#{amount},</if> | ||||
|             <if test="status != null">#{status},</if> | ||||
|             <if test="pauseTime != null">#{pauseTime},</if> | ||||
|             <if test="startTime != null">#{startTime},</if> | ||||
|             <if test="weight != null">#{weight},</if> | ||||
|             <if test="payTypeId != null">#{payTypeId},</if> | ||||
|             <if test="reviewStatus != null">#{reviewStatus},</if> | ||||
|             <if test="preSaleId != null">#{preSaleId},</if> | ||||
|             <if test="createBy != null">#{createBy},</if> | ||||
|             <if test="createTime != null">#{createTime},</if> | ||||
|             <if test="status != null">#{status},</if> | ||||
|             <if test="weight != null">#{weight},</if> | ||||
|             <if test="afterSaleId != null">#{afterSaleId},</if> | ||||
|             <if test="updateBy != null">#{updateBy},</if> | ||||
|             <if test="updateTime != null">#{updateTime},</if> | ||||
|             <if test="startTime != null">#{startTime},</if> | ||||
|             <if test="pauseTime != null">#{pauseTime},</if> | ||||
|             <if test="nutritionistId != null">#{nutritionistId},</if> | ||||
|             <if test="remark != null">#{remark},</if> | ||||
|             <if test="nutriAssisId != null">#{nutriAssisId},</if> | ||||
|             <if test="onSaleId != null">#{onSaleId},</if> | ||||
|             <if test="accountId != null">#{accountId},</if> | ||||
|             <if test="plannerId != null">#{plannerId},</if> | ||||
|             <if test="plannerAssisId != null">#{plannerAssisId},</if> | ||||
|             <if test="operatorId != null">#{operatorId},</if> | ||||
|             <if test="operatorAssisId != null">#{operatorAssisId},</if> | ||||
|             <if test="recommender != null">#{recommender},</if> | ||||
|             <if test="orderTime != null">#{orderTime},</if> | ||||
|             <if test="operatorId != null">#{operatorId},</if> | ||||
|             <if test="serveTimeId != null">#{serveTimeId},</if> | ||||
|             <if test="reviewStatus != null">#{reviewStatus},</if> | ||||
|             <if test="recommender != null">#{recommender},</if> | ||||
|             <if test="amount != null">#{amount},</if> | ||||
|             <if test="orderTime != null">#{orderTime},</if> | ||||
|             <if test="createBy != null">#{createBy},</if> | ||||
|             <if test="createTime != null">#{createTime},</if> | ||||
|             <if test="updateBy != null">#{updateBy},</if> | ||||
|             <if test="updateTime != null">#{updateTime},</if> | ||||
|             <if test="remark != null">#{remark},</if> | ||||
|             <if test="giveServeDay != null">#{giveServeDay},</if> | ||||
|             <if test="conditioningProjectId != null">#{conditioningProjectId},</if> | ||||
|             <if test="serverEndTime != null">#{serverEndTime},</if> | ||||
|             <if test="becomeFanTime != null">#{becomeFanTime},</if> | ||||
|             <if test="orderType != null">#{orderType},</if> | ||||
|             <if test="orderCountType != null">#{orderCountType},</if> | ||||
|             <if test="orderMoneyType != null">#{orderMoneyType},</if> | ||||
|             <if test="mainOrderId != null">#{mainOrderId},</if> | ||||
|             <if test="afterSaleCommissOrder != null">#{afterSaleCommissOrder},</if> | ||||
|             <if test="delFlag != null">#{delFlag},</if> | ||||
|         </trim> | ||||
|     </insert> | ||||
|  | ||||
| @@ -215,34 +236,41 @@ | ||||
|             <if test="customer != null and customer != ''">customer = #{customer},</if> | ||||
|             <if test="cusId != null">cus_id = #{cusId},</if> | ||||
|             <if test="phone != null">phone = #{phone},</if> | ||||
|             <if test="amount != null">amount = #{amount},</if> | ||||
|             <if test="weight != null">weight = #{weight},</if> | ||||
|             <if test="status != null">status = #{status},</if> | ||||
|             <if test="pauseTime != null">pause_time = #{pauseTime},</if> | ||||
|             <if test="startTime != null">start_time = #{startTime},</if> | ||||
|             <if test="payTypeId != null">pay_type_id = #{payTypeId},</if> | ||||
|             <if test="reviewStatus != null">review_status = #{reviewStatus},</if> | ||||
|             <if test="preSaleId != null">pre_sale_id = #{preSaleId},</if> | ||||
|             <if test="createBy != null">create_by = #{createBy},</if> | ||||
|             <if test="createTime != null">create_time = #{createTime},</if> | ||||
|             <if test="status != null">status = #{status},</if> | ||||
|             <if test="weight != null">weight = #{weight},</if> | ||||
|             <if test="afterSaleId != null">after_sale_id = #{afterSaleId},</if> | ||||
|             <if test="updateBy != null">update_by = #{updateBy},</if> | ||||
|             <if test="updateTime != null">update_time = #{updateTime},</if> | ||||
|             <if test="startTime != null">start_time = #{startTime},</if> | ||||
|             <if test="pauseTime != null">pause_time = #{pauseTime},</if> | ||||
|             <if test="nutritionistId != null">nutritionist_id = #{nutritionistId},</if> | ||||
|             <if test="remark != null">remark = #{remark},</if> | ||||
|             <if test="nutriAssisId != null">nutri_assis_id = #{nutriAssisId},</if> | ||||
|             <if test="onSaleId != null">on_sale_id = #{onSaleId},</if> | ||||
|             <if test="accountId != null">account_id = #{accountId},</if> | ||||
|             <if test="plannerId != null">planner_id = #{plannerId},</if> | ||||
|             <if test="plannerAssisId != null">planner_assis_id = #{plannerAssisId},</if> | ||||
|             <if test="operatorId != null">operator_id = #{operatorId},</if> | ||||
|             <if test="operatorAssisId != null">operator_assis_id = #{operatorAssisId},</if> | ||||
|             <if test="recommender != null">recommender = #{recommender},</if> | ||||
|             <if test="orderTime != null">order_time = #{orderTime},</if> | ||||
|             <if test="operatorId != null">operator_id = #{operatorId},</if> | ||||
|             <if test="serveTimeId != null">serve_time_id = #{serveTimeId},</if> | ||||
|             <if test="reviewStatus != null">review_status = #{reviewStatus},</if> | ||||
|             <if test="recommender != null">recommender = #{recommender},</if> | ||||
|             <if test="amount != null">amount = #{amount},</if> | ||||
|             <if test="orderTime != null">order_time = #{orderTime},</if> | ||||
|             <if test="createBy != null">create_by = #{createBy},</if> | ||||
|             <if test="createTime != null">create_time = #{createTime},</if> | ||||
|             <if test="updateBy != null">update_by = #{updateBy},</if> | ||||
|             <if test="updateTime != null">update_time = #{updateTime},</if> | ||||
|             <if test="remark != null">remark = #{remark},</if> | ||||
|             <if test="giveServeDay != null">give_serve_day = #{giveServeDay},</if> | ||||
|             <if test="conditioningProjectId != null">conditioning_project_id = #{conditioningProjectId},</if> | ||||
|             <if test="serverEndTime != null">server_end_time = #{serverEndTime},</if> | ||||
|             <if test="becomeFanTime != null">become_fan_time = #{becomeFanTime},</if> | ||||
|             <if test="orderType != null">order_type = #{orderType},</if> | ||||
|             <if test="orderCountType != null">order_count_type = #{orderCountType},</if> | ||||
|             <if test="orderMoneyType != null">order_money_type = #{orderMoneyType},</if> | ||||
|             <if test="mainOrderId != null">main_order_id = #{mainOrderId},</if> | ||||
|             <if test="afterSaleCommissOrder != null">after_sale_commiss_order = #{afterSaleCommissOrder},</if> | ||||
|             <if test="delFlag != null">del_flag = #{delFlag},</if> | ||||
|         </trim> | ||||
|         where order_id = #{orderId} | ||||
|     </update> | ||||
| @@ -294,6 +322,15 @@ | ||||
|         <result property="conditioningProjectId" column="conditioning_project_id"/> | ||||
|         <result property="serverEndTime" column="server_end_time"/> | ||||
|         <result property="becomeFanTime" column="become_fan_time"/> | ||||
|  | ||||
|         <result property="onSaleId"    column="on_sale_id"    /> | ||||
|         <result property="orderType"    column="order_type"    /> | ||||
|         <result property="orderCountType"    column="order_count_type"    /> | ||||
|         <result property="orderMoneyType"    column="order_money_type"    /> | ||||
|         <result property="mainOrderId"    column="main_order_id"    /> | ||||
|         <result property="afterSaleCommissOrder"    column="after_sale_commiss_order"    /> | ||||
|         <result property="delFlag"    column="del_flag"    /> | ||||
|  | ||||
|         <!-- 非持久化字段 --> | ||||
|         <result property="afterSale" column="afterSale_name"></result><!-- 售后名称  --> | ||||
|         <result property="nutritionist" column="nutritionist_name"></result><!-- 营养师名称 --> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user