手动结束订单更新车辆状态brsStatus
This commit is contained in:
@ -3,8 +3,7 @@ package com.ruoyi.operation.util;
|
||||
public enum CarStatusEnum {
|
||||
|
||||
CAR_STATUS_0("0", "正常"),
|
||||
CAR_STATUS_1("1", "下架"),
|
||||
CAR_STATUS_9("9", "租赁中");
|
||||
CAR_STATUS_1("1", "下架");
|
||||
|
||||
private final String code;
|
||||
private final String info;
|
||||
|
||||
@ -179,7 +179,7 @@ public class ZcOrderMainServiceImpl implements IZcOrderMainService
|
||||
// 5. 释放车辆状态
|
||||
ZcCar zcCar = new ZcCar();
|
||||
zcCar.setId(queryOrder.getVehicleId());
|
||||
zcCar.setStatus(CarStatusEnum.CAR_STATUS_0.getCode());
|
||||
zcCar.setBrsStatus("0");
|
||||
zcCarService.updateZcCar(zcCar);
|
||||
|
||||
logger.info("手动结束订单处理完成,订单ID: {}", orderId);
|
||||
|
||||
@ -199,7 +199,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="purchasePrice != null">purchase_price = #{purchasePrice},</if>
|
||||
<if test="belongType != null">belong_type = #{belongType},</if>
|
||||
<if test="images != null">images = #{images},</if>
|
||||
<if test="brsStatus != null">brs_status = #{brsStatus},</if>
|
||||
<if test="brsStatus != null and brsStatus != ''">brs_status = #{brsStatus},</if>
|
||||
<if test="iotStatus != null">iot_status = #{iotStatus},</if>
|
||||
<if test="iotCode != null">iot_code = #{iotCode},</if>
|
||||
<if test="operatorId != null">operator_id = #{operatorId},</if>
|
||||
|
||||
Reference in New Issue
Block a user