|
@@ -303,6 +303,15 @@
|
|
|
<if test="query.shopType != null and query.shopType != '' ">
|
|
<if test="query.shopType != null and query.shopType != '' ">
|
|
|
and gp.id = #{query.shopType}
|
|
and gp.id = #{query.shopType}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="query.dateType=='day'">
|
|
|
|
|
+ and date_format(tor.pay_time,'%Y-%m-%d')=date_format(#{query.date},'%Y-%m-%d')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="query.dateType=='month'">
|
|
|
|
|
+ and date_format(tor.pay_time,'%Y-%m')=date_format(#{query.date},'%Y-%m')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="query.dateType=='year'">
|
|
|
|
|
+ and date_format(tor.pay_time,'%Y')=date_format(#{query.date},'%Y')
|
|
|
|
|
+ </if>
|
|
|
GROUP BY tor.shop_id ) a
|
|
GROUP BY tor.shop_id ) a
|
|
|
ORDER BY shopMoney DESC
|
|
ORDER BY shopMoney DESC
|
|
|
</select>
|
|
</select>
|