|
|
@@ -0,0 +1,33 @@
|
|
|
+package shop.alien.mapper.storePlantform;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Constants;
|
|
|
+import org.apache.ibatis.annotations.Mapper;
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
+import org.apache.ibatis.annotations.Select;
|
|
|
+import org.apache.ibatis.annotations.Update;
|
|
|
+import shop.alien.entity.store.LifeGroupBuyMain;
|
|
|
+import shop.alien.entity.store.vo.LifeGroupBuyThaliVo;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+
|
|
|
+/**
|
|
|
+* @author youch
|
|
|
+* @description 针对表【life_group_buy_main(团购主表)】的数据库操作Mapper
|
|
|
+* @createDate 2025-07-28 14:31:30
|
|
|
+* @Entity shop.alien.entity.store.LifeGroupBuyMain
|
|
|
+*/
|
|
|
+@Mapper
|
|
|
+public interface LifeGroupBuyMainPlantformMapper extends BaseMapper<LifeGroupBuyMain> {
|
|
|
+
|
|
|
+ @Select("select SUM(cost_price) from life_group_buy_thali lgbt inner join store_menu sm on lgbt.detail_id = sm.id where parent_id = #{id} and lgbt.delete_flag = 0 and sm.delete_flag = 0 ")
|
|
|
+ BigDecimal selectSumCostPrice(@Param("id") Integer id);
|
|
|
+
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|