diff --git a/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdelivered/BusDeliveredMapper.xml b/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdelivered/BusDeliveredMapper.xml index fd7e109489..51477d513c 100644 --- a/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdelivered/BusDeliveredMapper.xml +++ b/anrui-buscenter/anrui-buscenter-biz/src/main/java/com/yxt/anrui/buscenter/biz/busdelivered/BusDeliveredMapper.xml @@ -308,7 +308,7 @@ WHERE busState = '401' - AND (( saleTypeKey = '1' and (finState = '1' OR carryVehicleState = '1' )) or (saleTypeKey = '2' and invoiceApplyState = '1'))) AND bbv.vehicleState != '0002' + AND (( saleTypeKey = '1' and (finState = '1' OR carryVehicleState = '1' )) or (saleTypeKey = '2' and finState = '1' and manageState = '1'))) AND bbv.vehicleState != '0002' order by bo.contractNo desc,bv.id desc) a @@ -344,7 +344,7 @@ WHERE busState = '401' - AND ((saleTypeKey = '1' and (finState = '1' OR carryVehicleState = '1' )) or (saleTypeKey = '2' and invoiceApplyState = '1'))) + AND ((saleTypeKey = '1' and (finState = '1' OR carryVehicleState = '1' )) or (saleTypeKey = '2' and finState = '1' and manageState = '1'))) AND bbv.vehicleState != '0002' GROUP BY @@ -447,7 +447,7 @@ anrui_base.base_vehicle_state WHERE busState = '401' - AND (saleTypeKey = '2' and invoiceApplyState = '1')) + AND (saleTypeKey = '2' and finState = '1' and manageState = '1')) AND bbv.vehicleState != '0002' GROUP BY @@ -543,7 +543,7 @@ WHERE busState = '401' - AND (( saleTypeKey = '1' and (finState = '1' OR carryVehicleState = 1 )) or (saleTypeKey = '2' and invoiceApplyState = '1'))) + AND (( saleTypeKey = '1' and (finState = '1' OR carryVehicleState = 1 )) or (saleTypeKey = '2' and finState = '1' and manageState = '1')))