|
@@ -137,7 +137,7 @@ class PayTemplateController extends CatchController
|
|
|
|
|
|
$pay_template_item = $this->payTemplateItem->join('pay_products','pay_products.id','=','pay_template_items.pay_product_id')
|
|
$pay_template_item = $this->payTemplateItem->join('pay_products','pay_products.id','=','pay_template_items.pay_product_id')
|
|
->where('pay_template_id',$id)
|
|
->where('pay_template_id',$id)
|
|
- ->select('pay_products.price','pay_products.type','pay_products.given','pay_template_id','pay_product_id','is_first_pay','is_default','sequence')
|
|
|
|
|
|
+ ->select('pay_products.price','pay_products.type','pay_products.given','pay_template_id','pay_product_id','is_first_pay','is_default','sequence','pay_template_items.id as pay_template_item_id')
|
|
->where('pay_template_items.status',1)
|
|
->where('pay_template_items.status',1)
|
|
->orderBy('pay_template_items.sequence')
|
|
->orderBy('pay_template_items.sequence')
|
|
->get();
|
|
->get();
|