Commit 06969c16 authored by wujipeng's avatar wujipeng
Browse files

运维管理-过滤条件修改

parent 709fc5d8
......@@ -4,26 +4,34 @@
<mapper namespace="com.ruzhoukj.sms.dao.SSLDao">
<select id="listSsl" resultType="com.ruzhoukj.sms.entity.SSLEntity">
select id,
name,
time
from ssl_certificate
where date_format(time, '%Y%M%d')
between
date_format(#{startDate}, '%Y%M%d')
and
date_format(#{endDate}, '%Y%M%d');
select
id,
name,
time
from
ssl_certificate
where
MONTH(time) = MONTH(NOW())
AND
YEAR(time) = YEAR(NOW());
</select>
<select id="listSslExigency" resultType="com.ruzhoukj.sms.entity.SSLEntity">
select id,
name,
time
from ssl_certificate
where date_format(time, '%Y%M%d')
between
date_format(now(), '%Y%M%d')
and
date_format(date_add(now(), interval 7 day), '%Y%M%d');
SELECT
id,
name,
time
FROM
ssl_certificate
WHERE
time
BETWEEN
DATE(NOW())
AND
DATE(DATE_ADD(NOW(), INTERVAL 7 DAY))
AND
MONTH(time) = MONTH(NOW())
AND
YEAR(time) = YEAR(NOW());
</select>
<select id="pageSSL" resultType="com.ruzhoukj.sms.pojo.vo.SSLVO">
select id,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment