Commit e276a7ac by huluobin

update

parent cccb0bb9
......@@ -14,15 +14,15 @@
left join mall_order t2 on t1.mall_order_id = t2.id
where t1.technician_id = #{param}
and t2.status = 4
and t2.create_time = #{param.date}
and FROM_UNIXTIME(t2.create_time / 1000, '%Y-%m') = #{param.date}
</select>
<select id="queryTotalMallOrderAchievement" resultType="java.math.BigDecimal">
SELECT sum(t1.achievement)
from mall_order_technician t1
LEFT JOIN store_technician t2 on t1.id = technician_id = t2.id
LEFT JOIN store_technician t2 on t1.technician_id = t2.id
LEFT JOIN mall_order t3 on t1.mall_order_id =t3.id
where t3.create_time= #{date}
where FROM_UNIXTIME(t3.create_time/1000,'%Y-%m')= #{date}
<if test="technicianId != null ">
and t1.technician_id =#{technicianId}
</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment