|  |  | 
 |  |  |             <classifier>jdk15</classifier> | 
 |  |  |         </dependency> | 
 |  |  |  | 
 |  |  |         <!--代码生成器依赖--> | 
 |  |  |         <dependency> | 
 |  |  |             <groupId>org.freemarker</groupId> | 
 |  |  |             <artifactId>freemarker</artifactId> | 
 |  |  |             <version>${freemarker.version}</version> | 
 |  |  |             <scope>test</scope> | 
 |  |  |         </dependency> | 
 |  |  |  | 
 |  |  |         <dependency> | 
 |  |  |             <groupId>com.baomidou</groupId> | 
 |  |  |             <artifactId>mybatis-plus-generator</artifactId> | 
 |  |  |             <version>${mybatis-plus.version}</version> | 
 |  |  |             <scope>test</scope> | 
 |  |  |         </dependency> | 
 |  |  |  | 
 |  |  |         <dependency> | 
 |  |  |             <groupId>org.springframework.boot</groupId> | 
 |  |  |             <artifactId>spring-boot-configuration-processor</artifactId> | 
 |  |  |             <optional>true</optional> | 
 |  |  |         </dependency> | 
 |  |  |  | 
 |  |  |         <dependency> | 
 |  |  |             <groupId>org.springframework.boot</groupId> | 
 |  |  |             <artifactId>spring-boot-starter-validation</artifactId> | 
 |  |  |         </dependency> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     </dependencies> | 
 |  |  |  | 
 |  |  |     <build> | 
 
 |  |  | 
 |  |  |                IFNULL(t3.fee_packing_transport,0) as order_fee_packing_transport | 
 |  |  |         from ( | 
 |  |  |                  select | 
 |  |  |                      t1.order_id, t1.total_amount ,sum(t1.num) as order_num , (t1.flower_amount + t1.packing_fee + t1.transport_fee) as order_total, sum(t1.supplier_price_amount) as order_supplier_price_amount, sum(t1.markup_one_amount) as order_markup_one_amount,sum(t1.markup_two_amount) as order_markup_two_amount, sum(t1.markup_partner_amount) as order_markup_partner_amount,sum(t1.price_amount) as order_price_amount,sum(t1.original_price_amount) as order_original_price_amount,sum(t1.price_discount_amount) as order_price_discount_amount,sum(t1.coupon_amount_total) as order_coupon_amount_total,sum(t1.check_fee) as order_check_fee,sum(t1.lack_fee_supplier) as order_lack_fee_supplier,sum(t1.replace_fee) as order_replace_fee, | 
 |  |  |                      t1.order_id, t1.total_amount ,sum(t1.num) as order_num , | 
 |  |  |                     ( sum( t1.supplier_price_amount )+sum( t1.markup_one_amount )+sum( t1.markup_two_amount )+sum( t1.markup_partner_amount ) + t1.packing_fee + t1.transport_fee ) AS order_total, | 
 |  |  |                      sum(t1.supplier_price_amount) as order_supplier_price_amount, sum(t1.markup_one_amount) as order_markup_one_amount,sum(t1.markup_two_amount) as order_markup_two_amount, sum(t1.markup_partner_amount) as order_markup_partner_amount,sum(t1.price_amount) as order_price_amount,sum(t1.original_price_amount) as order_original_price_amount,sum(t1.price_discount_amount) as order_price_discount_amount,sum(t1.coupon_amount_total) as order_coupon_amount_total,sum(t1.check_fee) as order_check_fee,sum(t1.lack_fee_supplier) as order_lack_fee_supplier,sum(t1.replace_fee) as order_replace_fee, | 
 |  |  |                      sum(replace_num) as order_replace_num,sum(reduce_num) as order_reduce_num,sum(lack_num) as order_lack_num | 
 |  |  |                  from ( | 
 |  |  |                    SELECT |