-- 有对应关系
select * from websit_order_sign where brand_websit_id='S2102276';
-- 网点有6个师傅
select * from itf_tbl_wangdian_wxg_download where wdno='S2102276';-- 6
-- 需要添加 6 个师傅信息 正确
select * from worker where idcard in (select sfzen from itf_tbl_wangdian_wxg_download where wdno='S2102276')
-- 平台对应的商户网点需要生成6个师傅信息
select * from worker_brand_account where brand_websit_id='S2102276';
-- 平台网点需要添加6个师傅
select * from websit_worker where worker_id in (select worker_id from worker where idcard in (select sfzen from itf_tbl_wangdian_wxg_download where wdno='S2102276') );


select * from worker where sync_flag=0;
delete from  worker_brand_account where worker_id not in (select worker_id from worker where sync_flag=0);
delete from  websit_worker where worker_id not in (select worker_id from worker where sync_flag=0);
