ycl-common/src/main/java/constant/YwThreadConstants.java
@@ -4,29 +4,49 @@ * 阈值常量 */ public class YwThreadConstants { //时钟准确率 public static final String Car_ClockPercent = "Car_ClockPercent"; //数据及时率 public static final String Car_TimelyPercent = "Car_TimelyPercent"; //白天车辆未识别量 public static final String Car_DayNoNumberCount = "Car_DayNoNumberCount"; //不唯一数据量 public static final String Car_NouniqueCount = "Car_NouniqueCount"; //六项数据不完整量 public static final String Car_NoIntegrityCount = "Car_NoIntegrityCount"; //持续无数据天数 public static final String Car_ContinueNoDataCount = "Car_ContinueNoDataCount"; public static final String Car_ClockPercent = "时钟准确率"; public static final String Car_TimelyPercent = "数据及时率"; public static final String Car_DayNoNumberCount = "车辆未识别量"; public static final String Car_NouniqueCount = "不唯一数据量"; public static final String Car_NoIntegrityCount = "车辆六项属性不完整量"; public static final String Car_ContinueNoDataCount = "持续无数据天数"; //时钟准确率 public static final String Face_ClockPercent = "Face_ClockPercent"; //数据及时率 public static final String Face_TimelyPercent = "Face_TimelyPercent"; //不唯一数据量 public static final String Face_NouniqueCount = "Face_NouniqueCount"; //建模失败率 public static final String Face_FailPercent = "Face_FailPercent"; //平均人脸低平分率 public static final String Face_LowScorePercent = "Face_LowScorePercent"; //持续无数据天数 public static final String Face_ContinueNoDataCount = "Face_ContinueNoDataCount"; public static final String Face_ClockPercent = "时钟准确率"; public static final String Face_TimelyPercent = "数据及时率"; public static final String Face_NouniqueCount = "不唯一数据量"; public static final String Face_FailPercent = "建模失败率"; public static final String Face_LowScorePercent = "平均人脸低平分率"; public static final String Face_ContinueNoDataCount = "持续无数据天数"; public static final String Video_Blur = "模糊分值"; public static final String Video_Color = "颜色分值"; public static final String Video_Light = "亮度分值"; public static final String Video_Shade = "遮挡分值"; public static final String Video_Shake = "抖动分值"; public static final String Video_Snow = "雪花分值"; public static final String Video_stripe = "条纹分值"; public static final String Video_signal = "信号分值"; public static final String Video_diffTime = "标注时间差"; //模糊分值 public static final String Video_Blur = "Video_Blur"; //颜色分值 public static final String Video_Color = "Video_Color"; //亮度分值 public static final String Video_Light = "Video_Light"; //遮挡分值 public static final String Video_Shade = "Video_Shade"; //抖动分值 public static final String Video_Shake = "Video_Shake"; //雪花分值 public static final String Video_Snow = "Video_Snow"; //条纹分值 public static final String Video_Stripe = "Video_Stripe"; //信号分值 public static final String Video_Signal = "Video_Signal"; //标注时间差 public static final String Video_DiffTime = "Video_DiffTime"; } ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java
@@ -39,6 +39,11 @@ @TableField("count_type") private String countType; /** 键值对应YwThreadConstants */ @Excel(name = "键值") @TableField("key") private String key; /** 阈值名 */ @Excel(name = "阈值名") @TableField("name") ycl-server/src/main/java/com/ycl/platform/service/impl/YwThresholdServiceImpl.java
@@ -125,8 +125,8 @@ List<YwThreshold> ywThresholds = ywThresholdMapper.selectList(wrapper); Map<String, YwThreshold> map = new HashMap<>(); for (YwThreshold ywThreshold : ywThresholds) { String name = ywThreshold.getName(); map.put(name, ywThreshold); String key = ywThreshold.getKey(); map.put(key, ywThreshold); } //时钟准确率阈值 Float clockPercent = Float.valueOf(map.get(YwThreadConstants.Car_ClockPercent).getValue()); ycl-server/src/main/resources/mapper/zgyw/YwThresholdMapper.xml
@@ -3,7 +3,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.platform.mapper.YwThresholdMapper"> <resultMap type="YwThreshold" id="YwThresholdResult"> <result property="id" column="id" /> <result property="monitorType" column="monitor_type" /> @@ -18,12 +18,12 @@ </resultMap> <sql id="selectYwThresholdVo"> select id, monitor_type, count_type, name, value, value_auto, create_time, update_time, description, deleted from t_yw_threshold select id, monitor_type, count_type , key, name, value, value_auto, create_time, update_time, description, deleted from t_yw_threshold </sql> <select id="selectYwThresholdList" parameterType="YwThreshold" resultMap="YwThresholdResult"> <include refid="selectYwThresholdVo"/> <where> <where> <if test="monitorType != null and monitorType != ''"> and monitor_type = #{monitorType}</if> <if test="countType != null and countType != ''"> and count_type = #{countType}</if> <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> @@ -33,17 +33,18 @@ <if test="deleted != null and deleted != ''"> and deleted = #{deleted}</if> </where> </select> <select id="selectYwThresholdById" parameterType="Long" resultMap="YwThresholdResult"> <include refid="selectYwThresholdVo"/> where id = #{id} </select> <insert id="insertYwThreshold" parameterType="YwThreshold" useGeneratedKeys="true" keyProperty="id"> insert into t_yw_threshold <trim prefix="(" suffix=")" suffixOverrides=","> <if test="monitorType != null and monitorType != ''">monitor_type,</if> <if test="countType != null">count_type,</if> <if test="key != null">key,</if> <if test="name != null">name,</if> <if test="value != null">value,</if> <if test="valueAuto != null">value_auto,</if> @@ -55,6 +56,7 @@ <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="monitorType != null and monitorType != ''">#{monitorType},</if> <if test="countType != null">#{countType},</if> <if test="key != null">#{key},</if> <if test="name != null">#{name},</if> <if test="value != null">#{value},</if> <if test="valueAuto != null">#{valueAuto},</if> @@ -70,6 +72,7 @@ <trim prefix="SET" suffixOverrides=","> <if test="monitorType != null and monitorType != ''">monitor_type = #{monitorType},</if> <if test="countType != null">count_type = #{countType},</if> <if test="key != null">key = #{key},</if> <if test="name != null">name = #{name},</if> <if test="value != null">value = #{value},</if> <if test="valueAuto != null">value_auto = #{valueAuto},</if> @@ -86,9 +89,9 @@ </delete> <delete id="deleteYwThresholdByIds" parameterType="String"> delete from t_yw_threshold where id in delete from t_yw_threshold where id in <foreach item="id" collection="array" open="(" separator="," close=")"> #{id} </foreach> </delete> </mapper> </mapper>