add
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?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.JobDataTrendMapper">
|
||||
|
||||
<resultMap type="com.ruoyi.cms.domain.JobDataTrend" id="JobDataTrendResult">
|
||||
<id property="id" column="ID" />
|
||||
<result property="deleteCount" column="DELETE_COUNT" />
|
||||
<result property="insertCount" column="INSERT_COUNT" />
|
||||
<result property="failCount" column="FAIL_COUNT" />
|
||||
<result property="websiteName" column="WEBSITE_NAME" />
|
||||
<result property="storageTime" column="STORAGE_TIME" />
|
||||
<result property="delFlag" column="DEL_FLAG" />
|
||||
<result property="createBy" column="CREATE_BY" />
|
||||
<result property="createTime" column="CREATE_TIME" />
|
||||
<result property="updateBy" column="UPDATE_BY" />
|
||||
<result property="updateTime" column="UPDATE_TIME" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectJobDataTrendVo">
|
||||
select ID, DELETE_COUNT, INSERT_COUNT, FAIL_COUNT, STORAGE_TIME,WEBSITE_NAME, DEL_FLAG, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME
|
||||
from JOB_DATA_TREND
|
||||
</sql>
|
||||
|
||||
<select id="selectJobDataTrendList" parameterType="com.ruoyi.cms.domain.JobDataTrend" resultMap="JobDataTrendResult">
|
||||
<include refid="selectJobDataTrendVo"/>
|
||||
<where>
|
||||
<if test="storageTime != null "> and STORAGE_TIME = #{storageTime}</if>
|
||||
<if test="delFlag != null and delFlag != ''"> and DEL_FLAG = #{delFlag}</if>
|
||||
</where>
|
||||
ORDER BY STORAGE_TIME DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?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.JobIndexMapper">
|
||||
|
||||
<select id="getList" parameterType="com.ruoyi.cms.domain.JobIndex" resultType="com.ruoyi.cms.domain.JobIndex">
|
||||
select * from JOB_INDEX where del_flag=0
|
||||
<if test="indexName != null and indexName != ''">
|
||||
and index_name like CONCAT('%',#{indexName},'%')
|
||||
</if>
|
||||
<if test="indexDesc != null and indexDesc != ''">
|
||||
and index_desc like CONCAT('%',#{indexDesc},'%')
|
||||
</if>
|
||||
<if test="isActive != null and isActive != ''">
|
||||
and is_active = #{isActive}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?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.WebsiteManagementMapper">
|
||||
|
||||
<select id="getList" parameterType="com.ruoyi.cms.domain.WebsiteManagement" resultType="com.ruoyi.cms.domain.WebsiteManagement">
|
||||
SELECT
|
||||
c.*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
wm.*,
|
||||
NVL(jj.num, 0) AS num
|
||||
FROM
|
||||
WEBSITE_MANAGEMENT wm
|
||||
LEFT JOIN (
|
||||
SELECT
|
||||
data_source,
|
||||
NVL(count(job_id), 0) AS num
|
||||
FROM
|
||||
job j
|
||||
GROUP BY
|
||||
j.DATA_SOURCE
|
||||
) jj ON jj.DATA_SOURCE = wm.WEBSITE_NAME
|
||||
) c
|
||||
where
|
||||
c.del_flag=0
|
||||
<if test="websiteName != null and websiteName != ''">
|
||||
and c.website_name like CONCAT('%',#{websiteName},'%')
|
||||
</if>
|
||||
<if test="websiteUrl != null and websiteUrl != ''">
|
||||
and c.website_url like CONCAT('%',#{websiteUrl},'%')
|
||||
</if>
|
||||
<if test="websiteOwnerCompany != null and websiteOwnerCompany != ''">
|
||||
and c.website_owner_company like CONCAT('%',#{websiteOwnerCompany},'%')
|
||||
</if>
|
||||
<if test="isActive != null and isActive != ''">
|
||||
and c.is_active = #{isActive}
|
||||
</if>
|
||||
ORDER BY c.num DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user