小么熊🐻 2 жил өмнө
parent
commit
4424161b26

+ 2 - 2
jsjp-service/src/main/java/com/miaxis/order/dto/QuerySchoolOrderListDTO.java

@@ -15,12 +15,12 @@ public class QuerySchoolOrderListDTO extends BaseBusinessEntity {
     private static final long serialVersionUID = 1L;
 
 
-    @ApiModelProperty(value = "开始时间,格式yyyy-MM-dd")
+    @ApiModelProperty(value = "开始时间,格式yyyyMMdd")
 //    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
     private String startTime;
 
 
-    @ApiModelProperty(value = "结束时间,格式yyyy-MM-dd")
+    @ApiModelProperty(value = "结束时间,格式yyyyMMdd")
 //    @JsonFormat(pattern="yyyyMMdd",timezone = "GMT+8")
     private String endTime;
 

+ 4 - 4
jsjp-service/src/main/resources/mapper/order/OrderInfoMapper.xml

@@ -68,10 +68,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 and school_name like concat('%', #{schoolName}, '%')
             </if>
             <if test="startTime != null">
-                and DATE_FORMAT(create_time,'%Y-%m-%d')<![CDATA[ >= ]]> #{startTime}
+                and DATE_FORMAT(create_time,'%Y%m%d')<![CDATA[ >= ]]> #{startTime}
             </if>
             <if test="endTime != null">
-                and DATE_FORMAT(create_time,'%Y-%m-%d') <![CDATA[ < ]]> #{endTime}
+                and DATE_FORMAT(create_time,'%Y%m%d') <![CDATA[ < ]]> #{endTime}
             </if>
         </where>
         group by school,school_name
@@ -92,10 +92,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 and school_name like concat('%', #{schoolName}, '%')
             </if>
             <if test="startTime != null">
-                and DATE_FORMAT(create_time,'%Y-%m-%d')<![CDATA[ >= ]]> #{startTime}
+                and DATE_FORMAT(create_time,'%Y%m%d')<![CDATA[ >= ]]> #{startTime}
             </if>
             <if test="endTime != null">
-                and DATE_FORMAT(create_time,'%Y-%m-%d') <![CDATA[ < ]]> #{endTime}
+                and DATE_FORMAT(create_time,'%Y%m%d') <![CDATA[ < ]]> #{endTime}
             </if>
         </where>
         order by success_time desc