Commit 3c96bb68 authored by lixuan's avatar lixuan

feat: 新需求

parent 51afacdb
Pipeline #146824 failed with stages
in 0 seconds
package com.ruoyi.system.domain.house.vo; package com.ruoyi.system.domain.house.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.util.Date;
...@@ -14,8 +14,8 @@ public class HouseResourceDataCollectionQuery { ...@@ -14,8 +14,8 @@ public class HouseResourceDataCollectionQuery {
private String four; private String four;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date startDate; private Date startDate;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date endDate; private Date endDate;
} }
...@@ -36,7 +36,7 @@ public interface HouseResourceMapper { ...@@ -36,7 +36,7 @@ public interface HouseResourceMapper {
List<HouseResourcePage> selectByIdList(@Param("idList") List<String> idList); List<HouseResourcePage> selectByIdList(@Param("idList") List<String> idList);
List<HouseResourceDataCollectionSimpleObject> selectHouseResourceByCreateTime(@Param("query")HouseResourceDataCollectionQuery query); List<HouseResourceDataCollectionSimpleObject> selectHouseResourceByCreateTime(@Param("query") HouseResourceDataCollectionQuery query);
List<HouseResourceDataCollectionSimpleObject> selectHouseResourceByUpdateTime(@Param("query")HouseResourceDataCollectionQuery query); List<HouseResourceDataCollectionSimpleObject> selectHouseResourceByUpdateTime(@Param("query") HouseResourceDataCollectionQuery query);
} }
...@@ -881,11 +881,11 @@ ...@@ -881,11 +881,11 @@
<if test="query.four != null and query.four != ''"> <if test="query.four != null and query.four != ''">
AND four = #{query.four} AND four = #{query.four}
</if> </if>
<if test="startDate != null"> <if test="query.startDate != null">
AND update_time <![CDATA[ >= ]]> #{startDate} AND update_time <![CDATA[ >= ]]> #{query.startDate}
</if> </if>
<if test="endDate != null"> <if test="query.endDate != null">
AND update_time <![CDATA[ <= ]]> #{endDate} AND update_time <![CDATA[ <= ]]> #{query.endDate}
</if> </if>
</where> </where>
GROUP BY GROUP BY
......
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