1234567891011121314151617181920212223242526 |
- <?php
- namespace app\api\model;
- use think\Model;
- class TestPesticides extends Model
- {
- protected $table = 't_test_pesticides';
- protected $pk = 'id';
- public function deletePesticidesInfoByTestModelID($test_model_id)
- {
- return $this->where('test_model_id', '=', $test_model_id)->delete();
- }
- public function insertPesticidesInfo($update_data)
- {
- return $this->insertAll($update_data);
- }
- }
|