Browse Source

修改配置

Althars123 2 years ago
parent
commit
b920a10fd8

+ 3 - 3
sdjk-service/src/main/resources/mapper/order/OrderInfoMapper.xml

@@ -30,10 +30,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="tradeType != null and tradeType != ''  "> and trade_type = #{tradeType}</if>
             <if test="referralUserId != null and referralUserId != ''  "> and referral_user_id = #{referralUserId}</if>
             <if test="startTime != null and startTime != '' ">
-                and DATE_FORMAT(success_time,'%Y-%m-%d') <![CDATA[ >= ]]> #{startTime}
+                and DATE_FORMAT(success_time,'%Y%m%d') <![CDATA[ >= ]]> #{startTime}
             </if>
             <if test="endTime != null and endTime != '' ">
-                and DATE_FORMAT(success_time, '%Y-%m-%d') <![CDATA[ <= ]]> #{endTime}
+                and DATE_FORMAT(success_time, '%Y%m%d') <![CDATA[ <= ]]> #{endTime}
             </if>
         </where>
     </select>
@@ -88,4 +88,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <select id="selectMonthIncone" resultType="com.miaxis.order.vo.OrderInfoMonthVo"></select>
 
 
-</mapper>
+</mapper>

+ 2 - 2
sdjk-service/src/main/resources/mapper/vip/VipCodeMapper.xml

@@ -27,10 +27,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="vipCode != null  and vipCode != ''"> and vip_code like concat('%', #{vipCode}, '%')</if>
             <if test="status != null "> and status = #{status}</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>
             <if test="agentId != null">
                 and agent_id =  #{agentId}

+ 4 - 4
sdjk-service/src/main/resources/mapper/wx/WxOrderMapper.xml

@@ -104,10 +104,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             and  goods_type = #{goodsType}
         </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>
         order by create_time desc
     </select>
@@ -120,10 +120,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             and  referral_user_id = #{referralUserId}
         </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>
         order by create_time desc
     </select>