xiangpei
2024-08-06 8e49eae6b1c33e0a02742af2657a1f2c0b89d95b
Merge remote-tracking branch 'origin/master'
6个文件已修改
37 ■■■■■ 已修改文件
ycl-common/src/main/java/constant/CheckSnapCountConstants.java 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-server/src/main/java/com/ycl/calculate/CarSnapshopDataCalculation.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-server/src/main/java/com/ycl/calculate/FaceSnapshotDataCalculation.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-server/src/main/java/com/ycl/platform/service/impl/CheckTemplateServiceImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-server/src/main/resources/mapper/zgyw/CheckTemplateMapper.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ycl-common/src/main/java/constant/CheckSnapCountConstants.java
@@ -3,13 +3,23 @@
public class CheckSnapCountConstants {
    /**
     * 2022年同期抓拍量(省厅)
     * 2022年同期车辆抓拍量(省厅)
     */
    public final static String City = "check.snapCount.city";
    public final static String Car_City = "check.snapCount.car.city";
    /**
     * 2022年同期抓拍量(区县)
     * 2022年同期车辆抓拍量(区县)
     */
    public final static String County = "check.snapCount.county";
    public final static String Car_County = "check.snapCount.car.county";
    /**
     * 2022年同期人脸抓拍量(省厅)
     */
    public final static String Face_City = "check.snapCount.face.city";
    /**
     * 2022年同期人脸抓拍量(区县)
     */
    public final static String Face_County = "check.snapCount.face.city";
    /**
     * 2022抓拍数计算倍率
ycl-server/src/main/java/com/ycl/calculate/CarSnapshopDataCalculation.java
@@ -79,8 +79,8 @@
        }
        //获取2022同期抓拍平均值 省厅、市局
        BigDecimal cityCountAvg = getAverageCount(CheckSnapCountConstants.City);
        BigDecimal countyCountAvg = getAverageCount(CheckSnapCountConstants.County);
        BigDecimal cityCountAvg = getAverageCount(CheckSnapCountConstants.Car_City);
        BigDecimal countyCountAvg = getAverageCount(CheckSnapCountConstants.Car_County);
        // 查询是否index表已经存在今日数据
        List<CheckIndexCar> checkIndexCarList = checkIndexCarMapper.selectToday(DateUtils.getDate());
ycl-server/src/main/java/com/ycl/calculate/FaceSnapshotDataCalculation.java
@@ -80,8 +80,8 @@
        }
        //获取2022同期抓拍平均值 省厅、市局
        BigDecimal cityCountAvg = getAverageCount(CheckSnapCountConstants.City);
        BigDecimal countyCountAvg = getAverageCount(CheckSnapCountConstants.County);
        BigDecimal cityCountAvg = getAverageCount(CheckSnapCountConstants.Face_City);
        BigDecimal countyCountAvg = getAverageCount(CheckSnapCountConstants.Face_County);
        // 查询今日数据
        List<CheckIndexFace> checkIndexFaceList = checkIndexFaceMapper.selectToday(DateUtils.getDate());
ycl-server/src/main/java/com/ycl/platform/service/impl/CheckTemplateServiceImpl.java
@@ -215,7 +215,7 @@
            job.setJobGroup("CHECK");
            jobService.deleteJob(job);
        }
        return checkTemplateMapper.updateCheckTemplate(new CheckTemplate().setId(id));
        return checkTemplateMapper.deleteCheckTemplateById(id);
    }
    @Override
ycl-server/src/main/resources/mapper/zgyw/CheckTemplateMapper.xml
@@ -117,9 +117,9 @@
        where id = #{id}
    </update>
    <delete id="deleteCheckTemplateById" parameterType="Long">
        delete from t_check_template where id = #{id}
    </delete>
    <update id="deleteCheckTemplateById">
        update t_check_template set deleted = 1 where id = #{id}
    </update>
    <delete id="deleteCheckTemplateByIds" parameterType="String">
        delete from t_check_template where id in
ycl-server/src/main/resources/mapper/zgyw/TMonitorMapper.xml
@@ -337,12 +337,11 @@
        t_monitor m
        LEFT JOIN t_yw_point p ON m.serial_number = p.serial_number
        LEFT JOIN t_yw_unit u ON p.unit_id = u.id
        LEFT JOIN t_work_order w ON p.id = w.point_id
        LEFT JOIN t_work_order w ON w.serial_number = p.serial_number
        WHERE u.id = #{unitId} AND MONTH(w.create_time) IS NOT NULL
        <if test="dateRange != null and dateRange.size > 0">
            AND DATE_FORMAT(w.create_time, '%Y-%m') BETWEEN #{dateRange[0]} AND #{dateRange[1]}
        </if>
        GROUP BY months
        ORDER BY months
    </select>