Browse Source

查询时间修改

Althars123 2 years ago
parent
commit
84c3242e0e

+ 1 - 1
jpcj-admin/src/test/java/com/miaxis/test/NormalTest.java

@@ -97,7 +97,7 @@ public class NormalTest {
 
 
     @Test
     @Test
     public void test4447() throws Exception {
     public void test4447() throws Exception {
-//        HttpUtils.sendGet("")
+        String gzhToken = wxGzhService.getGzhToken();
     }
     }
 
 
     public static void main(String[] args) {
     public static void main(String[] args) {

+ 6 - 6
jpcj-service/src/main/resources/mapper/wx/WxOrderMapper.xml

@@ -104,10 +104,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             and  goods_type = #{goodsType}
             and  goods_type = #{goodsType}
         </if>
         </if>
         <if test="startTime != null">
         <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>
         <if test="endTime != null">
         <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>
         </if>
         order by create_time desc
         order by create_time desc
     </select>
     </select>
@@ -119,10 +119,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             and  t1.openid in (select openid from user_info where school_name = #{schoolName})
             and  t1.openid in (select openid from user_info where school_name = #{schoolName})
         </if>
         </if>
         <if test="startTime != null">
         <if test="startTime != null">
-            and DATE_FORMAT(t1.create_time,'%Y-%m-%d')<![CDATA[ >= ]]> #{startTime}
+            and DATE_FORMAT(t1.create_time,'%Y%m%d')<![CDATA[ >= ]]> #{startTime}
         </if>
         </if>
         <if test="endTime != null">
         <if test="endTime != null">
-            and DATE_FORMAT(t1.create_time,'%Y-%m-%d') <![CDATA[ < ]]> #{endTime}
+            and DATE_FORMAT(t1.create_time,'%Y%m%d') <![CDATA[ < ]]> #{endTime}
         </if>
         </if>
         order by t1.create_time desc
         order by t1.create_time desc
     </select>
     </select>
@@ -133,10 +133,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             and  t1.openid in (select openid from user_info where school_name = #{schoolName})
             and  t1.openid in (select openid from user_info where school_name = #{schoolName})
         </if>
         </if>
         <if test="startTime != null">
         <if test="startTime != null">
-            and DATE_FORMAT(t1.create_time,'%Y-%m-%d')<![CDATA[ >= ]]> #{startTime}
+            and DATE_FORMAT(t1.create_time,'%Y%m%d')<![CDATA[ >= ]]> #{startTime}
         </if>
         </if>
         <if test="endTime != null">
         <if test="endTime != null">
-            and DATE_FORMAT(t1.create_time,'%Y-%m-%d') <![CDATA[ < ]]> #{endTime}
+            and DATE_FORMAT(t1.create_time,'%Y%m%d') <![CDATA[ < ]]> #{endTime}
         </if>
         </if>
         order by t1.create_time desc
         order by t1.create_time desc
     </select>
     </select>