fuliqi
2024-07-23 9a1843b565b97326c78b2e41fc6b7953f5af84d9
运维阈值key
4个文件已修改
78 ■■■■■ 已修改文件
ycl-common/src/main/java/constant/YwThreadConstants.java 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-pojo/src/main/java/com/ycl/platform/domain/entity/YwThreshold.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-server/src/main/java/com/ycl/platform/service/impl/YwThresholdServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-server/src/main/resources/mapper/zgyw/YwThresholdMapper.xml 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
@@ -18,7 +18,7 @@
    </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">
@@ -44,6 +44,7 @@
        <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>