This commit is contained in:
2026-04-24 18:02:16 +08:00
parent f648fd0719
commit b6fd591c8c
5 changed files with 176 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.cms.mapper.JobDataStorageDetectionMapper">
<select id="getList" parameterType="com.ruoyi.cms.domain.JobDataStorageDetection" resultType="com.ruoyi.cms.domain.JobDataStorageDetection">
select * from JOB_DATA_STORAGE_DETECTION where del_flag='0'
<if test="storageDate != null">
and STORAGE_DATE = #{storageDate}
</if>
<if test="storageResult != null and storageResult != ''">
and STORAGE_RESULT like CONCAT('%',#{storageResult},'%')
</if>
ORDER BY CREATE_TIME DESC
</select>
</mapper>

View File

@@ -5,7 +5,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.ruoyi.cms.mapper.JobIndexMapper">
<select id="getList" parameterType="com.ruoyi.cms.domain.JobIndex" resultType="com.ruoyi.cms.domain.JobIndex">
select * from JOB_INDEX where del_flag=0
select * from JOB_INDEX where del_flag='0'
<if test="indexName != null and indexName != ''">
and index_name like CONCAT('%',#{indexName},'%')
</if>

View File

@@ -11,13 +11,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
(
SELECT
wm.*,
NVL(jj.num, 0) AS num
COALESCE(jj.num, 0) AS num
FROM
WEBSITE_MANAGEMENT wm
LEFT JOIN (
SELECT
data_source,
NVL(count(job_id), 0) AS num
COALESCE(count(job_id), 0) AS num
FROM
job j
GROUP BY
@@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
) jj ON jj.DATA_SOURCE = wm.WEBSITE_NAME
) c
where
c.del_flag=0
c.del_flag='0'
<if test="websiteName != null and websiteName != ''">
and c.website_name like CONCAT('%',#{websiteName},'%')
</if>