提交 a57de571 authored 作者: chengye's avatar chengye

test

上级 caeb64d8
...@@ -252,7 +252,7 @@ class Useage extends Base ...@@ -252,7 +252,7 @@ class Useage extends Base
$useage = (new \app\em\model\Useage)->alias('u') $useage = (new \app\em\model\Useage)->alias('u')
->field('u.*,em.rate') ->field('u.*,em.rate')
->field('emr.pricing_type,emr.pay_price') ->field('emr.pricing_type,emr.pay_price,amount')
->leftJoin(['em'],'em.id=u.em_id') ->leftJoin(['em'],'em.id=u.em_id')
->leftJoin(['em_rule'=>'emr'],'emr.em_id=em.id') ->leftJoin(['em_rule'=>'emr'],'emr.em_id=em.id')
->where('u.useage_id','=',$uid) ->where('u.useage_id','=',$uid)
......
...@@ -50,7 +50,6 @@ class Em extends Base ...@@ -50,7 +50,6 @@ class Em extends Base
* @throws \think\exception\DbException * @throws \think\exception\DbException
*/ */
public function getEmUseageInfoById($id,$curr=false){ public function getEmUseageInfoById($id,$curr=false){
dd($curr);
$em = $this->getEmInfoById($id,'type,rule'); $em = $this->getEmInfoById($id,'type,rule');
//最后一次抄表记录 //最后一次抄表记录
if($curr == false){ if($curr == false){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论