|
@@ -98,10 +98,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where order_id = #{orderId}
|
|
|
</select>
|
|
|
<select id="selectDaySources" parameterType="Long" resultMap="PayOrderResult">
|
|
|
- SELECT SUM(amt) as amt,sum(order_liters) as liters
|
|
|
+ SELECT SUM(amt) as amt,sum(order_liters) as order_liters
|
|
|
from pay_order
|
|
|
<where>
|
|
|
- <if test="createdDate != null "> and created_date = #{createdDate}</if>
|
|
|
+ <if test="createdDate != null "> and created_date like concat(#{createdDate}, '%') </if>
|
|
|
<if test="beginTime != null and beginTime != ''"><!-- 开始时间检索 -->
|
|
|
AND date_format(created_date,'%y-%m-%d %H:%i:%s') >= date_format(#{beginTime},'%y-%m-%d %H:%i:%s')
|
|
|
</if>
|
|
@@ -111,7 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</where>
|
|
|
</select>
|
|
|
<select id="selectOilTypeSources" parameterType="Long" resultMap="PayOrderResult">
|
|
|
- SELECT SUM(amt) as amt,sum(order_liters) as liters, oil_type
|
|
|
+ SELECT SUM(amt) as amt,sum(order_liters) as order_liters, oil_type
|
|
|
from pay_order
|
|
|
<where>
|
|
|
<if test="createdDate != null "> and created_date = #{createdDate}</if>
|