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

时间查询

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