This commit is contained in:
van
2026-04-30 17:10:34 +08:00
parent cf8008bdc1
commit a88600788a
6 changed files with 270 additions and 0 deletions

View File

@@ -82,4 +82,20 @@
<delete id="deleteByJobKey">
delete from wecom_share_link_logistics_job where job_key = #{jobKey}
</delete>
<select id="selectRecentForInstruction" resultMap="WeComShareLinkLogisticsJobResult">
<include refid="selectVo"/>
where create_time >= date_sub(now(), interval #{days} day)
<if test="remarkKeyword != null and remarkKeyword != ''">
and remark like concat('%', #{remarkKeyword}, '%')
</if>
order by id desc
limit #{limit}
</select>
<delete id="deleteByRemarkAndTrackingUrl">
delete from wecom_share_link_logistics_job
where trim(remark) = trim(#{remark})
and trim(tracking_url) = trim(#{trackingUrl})
</delete>
</mapper>