|
@@ -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>
|