yearsettlemodel.php 763 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: sicilon_IT
  5. * Date: 2020/3/2
  6. * Time: 11:05
  7. */
  8. namespace app\index\model;
  9. use think\Model;
  10. class yearsettlemodel extends Model{
  11. protected $table='t_yearsettle';
  12. /*
  13. * 20200302
  14. * steelxu
  15. * 按身份证查询
  16. */
  17. public function selinfobysfzid($year,$sfzid){
  18. $where_arr['workyear']=$year;
  19. $where_arr['sfzid']=$sfzid;
  20. $rec=$this->where($where_arr)->find();
  21. return $rec;
  22. }
  23. /*
  24. * 20200302
  25. * steelxu
  26. * 按银行卡年份查询
  27. */
  28. public function selinfobycardno($year,$cardno){
  29. $where_arr['workyear']=$year;
  30. $where_arr['cardno']=$cardno;
  31. $rec=$this->where($where_arr)->find();
  32. return $rec;
  33. }
  34. }