Commit 7c9618f7 by yinyong

数据中心--头程费用修改

parent 5653d9e8
...@@ -375,7 +375,7 @@ ...@@ -375,7 +375,7 @@
<select id="getConfig" resultType="com.bailuntec.domain.entity.DcMidCostFirstConfig"> <select id="getConfig" resultType="com.bailuntec.domain.entity.DcMidCostFirstConfig">
SELECT tb2.* from (SELECT warehouse_code,area_id FROM dc_base_warehouse WHERE warehouse_code=#{warehouseCode} ) tb1 LEFT JOIN dc_mid_cost_first_config tb2 on tb2.bailun_sku=#{bailunSku} SELECT tb2.* from (SELECT warehouse_code,area_id FROM dc_base_warehouse WHERE warehouse_code=#{warehouseCode} ) tb1 LEFT JOIN dc_mid_cost_first_config tb2 on tb2.bailun_sku=#{bailunSku}
and (tb2.area_id = 0 or tb1.area_id=tb2.area_id or tb1.warehouse_code=tb2.warehouse_code) and (tb1.area_id=tb2.area_id or tb1.warehouse_code=tb2.warehouse_code)
order by tb2.warehouse_code desc ,tb2.area_id desc limit 1 order by tb2.warehouse_code desc ,tb2.area_id desc limit 1
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment