...
|
...
|
@@ -629,8 +629,8 @@ class PersonalcenterController extends WeChatBaseController{ |
|
|
}
|
|
|
if($res['grade'] != ''){
|
|
|
$school_grade_class = explode('-',$res['grade']);
|
|
|
$where['a.grade'] = $school_grade_class[0];
|
|
|
$where['a.class'] = $school_grade_class[1];
|
|
|
$where['a.grade'] = trim($school_grade_class[0]);
|
|
|
$where['a.class'] = trim($school_grade_class[1]);
|
|
|
}
|
|
|
|
|
|
if($res['start_time'] != '' && $res['end_time'] != ''){
|
...
|
...
|
@@ -639,7 +639,8 @@ class PersonalcenterController extends WeChatBaseController{ |
|
|
$where['a.pay_time'] = [['>=',$start_time],['<=',$end_time]];
|
|
|
}
|
|
|
/*$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();*/
|
|
|
$indent_money = Db::name('indent') -> alias('a') -> field("a.id,a.order_number,a.pay_time,b.uid,b.money,b.type,b.book_num,b.indent_id") -> 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() -> toArray();
|
|
|
$indent_money = Db::name('indent') -> alias('a') -> field("a.id,a.order_number,a.pay_time,b.uid,b.money,b.type,b.book_num,b.indent_id,a.school,a.grade,a.class") -> 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() -> toArray();
|
|
|
|
|
|
if(count($indent_money)!=0){
|
|
|
foreach ($indent_money as $key => $val){
|
|
|
$indent_money[$key]['book_name'] = Db::name('indent_goods') -> where('indent_id',$val['id']) -> select() -> toArray();
|
...
|
...
|
|