indatarec.php 407 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: sicilon_IT
  5. * Date: 2020/5/10
  6. * Time: 23:48
  7. */
  8. namespace app\index\model;
  9. use think\Model;
  10. class indatarec extends Model{
  11. public $table='t_indatarec';
  12. public function updrecbycid($cid,$rec)
  13. {
  14. //
  15. $where_arr['contractid'] = $cid;
  16. $update_arr['workrecid'] = $rec;
  17. $this->where($where_arr)->update($update_arr);
  18. }
  19. }