站点配置-获取站点列表

This commit is contained in:
2025-07-02 19:43:17 +08:00
parent b4302edd8a
commit 7964806b94
6 changed files with 76 additions and 2 deletions

View File

@ -120,4 +120,16 @@
<include refid="selectEmsSiteSettingVo"/>
where site_id = #{siteId}
</select>
<select id="getSiteInfoList" resultMap="EmsSiteSettingResult">
<include refid="selectEmsSiteSettingVo"/>
WHERE 1=1
<if test="siteName != null and siteName != ''">
AND site_name LIKE CONCAT('%', #{siteName}, '%')
</if>
<if test="startTime != null and startTime != null and endTime != null and endTime != ''">
AND running_time &gt;= STR_TO_DATE( #{startTime}, '%Y-%m-%d')
AND running_time &lt; DATE_ADD(STR_TO_DATE( #{endTime}, '%Y-%m-%d'), INTERVAL 1 DAY)
</if>
</select>
</mapper>