TestPesticides.php 494 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. *
  4. *User:Administrator
  5. *Date:2021/10/11
  6. */
  7. namespace app\api\model;
  8. use think\Model;
  9. class TestPesticides extends Model
  10. {
  11. protected $table = 't_test_pesticides';
  12. protected $pk = 'id';
  13. public function deletePesticidesInfoByTestModelID($test_model_id)
  14. {
  15. return $this->where('test_model_id', '=', $test_model_id)->delete();//return 2
  16. }
  17. public function insertPesticidesInfo($update_data)
  18. {
  19. return $this->insertAll($update_data);
  20. }
  21. }