select * from `ydd_fch_warehousing_code` left join `ydd_fch_warehousing` as `ydd_w` on `ydd_fch_warehousing_code`.`warehousing_sn` = `ydd_w`.`warehousing_sn` where `ydd_fch_warehousing_code`.`brand_id` = ? and `ydd_w`.`brand_id` = ? and `ydd_fch_warehousing_code`.`deleted_at` is null
```
开启分表后的情况
```
select * from `ydd_fch_warehousing_code_1111` left join `ydd_fch_warehousing_111` as `ydd_w` on `ydd_fch_warehousing_code_1111`.`warehousing_sn` = `ydd_w`.`warehousing_sn` where `ydd_fch_warehousing_code_1111`.`brand_id` = ? and `ydd_w`.`brand_id` = ? and `ydd_fch_warehousing_code_1111`.`deleted_at` is null