ruoyi-project/src/main/resources/mapper/project/ServiceTransportMapper.xml
@@ -101,4 +101,12 @@ </where> </select> <select id="totalState" parameterType="com.ruoyi.project.domain.ServiceTransport" resultType="map"> SELECT transit_status,COUNT(transit_status) as count FROM service_Transport <where> <if test="notAdminId != null and notAdminId != ''">and create_by = #{notAdminId}</if> </where> GROUP BY transit_status </select> </mapper>