-
轉換前:select count(*) as counts from product where find_in_set(:class_id, class_id) and deleted=0 ;
三角籃 BA-41501
POST TIME:2019-06-21三角籃 BA-41523
POST TIME:2019-06-21方晾衣器 BA-41509
POST TIME:2019-06-21晾衣器 BA-41510
POST TIME:2019-06-21浴缸扶手 BA-41527
POST TIME:2019-06-21浴缸扶手 BA-41528
POST TIME:2019-06-21皂液器 BA-41535
POST TIME:2019-06-21皂液器 BA-41536
POST TIME:2019-06-21紙巾架 BA-41504
POST TIME:2019-06-20
轉換后:select count(*) as counts from product where find_in_set(38, class_id) and deleted=0 ;
轉換前:select id,rid,class_id,path,title as title,images,images_s,orders,addtime from product where find_in_set(:class_id, class_id) and deleted=0 order by orders desc,id DESC , mdtime desc limit 9;
轉換后:select id,rid,class_id,path,title as title,images,images_s,orders,addtime from product where find_in_set(38, class_id) and deleted=0 order by orders desc,id DESC , mdtime desc limit 9;
轉換前:select id,product_id,images,images_s,images_name from product_photo where product_id in (1123,1122,1121,1120,1119,1118,1117,1116,912) and deleted=0 order by orders,id;
轉換后:select id,product_id,images,images_s,images_name from product_photo where product_id in (1123,1122,1121,1120,1119,1118,1117,1116,912) and deleted=0 order by orders,id;