daixiantong 4 роки тому
джерело
коміт
30db6cb1f7
2 змінених файлів з 4 додано та 3 видалено
  1. +3
    -2
      src/main/java/com/taauav/front/dto/IndexQuestionDto.java
  2. +1
    -1
      src/main/java/com/taauav/front/mapper/UserInspectQuestionMapper.xml

+ 3
- 2
src/main/java/com/taauav/front/dto/IndexQuestionDto.java Переглянути файл

@@ -2,6 +2,7 @@ package com.taauav.front.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigInteger;
import java.util.Date;
@@ -19,13 +20,13 @@ public class IndexQuestionDto {
* 巡检时间(开始)
*/
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date startTime;
private String startTime;

/**
* 巡检时间(结束)
*/
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date endTime;
private String endTime;

/**
* 区属id

+ 1
- 1
src/main/java/com/taauav/front/mapper/UserInspectQuestionMapper.xml Переглянути файл

@@ -109,7 +109,7 @@
<if test="param != null and param.driverId != null and param.driverId > 0">
and d.driver_name like concat('%', #{param.driverName}, '%')
</if>
<if test="param != null and param.startTime != null and param.entTime != null">
<if test="param != null and param.startTime != null and param.endTime != null">
and d.execution_time between #{param.startTime} and #{param.endTime}
</if>
<if test="param != null and param.driverArea != null and param.driverArea > 0">

Завантаження…
Відмінити
Зберегти