xuhy
2024-09-25 842947e6ecf0bdf8fd98049c0e47eb3893a8cbdb
ruoyi-system/src/main/resources/mapper/system/TOrderStockGoodsMapper.xml
@@ -23,7 +23,8 @@
    <select id="getListByTimeAndShopId" resultType="com.ruoyi.system.domain.TOrderStockGoods">
        select t.id, t.orderId, t.goodsNum, t.goodsName, t.costPrice, t.salePrice, t.goodsPicture, t.stockCount,t.thisCostPrice,t.goodsId
        from t_order_stock_goods t
        where t.orderId in (select id from t_order_stock where DATE_FORMAT(orderTime, '%Y-%m-%d')) = #{orderTime} and shopId = #{shopId})
        left join t_order_stock ts on t.orderId = ts.id
        where DATE_FORMAT(ts.stockTime, '%Y-%m-%d') = #{orderTime} and ts.shopId = #{shopId}
    </select>
</mapper>