From c66ed91b47929f1fbb79afbf07db1f3387f92612 Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期一, 13 十一月 2023 16:21:34 +0800 Subject: [PATCH] 新增查询风险值的接口 --- src/main/resources/mapper/RiskAnalysisMapper.xml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 42 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/RiskAnalysisMapper.xml b/src/main/resources/mapper/RiskAnalysisMapper.xml new file mode 100644 index 0000000..7ec8340 --- /dev/null +++ b/src/main/resources/mapper/RiskAnalysisMapper.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "https://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.flightfeather.monitor.mapper.RiskAnalysisMapper"> + + <select id="queryRiskDataByMonth" resultType="com.flightfeather.monitor.domain.ds1.entity.RiskValue"> + select b.name,a.* + from du_js_t_risk_value as a join ja_t_dust_site_info as b on a.mn_code = b.mn_code + <where> + <if test="siteName != null and siteName != '' "> + b.name = #{siteName} + </if> + + <if test="month != null and month != '' "> + and a.lst = #{month} + </if> + + <if test="type != null and type != '' "> + and a.type = #{type} + </if> + </where> + </select> + +</mapper> + + + + + + + + + + + + + + + + + -- Gitblit v1.9.3