| | |
| | | <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> |