Merge remote-tracking branch 'origin/master'
| | |
| | | |
| | | 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抓拍数计算倍率 |
| | |
| | | } |
| | | |
| | | //获取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()); |
| | |
| | | } |
| | | |
| | | //获取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()); |
| | |
| | | job.setJobGroup("CHECK"); |
| | | jobService.deleteJob(job); |
| | | } |
| | | return checkTemplateMapper.updateCheckTemplate(new CheckTemplate().setId(id)); |
| | | return checkTemplateMapper.deleteCheckTemplateById(id); |
| | | } |
| | | |
| | | @Override |
| | |
| | | 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 |
| | |
| | | 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> |
| | | |