|
@@ -3,11 +3,8 @@ package shop.alien.mapper;
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import org.apache.ibatis.annotations.Insert;
|
|
|
|
|
-import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
|
+import org.apache.ibatis.annotations.*;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
-import org.apache.ibatis.annotations.Param;
|
|
|
|
|
-import org.apache.ibatis.annotations.Select;
|
|
|
|
|
import shop.alien.entity.store.LawyerConsultationOrder;
|
|
import shop.alien.entity.store.LawyerConsultationOrder;
|
|
|
import shop.alien.entity.store.vo.LawyerConsultationOrderVO;
|
|
import shop.alien.entity.store.vo.LawyerConsultationOrderVO;
|
|
|
|
|
|
|
@@ -124,5 +121,41 @@ public interface LawyerConsultationOrderMapper extends BaseMapper<LawyerConsulta
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @Update("<script>" +
|
|
|
|
|
+ "UPDATE `lawyer_consultation_order`" +
|
|
|
|
|
+ "<set>" +
|
|
|
|
|
+ "<if test='id != null'>`id` = #{id},</if>" +
|
|
|
|
|
+ "<if test='orderNumber != null'>`order_number` = #{orderNumber},</if>" +
|
|
|
|
|
+ "<if test='clientUserId != null'>`client_user_id` = #{clientUserId},</if>" +
|
|
|
|
|
+ "<if test='lawyerUserId != null'>`lawyer_user_id` = #{lawyerUserId},</if>" +
|
|
|
|
|
+ "<if test='problemScenarioId != null'>`problem_scenario_id` = #{problemScenarioId},</if>" +
|
|
|
|
|
+ "<if test='problemDescription != null'>`problem_description` = #{problemDescription},</if>" +
|
|
|
|
|
+ "<if test='orderAmount != null'>`order_amount` = #{orderAmount},</if>" +
|
|
|
|
|
+ "<if test='consultationFee != null'>`consultation_fee` = #{consultationFee},</if>" +
|
|
|
|
|
+ "<if test='startTime != null'>`start_time`= #{startTime},</if>" +
|
|
|
|
|
+ "<if test='endTime != null'>`end_time`= #{endTime},</if>" +
|
|
|
|
|
+ "<if test='orderStatus != null'>`order_status` = #{orderStatus},</if>" +
|
|
|
|
|
+ "<if test='paymentStatus != null'>`payment_status` = #{paymentStatus},</if>" +
|
|
|
|
|
+ "<if test='orderTime != null'>`order_time` = #{orderTime},</if>" +
|
|
|
|
|
+ "<if test='paymentTime != null'>`payment_time` = #{paymentTime},</if>" +
|
|
|
|
|
+ "<if test='validityPeriod != null'>`validity_period` = #{validityPeriod},</if>" +
|
|
|
|
|
+ "<if test='rating != null'>`rating`= #{rating},</if>" +
|
|
|
|
|
+ "<if test='comment != null'>`comment`= #{comment},</if>" +
|
|
|
|
|
+ "<if test='deleteFlag != null'>`delete_flag` = #{deleteFlag},</if>" +
|
|
|
|
|
+ "<if test='createdTime != null'>`created_time` = #{createdTime},</if>" +
|
|
|
|
|
+ "<if test='createdUserId != null'>`created_user_id` = #{createdUserId},</if>" +
|
|
|
|
|
+ "<if test='updatedTime != null'>`updated_time` = #{updatedTime},</if>" +
|
|
|
|
|
+ "<if test='updatedUserId != null'>`updated_user_id` = #{updatedUserId},</if>" +
|
|
|
|
|
+ "<if test='alipayNo != null'>`alipay_no` = #{alipayNo},</if>" +
|
|
|
|
|
+ "</set>" +
|
|
|
|
|
+ "WHERE `order_number` = #{orderNumber}" +
|
|
|
|
|
+ "</script>")
|
|
|
|
|
+ int updateOrder(LawyerConsultationOrderDto order);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|