Explorar el Código

【CHG】统一修改创建时间、更新时间作为查询条件用法

xczzmn hace 4 años
padre
commit
e04d6546ed
Se han modificado 30 ficheros con 61 adiciones y 58 borrados
  1. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BasePreventBirdMapper.xml
  2. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BasePreventFloodMapper.xml
  3. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BasePreventForeignMapper.xml
  4. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BasePreventIceMapper.xml
  5. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BasePreventRustMapper.xml
  6. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BasePreventThawMapper.xml
  7. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BasePreventThunderMapper.xml
  8. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BasePreventTreeMapper.xml
  9. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BasePreventWindMapper.xml
  10. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BusBlqMapper.xml
  11. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BusDmcgyqMapper.xml
  12. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BusFjxgmdMapper.xml
  13. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BusGlkgMapper.xml
  14. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BusSdtzMapper.xml
  15. 2 2
      railway-business/src/main/resources/mapper/baseinfo/BusZzdzxxMapper.xml
  16. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJcbBlqMapper.xml
  17. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJcbDmcgyqMapper.xml
  18. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJcbFdfxjyqMapper.xml
  19. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJcbGlkgMapper.xml
  20. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJcbJcxcMapper.xml
  21. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJcbWjcxcMapper.xml
  22. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJcebGjsfxMapper.xml
  23. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJcebJddzMapper.xml
  24. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJcebJyzqsjlMapper.xml
  25. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJcebLbjghjlMapper.xml
  26. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJcebQmjcjlMapper.xml
  27. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJcebXsjcjlMapper.xml
  28. 2 2
      railway-business/src/main/resources/mapper/catenary/BusJlgzMapper.xml
  29. 2 2
      railway-business/src/main/resources/mapper/safetool/BaseSafetyToolMapper.xml
  30. 3 0
      railway-common/src/main/java/com/railway/common/core/domain/BaseEntity.java

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BasePreventBirdMapper.xml

@@ -277,13 +277,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BasePreventFloodMapper.xml

@@ -316,13 +316,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BasePreventForeignMapper.xml

@@ -280,13 +280,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BasePreventIceMapper.xml

@@ -280,13 +280,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BasePreventRustMapper.xml

@@ -292,13 +292,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BasePreventThawMapper.xml

@@ -328,13 +328,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BasePreventThunderMapper.xml

@@ -268,13 +268,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BasePreventTreeMapper.xml

@@ -340,13 +340,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BasePreventWindMapper.xml

@@ -280,13 +280,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BusBlqMapper.xml

@@ -901,13 +901,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BusDmcgyqMapper.xml

@@ -303,13 +303,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
       <if test="sjbh!=null and sjbh!=''">
         and t.sjbh=#{sjbh}

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BusFjxgmdMapper.xml

@@ -210,13 +210,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BusGlkgMapper.xml

@@ -206,13 +206,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
     order by t.create_time desc

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BusSdtzMapper.xml

@@ -204,13 +204,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/baseinfo/BusZzdzxxMapper.xml

@@ -362,13 +362,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
   </select>

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJcbBlqMapper.xml

@@ -457,13 +457,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
       <if test="submitState!=null and submitState!=''">
         and t.submit_state <![CDATA[ >= ]]> #{submitState}

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJcbDmcgyqMapper.xml

@@ -432,13 +432,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
       <if test="userId!=null and userId!=''">
         and t.user_id=#{userId}

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJcbFdfxjyqMapper.xml

@@ -601,13 +601,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
       <if test="submitState!=null and submitState!=''">
         and t.submit_state <![CDATA[ >= ]]> #{submitState}

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJcbGlkgMapper.xml

@@ -880,13 +880,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
       <if test="submitState!=null and submitState!=''">
         and t.submit_state <![CDATA[ >= ]]> #{submitState}

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJcbJcxcMapper.xml

@@ -609,13 +609,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
       <if test="userId!=null and userId!=''">
         and t.user_id=#{userId}

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJcbWjcxcMapper.xml

@@ -535,13 +535,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
       <if test="userId!=null and userId!=''">
         and t.user_id=#{userId}

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJcebGjsfxMapper.xml

@@ -346,13 +346,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJcebJddzMapper.xml

@@ -258,13 +258,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
       <if test="userId!=null and userId!=''">
         and t.user_id=#{userId}

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJcebJyzqsjlMapper.xml

@@ -233,13 +233,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJcebLbjghjlMapper.xml

@@ -270,13 +270,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJcebQmjcjlMapper.xml

@@ -310,13 +310,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
     </where>
     <if test="orderBy!=null and orderBy!=''">

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJcebXsjcjlMapper.xml

@@ -288,13 +288,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
       <if test="userId!=null and userId!=''">
         and t.user_id=#{userId}

+ 2 - 2
railway-business/src/main/resources/mapper/catenary/BusJlgzMapper.xml

@@ -211,13 +211,13 @@
         and t.create_by=#{createBy}
       </if>
       <if test="createTime!=null">
-        and t.create_time=#{createTime}
+        and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
       </if>
       <if test="updateBy!=null and updateBy!=''">
         and t.update_by=#{updateBy}
       </if>
       <if test="updateTime!=null">
-        and t.update_time=#{updateTime}
+        and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
       </if>
       <if test="delFlag!=null and delFlag!=''">
         and t.del_flag=#{delFlag}

+ 2 - 2
railway-business/src/main/resources/mapper/safetool/BaseSafetyToolMapper.xml

@@ -349,13 +349,13 @@
                     and t.create_by=#{createBy}
                 </if>
                 <if test="createTime!=null">
-                    and t.create_time=#{createTime}
+                    and DATE_FORMAT(t.create_time, '%Y-%m-%d') = #{createTime}
                 </if>
                 <if test="updateBy!=null and updateBy!=''">
                     and t.update_by=#{updateBy}
                 </if>
                 <if test="updateTime!=null">
-                    and t.update_time=#{updateTime}
+                    and DATE_FORMAT(t.update_time, '%Y-%m-%d') = #{updateTime}
                 </if>
         </where>
     </select>

+ 3 - 0
railway-common/src/main/java/com/railway/common/core/domain/BaseEntity.java

@@ -6,6 +6,7 @@ import java.util.HashMap;
 import java.util.Map;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import lombok.Data;
+import org.springframework.format.annotation.DateTimeFormat;
 
 /**
  * Entity基类
@@ -30,6 +31,7 @@ public class BaseEntity implements Serializable {
   /**
    * 创建时间
    */
+  @DateTimeFormat(pattern = "yyyy-MM-dd")
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   private Date createTime;
 
@@ -41,6 +43,7 @@ public class BaseEntity implements Serializable {
   /**
    * 更新时间
    */
+  @DateTimeFormat(pattern = "yyyy-MM-dd")
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   private Date updateTime;