| | |
| | | <if test="dateType == 2">GROUP BY DATE_FORMAT(t.`to_create_time`,'%Y-%m')</if>
|
| | | <if test="dateType == 3">GROUP BY DATE_FORMAT(t.`to_create_time`,'%Y')</if>
|
| | | </sql>
|
| | | <select id="countOrderNumber" resultMap="ChartMap">
|
| | | SELECT IFNULL(COUNT(t.`to_id`),0) AS showValue,
|
| | | <include refid="Column_DateType" />
|
| | | FROM `yeshi_ec_taobao_order` t WHERE t.`to_create_time` IS NOT NULL
|
| | | <include refid="Count_Select_DateType" />
|
| | | <include refid="Count_Group_DateType" />
|
| | | ORDER BY t.`to_create_time`
|
| | | |
| | | <select id="countOrderByDay" resultType="Long">
|
| | | SELECT COUNT(t.`to_id`) FROM `yeshi_ec_taobao_order` t
|
| | | WHERE DATE_FORMAT(t.`to_create_time`,'%Y-%m-%d') = #{preDay}
|
| | | </select>
|
| | | </mapper>
|