From e3daa347df3ce7f65444f2b357b229e42c0e912d Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 19 八月 2024 13:42:04 +0800 Subject: [PATCH] 车辆点位和视图库稳定性测试 --- ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml index 21f0424..9df4474 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml @@ -112,11 +112,13 @@ <select id="ywUnitCount" resultType="java.util.Map"> SELECT u.unit_name AS name, - COUNT(tcs.id) AS num + COUNT(tcs.id) AS num, + 100 - SUM(score) AS score FROM t_contract_score tcs LEFT JOIN t_yw_unit u ON tcs.unit_id = u.id WHERE tcs.deleted = 0 GROUP BY tcs.unit_id + ORDER BY score DESC </select> </mapper> -- Gitblit v1.8.0