BudgetDepLog.php 333 B

123456789101112131415161718
  1. <?php
  2. namespace app\common\model;
  3. use app\hander\HelpHander;
  4. use think\Db;
  5. use think\Exception;
  6. use think\Model;
  7. class BudgetDepLog extends Model
  8. {
  9. public function add($data){
  10. $data['create_time'] = date('Y-m-d H:i:s');
  11. $ret = Db::name('budget_dep_log')->insert($data);
  12. return $ret?true:false;
  13. }
  14. }