Commit 7ce2743e authored by hujun's avatar hujun

is_check

parent 7040b124
......@@ -84,6 +84,7 @@ class DailyPaperService
//todo 直接返回数据,没提交的没有财务审核无需向后走
//todo 统计各金额
$result["total_info"] = $this->getTotal($store_id, $daily_data);
$result['is_check'] = $this->isCheck($daily_info[0]["id"]);
return ["code" => 200, "data" => $result];
}
break;
......@@ -634,5 +635,19 @@ class DailyPaperService
return $oImgModel->getImgList($params);
}
/**
* 检查是否审核
*
* @param $daily_id
* @return int
*/
public function isCheck($daily_id) {
$where['daily_id'] = $daily_id;
$where['is_del'] = 0;
$num = $this->oDailyLogModel->getTotal($where);
$result = $num > 0 ? 1 : 0;
return $result;
}
}
\ No newline at end of file
......@@ -12,13 +12,14 @@ use think\Model;
* Time : 2:36 PM
* Intro:
*/
class ODailyLog extends Model
class ODailyLog extends BaseModel
{
protected $table = "o_daily_log";
private $db_;
public function __construct()
public function __construct($data = [])
{
parent::__construct($data);
$this->db_ = Db::name($this->table);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment