update order_repair_operating_log set pgid = #{request.pgid} where order_base_id = #{request.orderNo} and (pgid is null or pgid = 0) update order_repair_operating_log set fkid = #{request.fkid} where order_base_id = #{request.orderNo} and id = #{request.id}