update 修复sql查询过长,cpu占用过高问题
This commit is contained in:
@@ -91,9 +91,9 @@
|
||||
WHERE
|
||||
`date` >= DATE_SUB(now(), INTERVAL 1 DAY)
|
||||
<if test="leaseProductMachines != null and leaseProductMachines.size() > 0">
|
||||
AND (
|
||||
<foreach collection="leaseProductMachines" item="pair" separator="OR">
|
||||
(`user` = #{pair.user} AND miner = #{pair.miner})
|
||||
AND (`user`, miner) IN (
|
||||
<foreach collection="leaseProductMachines" item="pair" separator=",">
|
||||
(#{pair.user}, #{pair.miner})
|
||||
</foreach>
|
||||
)
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user