map_ids=conn.Query<int>(" select t1.id from dc_base_mother_sku_map as t1 where t1.bailun_sku_warehouse_code in @bailun_sku_warehouse_codes ",new{bailun_sku_warehouse_codes=datas.Select(s=>s.bailun_sku_warehouse_code).ToList()}).ToList()
whereSql+=" and dat.sku_title like "+$"'%{m.key_words}%'";
sqlCount+=" and dat.sku_title like"+$"'%{m.key_words}%'";
break;
case8:
varmother_sku_warehouse_codes=_connection.Query<string>(@" select mother_sku_warehouse_code from dc_base_mother_sku_map as tm where tm.bailun_sku = @bailun_sku ",new{bailun_sku=m.key_words}).ToList();
varmap_datas=_connection.Query<dc_base_mother_sku_map>(" select * from dc_base_mother_sku_map where mother_sku_warehouse_code in @mother_sku_warehouse_codes ",new
varmap_turn_datas=_connection.Query<dc_auto_turnover_list_dto>(sql+" and dat.bailun_sku_warehouse_code in @bailun_sku_warehouse_codes ",new{bailun_sku_warehouse_codes=map_datas.Select(s=>s.bailun_sku_warehouse_code).ToList()});
varbase_wa=_connection.QueryFirstOrDefault<string>(" select t2.`code` from dc_base_warehouse as t1 left join dc_base_country as t2 on t1.area_name = t2.`name` where warehouse_code=@warehouse_code ",new{warehouse_code});