diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataPriceMapper.xml b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataPriceMapper.xml index 253649e52..0b75b8aec 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataPriceMapper.xml +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/mapper/BasicdataPriceMapper.xml @@ -188,6 +188,13 @@ where t.is_deleted = 0 and t.client_id = #{basicdataPrice.clientId} and t.brand_id = #{basicdataPrice.brandId} + ORDER BY + CASE + WHEN t.effective_status = 0 THEN 1 + WHEN t.effective_status = -1 THEN 2 + WHEN t.effective_status = 1 THEN 3 + ELSE 4 + END