信呼OA版本v2.3.8

This commit is contained in:
雨中磐石
2022-08-14 16:47:40 +08:00
parent 4640677d27
commit e3fcd913e3
1405 changed files with 133635 additions and 73 deletions

View File

@@ -0,0 +1,37 @@
<?php
class mode_finhkdClassAction extends inputAction{
protected function savebefore($table, $arr, $id, $addbo){
$uid = $arr['uid'];
$money = floatval($arr['money']);
$to = m('fina')->totaljie($uid, $id);
if($money > $to)return '还款金额超过需还金额';
$rows['type'] = '3';//一定要是3不能去掉
return array(
'rows'=>$rows
);
}
protected function saveafter($table, $arr, $id, $addbo){
}
public function jiekuantongs()
{
$mid = (int)$this->get('mid');
$moenky = m('fina')->totaljie($this->adminid, $mid);
return ''.$moenky.'元';
}
public function getlastAjax()
{
$rs = m('fininfom')->getone("`uid`='$this->adminid' and `type`=3 order by `optdt` desc",'paytype,cardid,openbank,fullname');
if(!$rs)$rs='';
$this->returnjson($rs);
}
}