api_transfer_224
This commit is contained in:
@@ -44,9 +44,14 @@ class Transfer extends Wxapp
|
||||
*/
|
||||
protected function get_remind()
|
||||
{
|
||||
$total = $this->mdTransferRemind->count(['uid' => $this->myuid, 'status' => 1]);
|
||||
$data = ['total' => $total];
|
||||
return $data;
|
||||
$where = ['lc_items_transfer_remind.uid' => $this->myuid, 'lc_items_transfer_remind.status' => 1
|
||||
, 'lc_items_transfer.status<>' => -1];
|
||||
$total = $this->db->select('lc_items_transfer_remind.tran_id')
|
||||
->join('lc_items_transfer', 'lc_items_transfer.id = lc_items_transfer_remind.tran_id', 'left')
|
||||
->where($where)
|
||||
->group_by('lc_items_transfer_remind.tran_id')
|
||||
->count_all_results('lc_items_transfer_remind');
|
||||
return ['total' => $total];
|
||||
}
|
||||
|
||||
protected function get_lists()
|
||||
@@ -195,7 +200,6 @@ class Transfer extends Wxapp
|
||||
}
|
||||
}
|
||||
}
|
||||
//$tran_id = 56;
|
||||
$re = $this->mdTransfer->get(['id' => $tran_id]);
|
||||
if (!$re) {
|
||||
throw new Exception('车辆调拨不存在', ERR_PARAMS_ERROR);
|
||||
@@ -318,7 +322,6 @@ class Transfer extends Wxapp
|
||||
throw new Exception('无操作权限', ERR_PARAMS_ERROR);
|
||||
}
|
||||
$tran_id = $re_m['tran_id'];
|
||||
//$tran_id = 56;
|
||||
$re_tr = $this->mdTransfer->get(['id' => $tran_id]);
|
||||
if (!$re_tr) {
|
||||
throw new Exception('数据不存在', ERR_PARAMS_ERROR);
|
||||
|
||||
Reference in New Issue
Block a user