puzhibing
2023-12-15 8128a2a50a27d2aca3cb8b4d91acb8a802d86788
DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/OrderEvaluateMapper.xml
@@ -29,4 +29,11 @@
        (select sum(fraction) from t_order_evaluate where driverId = #{uid}) / (select count(fraction) from t_order_evaluate where driverId = #{uid})
        )
    </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>