Commit 468857ec by jianshuqin

调整尚品家居成本费用和头程成本同步逻辑

parent a2533840
......@@ -856,6 +856,8 @@
FROM dc_base_cost_furnishing t1
INNER JOIN dc_base_sku t2 ON t2.bailun_sku LIKE CONCAT(t1.sku,'%')
WHERE t2.bailun_sku = #{skuCode} AND #{createTime} >= t1.cost_date
ORDER BY t1.cost_date DESC
LIMIT 1
</select>
<select id="selectSkuCostProduct" resultType="java.math.BigDecimal">
SELECT
......@@ -863,5 +865,7 @@
FROM dc_base_cost_furnishing t1
INNER JOIN dc_base_sku t2 ON t2.bailun_sku LIKE CONCAT(t1.sku,'%')
WHERE t2.bailun_sku = #{skuCode} AND #{createTime} >= t1.cost_date
ORDER BY t1.cost_date DESC
LIMIT 1
</select>
</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