webmain/model/flow/kqerrModel.php
(完整代码) 1KB<?php
class flow_kqerrClassModel extends flowModel
{
//审核完成了添加到打卡记录
protected function flowcheckfinsh($zt)
{
m('kqdkjl')->insert(array(
'uid' => $this->uid,
'optdt' => $this->rock->now,
'dkdt' => $this->rs['dt'].' '.$this->rs['ytime'],
'type' => '4',
'explain' => '['.$this->rs['errtype'].']'.$this->rs['explain'].'',
));
}
protected function flowbillwhere($uid, $lx)
{
$month = $this->rock->post('month');
$where = '';
if($month!=''){
$where.=" and a.`dt` like '$month%'";
}
return array(
'where' => $where
);
}
protected function flowbillwhere33($uid, $lx)
{
$dt = $this->rock->date;
$key = $this->rock->post('key');
$month = $this->rock->post('month');
$where = "a.`uid`=$uid";
if($lx=='all'){
$where = '1=1';
}
if($key!='')$where.= m('admin')->getkeywhere($key, 'b.');
if($month !='')$where.=" and a.`dt` like '$month%'";
return array(
'where' => 'and '.$where,
'fields'=> 'a.*,b.name,b.deptname,b.ranking',
'table' => '`[Q]'.$this->mtable.'` a left join `[Q]admin` b on a.`uid`=b.`id`',
'order' => 'a.`id` desc'
);
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
