Commit 491b07cd authored by 方建宇's avatar 方建宇

时间查询

parent 91548447
......@@ -243,20 +243,20 @@ public class CmsActivity extends CyIdIncreEntity<CmsActivity> {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
private Date endTime;
/*
*//**
/**
* 开始时间
*//*
*/
@JsonIgnore
@TableField(exist = false)
private String beginTime;
*//**
/**
* 结束时间
*//*
*/
@JsonIgnore
@TableField(exist = false)
private String endTime;*/
private String overTime;
@TableField(exist = false)
private String nickName;
......
......@@ -183,6 +183,15 @@
<if test="entity.weight !=null and entity.weight != '' ">
and ca.weight = #{entity.weight}
</if>
<if test="entity.beginTime !=null ">
and ca.publish_Date &gt;= #{entity.beginTime}
</if>
<if test="entity.overTime !=null ">
and ca.publish_Date &lt;= #{entity.overTime}
</if>
<if test="entity.publishStatus !=null ">
and ca.publish_status = #{entity.publishStatus}
</if>
ORDER BY ca.publish_date DESC
</select>
<update id="deleteCmsActivity" parameterType="java.lang.Integer">
......
......@@ -72,10 +72,10 @@
and create_by like concat('%',#{entity.createBy},'%')
</if>
<if test="entity.beginTime !=null ">
and cn.createDate &gt;= #{entity.beginTime}
and cn.create_Date &gt;= #{entity.beginTime}
</if>
<if test="entity.endTime !=null ">
and cn.createDate &lt;= #{entity.endTime}
and cn.create_Date &lt;= #{entity.endTime}
</if>
<if test="entity.updateBy !=null and entity.updateBy != '' ">
and update_by like concat('%',#{entity.updateBy},'%')
......
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