我正在监视由datables进行的sql查询,因为我的一些字段是blob类型。我意识到即使我用render =" false"修改我的list.jspx。排序=#&34;假"搜索=#&34;假" mysql查询正在选择此字段:
Hibernate:选择empleado0_.id为id1_0_,empleado0_.foto为 foto2_0_,empleado0_.fotocurp为fotocurp3_0_, empleado0_.foto_miniatura为foto_min4_0_,empleado0_.nombre as nombre5_0_,empleado0_.version作为版本6_0_来自empleado empleado0_ 哪个较低(empleado0_.nombre)喜欢?逃避'!'要么 低(empleado0_.fotocurp)喜欢?逃避'!'限制?
我正在寻找这个方法,它看起来像是在我的Controller类中执行查询的点:
arr1 = ["sound", "speaker", "volume", "audio", "earphone", "earphones",
"headphones", "headphone"]
arr2 = ["battery", "charge", "charged", "low"]
problem = "my battery is not working"
if any(keyword in problem.split() for keyword in arr1):
print('Problem is related to sound.')
if any(keyword in problem.split() for keyword in arr2):
print('Problem is related to battery.')
但是我无法弄清楚如何避免查询选择不必要的重字段。