或者 可以增加一个 产品选择窗口的那个检索 条件,可以自行勾选 在哪些字段中去匹配查询 目前 ,系统提供了太多的 or 检索条件了,这样真的拖慢了速度,影响了体验。 看 这个 查询就知道 ,几乎触发全表查询,如果能够自由勾选哪些字段去匹配就会更好啦。 如果这个 模糊查询 可以 作个设定,自行勾选 哪些字段 参与,则会更精准些,对于软件的推广也大有益处。 select res_id,res_cat_id,res_name,parent_res_id,auto_copy_parent_info,batch_flag,res_unit_type,bar_code,quality_days,res_spec,ceil_num,floor_num,manufacturer,stop_flag,in_ceil_price,in_ref_price,out_floor_price,out_ref_price,res_kind,order_id,cost_price,price_dot_num,easy_code,default_edt_id,res_model,res_rank,res_place,ass_unit_type,num_dot_num,res_desc,edt_io_flag,cost_cal_method,edt_ceil_num,edt_floor_num,ext_1,ext_2,ext_3,ext_4,ext_5,ext_6,ext_7,ext_8,create_date,create_user_id,last_modi_date,last_modi_user_id,emf_route_id,subject_storage_amount,subject_sell_income,subject_sell_cost,sup_id,homepage from res where ( res_id like '%14%' or res_name like '%14%' or easy_code like '%14%' or bar_code like '%14%' or res_spec like '%14%' or manufacturer like '%14%' or res_model like '%14%' or res_rank like '%14%' or res_desc like '%14%' or ext_1 like '%14%' or ext_2 like '%14%' or ext_3 like '%14%' or ext_4 like '%14%' or ext_5 like '%14%' or ext_6 like '%14%' or ext_7 like '%14%' or ext_8 like '%14%' or res_place like '%14%' or res_id in( select res_id from res_unit_type_ext where bar_code like '%14%')) and (stop_flag <> 'Y' or stop_flag is null or stop_flag='') order by order_id,res_id |