白蚁监测相关错误#594

master
李一帆 2025-04-09 19:02:38 +08:00
parent 0bca8090b1
commit a55137fcaa
2 changed files with 7 additions and 2 deletions

View File

@ -19,13 +19,13 @@ public interface TermiteSurveyDetailMapper extends BaseMapper<TermiteSurveyDetai
@Select(""" @Select("""
<script> <script>
select d.*, s.report_date from termite_survey_detail d left join termite_survey s on d.survey_id = s.id select d.*, s.report_date,s.create_time from termite_survey_detail d left join termite_survey s on d.survey_id = s.id
<where> <where>
<if test="obj.searchDate != null and obj.searchDate != null"> <if test="obj.searchDate != null and obj.searchDate != null">
and s.report_date = #{obj.searchDate} and s.report_date = #{obj.searchDate}
</if> </if>
<if test="obj.pileNumber != null and obj.pileNumber != '' "> <if test="obj.pileNumber != null and obj.pileNumber != '' ">
and d.pile_number = #{obj.pileNumber} and d.pile_number = #{obj.pileNumber}
</if> </if>
</where> </where>
order by s.report_date desc order by s.report_date desc

View File

@ -136,4 +136,9 @@ public class TermiteSurveyDetail implements Serializable {
@Schema(description = "监测时间") @Schema(description = "监测时间")
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8") @JsonFormat(pattern = DateFormatString.YYYY_MM_DD, timezone = "GMT+8")
private Date reportDate; private Date reportDate;
@TableField(exist = false)
@Schema(description = "记录时间")
@JsonFormat(pattern = DateFormatString.YYYY_MM_DD_HH_MM_SS, timezone = "GMT+8")
private Date createTime;
} }