xuhy
2024-09-07 97cf3094ce37ee629ca6b948a9317a7ed1796c18
ruoyi-system/src/main/resources/mapper/system/TOrderSaleGoodsMapper.xml
@@ -11,15 +11,14 @@
        <result column="goodsCostPrice" property="goodsCostPrice" />
        <result column="goodsSalePrice" property="goodsSalePrice" />
        <result column="goodsCount" property="goodsCount" />
        <result column="salePrice" property="salePrice" />
        <result column="thisSalePrice" property="thisSalePrice" />
        <result column="goodsPicture" property="goodsPicture" />
        <result column="typeName" property="typeName" />
        <result column="typeId" property="typeId" />
    </resultMap>
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, orderId, goodsNum, goodsName, goodsCostPrice, goodsSalePrice, goodsCount, salePrice, goodsPicture,typeName,typeId
        id, orderId, goodsNum, goodsName, goodsCostPrice, goodsSalePrice, goodsCount, thisSalePrice, goodsPicture,typeId
    </sql>
    <select id="costTotal" resultType="java.math.BigDecimal">
        select sum(goodsCostPrice) from t_order_meal_goods