|
@@ -5,14 +5,13 @@
|
|
<select id="getGroupByList" resultType="com.github.zuihou.business.centralToolMagazine.entity.ToolCostomAddressHistory">
|
|
<select id="getGroupByList" resultType="com.github.zuihou.business.centralToolMagazine.entity.ToolCostomAddressHistory">
|
|
select tcah.* from tool_costom_address_history tcah
|
|
select tcah.* from tool_costom_address_history tcah
|
|
left join imcs_tenant_productionresource itp on tcah.ip=itp.ip
|
|
left join imcs_tenant_productionresource itp on tcah.ip=itp.ip
|
|
- where tcah.result='true'
|
|
|
|
order by tcah.id desc limit 0,3
|
|
order by tcah.id desc limit 0,3
|
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<delete id="deleteHistory30">
|
|
<delete id="deleteHistory30">
|
|
DELETE FROM tool_costom_address_history
|
|
DELETE FROM tool_costom_address_history
|
|
- WHERE create_time < NOW() - INTERVAL 5 DAY
|
|
|
|
|
|
+ WHERE create_time < NOW() - INTERVAL 7 DAY
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|