Min hace 1 año
padre
commit
c988465e8a

+ 7 - 1
fhKeeper/formulahousekeeper/management-crm/src/main/java/com/management/platform/entity/OrderProductDetail.java

@@ -16,7 +16,7 @@ import lombok.experimental.Accessors;
  * </p>
  *
  * @author Seyason
- * @since 2024-04-03
+ * @since 2024-05-29
  */
 @Data
 @EqualsAndHashCode(callSuper = false)
@@ -49,6 +49,12 @@ public class OrderProductDetail extends Model<OrderProductDetail> {
     @TableField("discount")
     private Integer discount;
 
+    /**
+     * 合计
+     */
+    @TableField("total_price")
+    private BigDecimal totalPrice;
+
 
     @Override
     protected Serializable pkVal() {

+ 2 - 1
fhKeeper/formulahousekeeper/management-crm/src/main/resources/mapper/OrderProductDetailMapper.xml

@@ -10,11 +10,12 @@
         <result column="seal_price" property="sealPrice" />
         <result column="num" property="num" />
         <result column="discount" property="discount" />
+        <result column="total_price" property="totalPrice" />
     </resultMap>
 
     <!-- 通用查询结果列 -->
     <sql id="Base_Column_List">
-        id, order_id, product_id, seal_price, num, discount
+        id, order_id, product_id, seal_price, num, discount, total_price
     </sql>
 
 </mapper>