无关风月
2024-07-24 085d0e9e62e524b7cf0e7b7d8ad3b51a5a7c1e81
UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/OrderEvaluateMapper.xml
@@ -23,4 +23,11 @@
        fraction as fraction
        from t_order_evaluate where driverId = #{driverId} and unix_timestamp(insertTime) < unix_timestamp(now()) - 86400 order by insertTime desc limit #{pageNum}, #{size}
    </select>
    <select id="queryDriverScore" resultType="double">
        select ifnull(max(fraction), 0) as fraction from (
        select ROUND(ifnull(sum(fraction), 0) / count(1), 1) as fraction from t_order_evaluate where driverId = #{driverId} group by driverId
        ) as aa
    </select>
</mapper>