update 批量更新订单审核

This commit is contained in:
Guoqs
2026-02-04 14:47:22 +08:00
parent 1a1b72a469
commit 5f4dccc23b
7 changed files with 75 additions and 4 deletions

View File

@@ -44,6 +44,7 @@
<result column="stop_reason_code" jdbcType="VARCHAR" property="stopReasonCode"/>
<result column="reason" jdbcType="VARCHAR" property="reason"/>
<result column="settlement_time" jdbcType="TIMESTAMP" property="settlementTime"/>
<result column="review_flag" jdbcType="VARCHAR" property="reviewFlag"/>
<result column="refund_amount" jdbcType="DECIMAL" property="refundAmount"/>
<result column="refund_status" jdbcType="VARCHAR" property="refundStatus"/>
<result column="create_by" jdbcType="VARCHAR" property="createBy"/>
@@ -59,7 +60,7 @@
pay_mode, pay_status, pay_amount, pay_time, insurance_amount, plate_number, order_amount, virtual_amount,
group_code, discount_amount, settle_amount, actual_received_amount, remedial_amount, charge_start_time, charge_end_time,
start_type, reserved_start_time, reserved_end_time, start_soc, end_soc, stop_reason_code, reason,
settlement_time, refund_amount,
settlement_time, review_flag, refund_amount,
refund_status, create_by, create_time, update_by, update_time, del_flag
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
@@ -3623,4 +3624,15 @@
</foreach>
and order_status = '1'
</select>
<update id="batchUpdateOrderReview">
update order_basic_info
set review_flag = #{dto.reviewFlag}
where del_flag = '0'
and station_id = #{dto.stationId}
and order_code in
<foreach item="orderCode" collection="dto.orderCodeList" separator="," open="(" close=")">
#{orderCode}
</foreach>
</update>
</mapper>