|
@@ -27,29 +27,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select id, validate_date, validate_time, source, coef, subcate, hyc_xsy1, hyc_xsy2, hyc_xsy3, carbon_calculate, carbon_real, CN, water_inflow, MLSS, MLVSS, ext from validate_coef
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectValidateCoefList" parameterType="ValidateCoef" resultMap="ValidateCoefResult">
|
|
|
- <include refid="selectValidateCoefVo"/>
|
|
|
- <where>
|
|
|
- 1 = 1
|
|
|
- <if test="validateDate != null and validateDate != ''"> and validate_date = #{validateDate}</if>
|
|
|
- <if test="validateTime != null and validateTime != ''"> and validate_time = #{validateTime}</if>
|
|
|
- <if test="source != null "> and source = #{source}</if>
|
|
|
- <if test="coef != null "> and coef = #{coef}</if>
|
|
|
- <if test="subcate != null "> and subcate = #{subcate}</if>
|
|
|
- <if test="hycXsy1 != null "> and hyc_xsy1 = #{hycXsy1}</if>
|
|
|
- <if test="hycXsy2 != null "> and hyc_xsy2 = #{hycXsy2}</if>
|
|
|
- <if test="hycXsy3 != null "> and hyc_xsy3 = #{hycXsy3}</if>
|
|
|
- <if test="carbonCalculate != null "> and carbon_calculate = #{carbonCalculate}</if>
|
|
|
- <if test="carbonReal != null "> and carbon_real = #{carbonReal}</if>
|
|
|
- <if test="CN != null "> and CN = #{CN}</if>
|
|
|
- <if test="waterInflow != null "> and water_inflow = #{waterInflow}</if>
|
|
|
- <if test="MLSS != null "> and MLSS = #{MLSS}</if>
|
|
|
- <if test="MLVSS != null "> and MLVSS = #{MLVSS}</if>
|
|
|
- <if test="ext != null and ext != ''"> and ext = #{ext}</if>
|
|
|
- </where>
|
|
|
- and del_flag = 0 order by id desc
|
|
|
- </select>
|
|
|
-
|
|
|
<select id="selectValidateCoefById" parameterType="Long" resultMap="ValidateCoefResult">
|
|
|
<include refid="selectValidateCoefVo"/>
|
|
|
where id = #{id} and del_flag = 0
|
|
@@ -128,4 +105,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 2025年05月09日16:49:11 下面是新增的SQL,不允许删除或者覆盖 -->
|
|
|
+ <select id="selectValidateCoefList" parameterType="ValidateCoef" resultMap="ValidateCoefResult">
|
|
|
+ <include refid="selectValidateCoefVo"/>
|
|
|
+ <where>
|
|
|
+ 1 = 1
|
|
|
+ <if test="validateDate != null and validateDate != ''"> and validate_date = #{validateDate}</if>
|
|
|
+ <if test="validateTime != null and validateTime != ''"> and validate_time = #{validateTime}</if>
|
|
|
+ <if test="source != null "> and source = #{source}</if>
|
|
|
+ <if test="coef != null "> and coef = #{coef}</if>
|
|
|
+ <if test="subcate != null "> and subcate = #{subcate}</if>
|
|
|
+ <if test="hycXsy1 != null "> and hyc_xsy1 = #{hycXsy1}</if>
|
|
|
+ <if test="hycXsy2 != null "> and hyc_xsy2 = #{hycXsy2}</if>
|
|
|
+ <if test="hycXsy3 != null "> and hyc_xsy3 = #{hycXsy3}</if>
|
|
|
+ <if test="carbonCalculate != null "> and carbon_calculate = #{carbonCalculate}</if>
|
|
|
+ <if test="carbonReal != null "> and carbon_real = #{carbonReal}</if>
|
|
|
+ <if test="CN != null "> and CN = #{CN}</if>
|
|
|
+ <if test="waterInflow != null "> and water_inflow = #{waterInflow}</if>
|
|
|
+ <if test="MLSS != null "> and MLSS = #{MLSS}</if>
|
|
|
+ <if test="MLVSS != null "> and MLVSS = #{MLVSS}</if>
|
|
|
+ <if test="ext != null and ext != ''"> and ext = #{ext}</if>
|
|
|
+ <!-- 下面是新增的SQL筛选条件 -->
|
|
|
+ <if test="dateBegin != null "> and validate_date >= #{dateBegin}</if>
|
|
|
+ <if test="dateEnd != null "> and validate_date <= #{dateEnd}</if>
|
|
|
+ </where>
|
|
|
+ and del_flag = 0 order by id desc
|
|
|
+ </select>
|
|
|
</mapper>
|