|
@ -194,7 +194,7 @@ |
|
|
a.created_by AS "createdBy", |
|
|
a.created_by AS "createdBy", |
|
|
a.is_top AS "isTop", |
|
|
a.is_top AS "isTop", |
|
|
IF (a.is_top = '0', '否', '是') "isTopName", |
|
|
IF (a.is_top = '0', '否', '是') "isTopName", |
|
|
a.created_time AS "createdTime", |
|
|
date_format(a.created_time, '%Y-%m-%d') AS "createdTime", |
|
|
ac.img_url AS "imgUrl" |
|
|
ac.img_url AS "imgUrl" |
|
|
FROM |
|
|
FROM |
|
|
draft a |
|
|
draft a |
|
@ -214,10 +214,10 @@ |
|
|
AND a.title like concat('%', #{title}, '%') |
|
|
AND a.title like concat('%', #{title}, '%') |
|
|
</if> |
|
|
</if> |
|
|
<if test="startDate != null and startDate.trim() != ''"> |
|
|
<if test="startDate != null and startDate.trim() != ''"> |
|
|
AND a.created_time >= #{startDate} |
|
|
AND date_format(a.created_time, '%Y-%m-%d') >= #{startDate} |
|
|
</if> |
|
|
</if> |
|
|
<if test="endDate != null and endDate.trim() != ''"> |
|
|
<if test="endDate != null and endDate.trim() != ''"> |
|
|
<![CDATA[AND a.created_time <= #{endDate}]]> |
|
|
<![CDATA[AND date_format(a.created_time, '%Y-%m-%d') <= #{endDate}]]> |
|
|
</if> |
|
|
</if> |
|
|
ORDER BY a.publish_date DESC, a.updated_time DESC |
|
|
ORDER BY a.publish_date DESC, a.updated_time DESC |
|
|
</select> |
|
|
</select> |
|
|