作者 anyv
1 个管道 的构建 通过 耗费 0 秒

32

@@ -560,10 +560,11 @@ class PersonalcenterController extends WeChatBaseController{ @@ -560,10 +560,11 @@ class PersonalcenterController extends WeChatBaseController{
560 $where['a.pay_time'] = [['>=',$start_time],['<=',$end_time]]; 560 $where['a.pay_time'] = [['>=',$start_time],['<=',$end_time]];
561 } 561 }
562 $indent_goods = Db::name('indent') -> alias('a') -> field("a.*,b.indent_id,b.book_name,b.pricing,b.price,b.number,b.thumbnail") -> join('indent_goods b','a.id=b.indent_id','LEFT') -> where($where) -> where("a.state =2 or a.state=3 or a.state=5") -> select(); 562 $indent_goods = Db::name('indent') -> alias('a') -> field("a.*,b.indent_id,b.book_name,b.pricing,b.price,b.number,b.thumbnail") -> join('indent_goods b','a.id=b.indent_id','LEFT') -> where($where) -> where("a.state =2 or a.state=3 or a.state=5") -> select();
563 - $indent_money = Db::name('indent') -> alias('a') -> field("a.id,b.*") -> join('money_income b','a.id=b.indent_id','LEFT') -> where($where) -> where("a.state =2 or a.state=3 or a.state=5") -> select(); 563 + $indent_money = Db::name('indent') -> alias('a') -> field("a.id,b.*") -> join('money_income b','a.id=b.indent_id','LEFT') -> where($where) -> where("a.state =2 or a.state=3 or a.state=5") -> where("b.uid =".$uid) -> select();
564 }else{ 564 }else{
565 $indent_goods = Db::name('indent') -> alias('a') -> field("a.*,b.indent_id,b.book_name,b.pricing,b.price,b.number,b.thumbnail") -> join('indent_goods b','a.id=b.indent_id','LEFT') -> where('a.indent_type=2 and a.salesman_uid='.$uid) -> where("a.state =2 or a.state=3 or a.state=5") -> select(); 565 $indent_goods = Db::name('indent') -> alias('a') -> field("a.*,b.indent_id,b.book_name,b.pricing,b.price,b.number,b.thumbnail") -> join('indent_goods b','a.id=b.indent_id','LEFT') -> where('a.indent_type=2 and a.salesman_uid='.$uid) -> where("a.state =2 or a.state=3 or a.state=5") -> select();
566 - $indent_money = Db::name('indent') -> alias('a') -> field("a.id,b.*") -> join('money_income b','a.id=b.indent_id','LEFT') -> where('a.indent_type=2 and a.salesman_uid='.$uid) -> where("a.state =2 or a.state=3 or a.state=5") -> select(); 566 + /*$indent_money = Db::name('indent') -> alias('a') -> field("a.id,b.*") -> join('money_income b','a.id=b.indent_id','LEFT') -> where('a.indent_type=2 and a.salesman_uid='.$uid) -> where("a.state =2 or a.state=3 or a.state=5") -> select();*/
  567 + $indent_money = Db::name('money_income') -> where("uid =".$uid) -> select();
567 } 568 }
568 569
569 $total_money = 0; 570 $total_money = 0;
@@ -130,7 +130,7 @@ @@ -130,7 +130,7 @@
130 <img src="__TMPL__/public/assets/images/72.png" alt="" /> 130 <img src="__TMPL__/public/assets/images/72.png" alt="" />
131 </div> 131 </div>
132 <div class="log_nine_list_one_left_title"> 132 <div class="log_nine_list_one_left_title">
133 -盈利 133 +盈利
134 </div> 134 </div>
135 <div class="log_nine_list_one_left_title_add"> 135 <div class="log_nine_list_one_left_title_add">
136 (服务费扣点{$money_ratio.platform_ratio}) 136 (服务费扣点{$money_ratio.platform_ratio})