|
@@ -85,86 +85,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select ID, TEST_DATE, TEST_HOUR, TEST_TIME, SORT, JS_COD, JS_PH, JS_BOD5, JS_SS, JS_NH3, JS_TN, JS_TP, JS_DCGJ, CS_COD, CS_PH, CS_BOD5, CS_SS, CS_NH3, CS_TN, CS_TP, CS_DCGJ, JS_SW, CS_SW, SHC_ONE_PH, SHC_TWO_PH, SHC_HY_ONE_SV, SHC_HY_TWO_SV, SHC_HY_ONE_SVI, SHC_HY_TWO_SVI, SHC_HY_ONE_MLSS, SHC_HY_TWO_MLSS, SHC_HY_ONE_MLVSS, SHC_HY_TWO_MLVSS, SHC_YY_ONE_DO, SHC_YY_TWO_DO, SHC_QY_ONE_DO, SHC_QY_TWO_DO, SHC_HY_ONE_DO, SHC_HY_TWO_DO, JSL, CSL, SDCLCXSL, QSB, F_M, YY_HRT, HY_HRT, QY_HRT, NHL_R, WHL_R, SRT, CNL, TYQ_BOD5_TN, TYH_BOD5_TN, HYC_RJY_ALL, HYC_WNND_ALL, YYC_RJY_ALL, QYC_RJY_ALL, WNCJB_ALL, WNTJZS_ALL, HFXWNND_ALL, CREATED_TIME, CHUNILIANG, CNHSL, GWNL, DF, XNJF, CLF, TYF, XDJF, QTYJF, CNF, ZLSF, ZJCB, DWCB from t_xinyi_daily
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectTXinyiDailyList" parameterType="TXinyiDaily" resultMap="TXinyiDailyResult">
|
|
|
- <include refid="selectTXinyiDailyVo"/>
|
|
|
- <where>
|
|
|
- <if test="testDate != null and testDate != ''"> and TEST_DATE = #{testDate}</if>
|
|
|
- <if test="testHour != null and testHour != ''"> and TEST_HOUR = #{testHour}</if>
|
|
|
- <if test="testTime != null and testTime != ''"> and TEST_TIME = #{testTime}</if>
|
|
|
- <if test="SORT != null "> and SORT = #{SORT}</if>
|
|
|
- <if test="jsCod != null "> and JS_COD = #{jsCod}</if>
|
|
|
- <if test="jsPh != null "> and JS_PH = #{jsPh}</if>
|
|
|
- <if test="jsBod5 != null "> and JS_BOD5 = #{jsBod5}</if>
|
|
|
- <if test="jsSs != null "> and JS_SS = #{jsSs}</if>
|
|
|
- <if test="jsNh3 != null "> and JS_NH3 = #{jsNh3}</if>
|
|
|
- <if test="jsTn != null "> and JS_TN = #{jsTn}</if>
|
|
|
- <if test="jsTp != null "> and JS_TP = #{jsTp}</if>
|
|
|
- <if test="jsDcgj != null "> and JS_DCGJ = #{jsDcgj}</if>
|
|
|
- <if test="csCod != null "> and CS_COD = #{csCod}</if>
|
|
|
- <if test="csPh != null "> and CS_PH = #{csPh}</if>
|
|
|
- <if test="csBod5 != null "> and CS_BOD5 = #{csBod5}</if>
|
|
|
- <if test="csSs != null "> and CS_SS = #{csSs}</if>
|
|
|
- <if test="csNh3 != null "> and CS_NH3 = #{csNh3}</if>
|
|
|
- <if test="csTn != null "> and CS_TN = #{csTn}</if>
|
|
|
- <if test="csTp != null "> and CS_TP = #{csTp}</if>
|
|
|
- <if test="csDcgj != null "> and CS_DCGJ = #{csDcgj}</if>
|
|
|
- <if test="jsSw != null "> and JS_SW = #{jsSw}</if>
|
|
|
- <if test="csSw != null "> and CS_SW = #{csSw}</if>
|
|
|
- <if test="shcOnePh != null "> and SHC_ONE_PH = #{shcOnePh}</if>
|
|
|
- <if test="shcTwoPh != null "> and SHC_TWO_PH = #{shcTwoPh}</if>
|
|
|
- <if test="shcHyOneSv != null "> and SHC_HY_ONE_SV = #{shcHyOneSv}</if>
|
|
|
- <if test="shcHyTwoSv != null "> and SHC_HY_TWO_SV = #{shcHyTwoSv}</if>
|
|
|
- <if test="shcHyOneSvi != null "> and SHC_HY_ONE_SVI = #{shcHyOneSvi}</if>
|
|
|
- <if test="shcHyTwoSvi != null "> and SHC_HY_TWO_SVI = #{shcHyTwoSvi}</if>
|
|
|
- <if test="shcHyOneMlss != null "> and SHC_HY_ONE_MLSS = #{shcHyOneMlss}</if>
|
|
|
- <if test="shcHyTwoMlss != null "> and SHC_HY_TWO_MLSS = #{shcHyTwoMlss}</if>
|
|
|
- <if test="shcHyOneMlvss != null "> and SHC_HY_ONE_MLVSS = #{shcHyOneMlvss}</if>
|
|
|
- <if test="shcHyTwoMlvss != null "> and SHC_HY_TWO_MLVSS = #{shcHyTwoMlvss}</if>
|
|
|
- <if test="shcYyOneDo != null "> and SHC_YY_ONE_DO = #{shcYyOneDo}</if>
|
|
|
- <if test="shcYyTwoDo != null "> and SHC_YY_TWO_DO = #{shcYyTwoDo}</if>
|
|
|
- <if test="shcQyOneDo != null "> and SHC_QY_ONE_DO = #{shcQyOneDo}</if>
|
|
|
- <if test="shcQyTwoDo != null "> and SHC_QY_TWO_DO = #{shcQyTwoDo}</if>
|
|
|
- <if test="shcHyOneDo != null "> and SHC_HY_ONE_DO = #{shcHyOneDo}</if>
|
|
|
- <if test="shcHyTwoDo != null "> and SHC_HY_TWO_DO = #{shcHyTwoDo}</if>
|
|
|
- <if test="JSL != null "> and JSL = #{JSL}</if>
|
|
|
- <if test="CSL != null "> and CSL = #{CSL}</if>
|
|
|
- <if test="SDCLCXSL != null "> and SDCLCXSL = #{SDCLCXSL}</if>
|
|
|
- <if test="QSB != null "> and QSB = #{QSB}</if>
|
|
|
- <if test="fM != null "> and F_M = #{fM}</if>
|
|
|
- <if test="yyHrt != null "> and YY_HRT = #{yyHrt}</if>
|
|
|
- <if test="hyHrt != null "> and HY_HRT = #{hyHrt}</if>
|
|
|
- <if test="qyHrt != null "> and QY_HRT = #{qyHrt}</if>
|
|
|
- <if test="nhlR != null "> and NHL_R = #{nhlR}</if>
|
|
|
- <if test="whlR != null "> and WHL_R = #{whlR}</if>
|
|
|
- <if test="SRT != null "> and SRT = #{SRT}</if>
|
|
|
- <if test="CNL != null "> and CNL = #{CNL}</if>
|
|
|
- <if test="tyqBod5Tn != null "> and TYQ_BOD5_TN = #{tyqBod5Tn}</if>
|
|
|
- <if test="tyhBod5Tn != null "> and TYH_BOD5_TN = #{tyhBod5Tn}</if>
|
|
|
- <if test="hycRjyAll != null and hycRjyAll != ''"> and HYC_RJY_ALL = #{hycRjyAll}</if>
|
|
|
- <if test="hycWnndAll != null and hycWnndAll != ''"> and HYC_WNND_ALL = #{hycWnndAll}</if>
|
|
|
- <if test="yycRjyAll != null and yycRjyAll != ''"> and YYC_RJY_ALL = #{yycRjyAll}</if>
|
|
|
- <if test="qycRjyAll != null and qycRjyAll != ''"> and QYC_RJY_ALL = #{qycRjyAll}</if>
|
|
|
- <if test="wncjbAll != null and wncjbAll != ''"> and WNCJB_ALL = #{wncjbAll}</if>
|
|
|
- <if test="wntjzsAll != null and wntjzsAll != ''"> and WNTJZS_ALL = #{wntjzsAll}</if>
|
|
|
- <if test="hfxwnndAll != null and hfxwnndAll != ''"> and HFXWNND_ALL = #{hfxwnndAll}</if>
|
|
|
- <if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if>
|
|
|
- <if test="CHUNILIANG != null "> and CHUNILIANG = #{CHUNILIANG}</if>
|
|
|
- <if test="CNHSL != null "> and CNHSL = #{CNHSL}</if>
|
|
|
- <if test="GWNL != null "> and GWNL = #{GWNL}</if>
|
|
|
- <if test="DF != null "> and DF = #{DF}</if>
|
|
|
- <if test="XNJF != null "> and XNJF = #{XNJF}</if>
|
|
|
- <if test="CLF != null "> and CLF = #{CLF}</if>
|
|
|
- <if test="TYF != null "> and TYF = #{TYF}</if>
|
|
|
- <if test="XDJF != null "> and XDJF = #{XDJF}</if>
|
|
|
- <if test="QTYJF != null "> and QTYJF = #{QTYJF}</if>
|
|
|
- <if test="CNF != null "> and CNF = #{CNF}</if>
|
|
|
- <if test="ZLSF != null "> and ZLSF = #{ZLSF}</if>
|
|
|
- <if test="ZJCB != null "> and ZJCB = #{ZJCB}</if>
|
|
|
- <if test="DWCB != null "> and DWCB = #{DWCB}</if>
|
|
|
- </where>
|
|
|
- order by TEST_DATE desc
|
|
|
- </select>
|
|
|
-
|
|
|
<select id="selectTXinyiDailyByID" parameterType="Long" resultMap="TXinyiDailyResult">
|
|
|
<include refid="selectTXinyiDailyVo"/>
|
|
|
where ID = #{ID}
|
|
@@ -439,4 +359,87 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="getDetailByDay" resultMap="TXinyiDailyResult">
|
|
|
<include refid="selectTXinyiDailyVo"/> where TEST_DATE = #{testDate} limit 1
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectTXinyiDailyList" parameterType="TXinyiDaily" resultMap="TXinyiDailyResult">
|
|
|
+ <include refid="selectTXinyiDailyVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="testDate != null and testDate != ''"> and TEST_DATE = #{testDate}</if>
|
|
|
+ <if test="testHour != null and testHour != ''"> and TEST_HOUR = #{testHour}</if>
|
|
|
+ <if test="testTime != null and testTime != ''"> and TEST_TIME = #{testTime}</if>
|
|
|
+ <if test="SORT != null "> and SORT = #{SORT}</if>
|
|
|
+ <if test="jsCod != null "> and JS_COD = #{jsCod}</if>
|
|
|
+ <if test="jsPh != null "> and JS_PH = #{jsPh}</if>
|
|
|
+ <if test="jsBod5 != null "> and JS_BOD5 = #{jsBod5}</if>
|
|
|
+ <if test="jsSs != null "> and JS_SS = #{jsSs}</if>
|
|
|
+ <if test="jsNh3 != null "> and JS_NH3 = #{jsNh3}</if>
|
|
|
+ <if test="jsTn != null "> and JS_TN = #{jsTn}</if>
|
|
|
+ <if test="jsTp != null "> and JS_TP = #{jsTp}</if>
|
|
|
+ <if test="jsDcgj != null "> and JS_DCGJ = #{jsDcgj}</if>
|
|
|
+ <if test="csCod != null "> and CS_COD = #{csCod}</if>
|
|
|
+ <if test="csPh != null "> and CS_PH = #{csPh}</if>
|
|
|
+ <if test="csBod5 != null "> and CS_BOD5 = #{csBod5}</if>
|
|
|
+ <if test="csSs != null "> and CS_SS = #{csSs}</if>
|
|
|
+ <if test="csNh3 != null "> and CS_NH3 = #{csNh3}</if>
|
|
|
+ <if test="csTn != null "> and CS_TN = #{csTn}</if>
|
|
|
+ <if test="csTp != null "> and CS_TP = #{csTp}</if>
|
|
|
+ <if test="csDcgj != null "> and CS_DCGJ = #{csDcgj}</if>
|
|
|
+ <if test="jsSw != null "> and JS_SW = #{jsSw}</if>
|
|
|
+ <if test="csSw != null "> and CS_SW = #{csSw}</if>
|
|
|
+ <if test="shcOnePh != null "> and SHC_ONE_PH = #{shcOnePh}</if>
|
|
|
+ <if test="shcTwoPh != null "> and SHC_TWO_PH = #{shcTwoPh}</if>
|
|
|
+ <if test="shcHyOneSv != null "> and SHC_HY_ONE_SV = #{shcHyOneSv}</if>
|
|
|
+ <if test="shcHyTwoSv != null "> and SHC_HY_TWO_SV = #{shcHyTwoSv}</if>
|
|
|
+ <if test="shcHyOneSvi != null "> and SHC_HY_ONE_SVI = #{shcHyOneSvi}</if>
|
|
|
+ <if test="shcHyTwoSvi != null "> and SHC_HY_TWO_SVI = #{shcHyTwoSvi}</if>
|
|
|
+ <if test="shcHyOneMlss != null "> and SHC_HY_ONE_MLSS = #{shcHyOneMlss}</if>
|
|
|
+ <if test="shcHyTwoMlss != null "> and SHC_HY_TWO_MLSS = #{shcHyTwoMlss}</if>
|
|
|
+ <if test="shcHyOneMlvss != null "> and SHC_HY_ONE_MLVSS = #{shcHyOneMlvss}</if>
|
|
|
+ <if test="shcHyTwoMlvss != null "> and SHC_HY_TWO_MLVSS = #{shcHyTwoMlvss}</if>
|
|
|
+ <if test="shcYyOneDo != null "> and SHC_YY_ONE_DO = #{shcYyOneDo}</if>
|
|
|
+ <if test="shcYyTwoDo != null "> and SHC_YY_TWO_DO = #{shcYyTwoDo}</if>
|
|
|
+ <if test="shcQyOneDo != null "> and SHC_QY_ONE_DO = #{shcQyOneDo}</if>
|
|
|
+ <if test="shcQyTwoDo != null "> and SHC_QY_TWO_DO = #{shcQyTwoDo}</if>
|
|
|
+ <if test="shcHyOneDo != null "> and SHC_HY_ONE_DO = #{shcHyOneDo}</if>
|
|
|
+ <if test="shcHyTwoDo != null "> and SHC_HY_TWO_DO = #{shcHyTwoDo}</if>
|
|
|
+ <if test="JSL != null "> and JSL = #{JSL}</if>
|
|
|
+ <if test="CSL != null "> and CSL = #{CSL}</if>
|
|
|
+ <if test="SDCLCXSL != null "> and SDCLCXSL = #{SDCLCXSL}</if>
|
|
|
+ <if test="QSB != null "> and QSB = #{QSB}</if>
|
|
|
+ <if test="fM != null "> and F_M = #{fM}</if>
|
|
|
+ <if test="yyHrt != null "> and YY_HRT = #{yyHrt}</if>
|
|
|
+ <if test="hyHrt != null "> and HY_HRT = #{hyHrt}</if>
|
|
|
+ <if test="qyHrt != null "> and QY_HRT = #{qyHrt}</if>
|
|
|
+ <if test="nhlR != null "> and NHL_R = #{nhlR}</if>
|
|
|
+ <if test="whlR != null "> and WHL_R = #{whlR}</if>
|
|
|
+ <if test="SRT != null "> and SRT = #{SRT}</if>
|
|
|
+ <if test="CNL != null "> and CNL = #{CNL}</if>
|
|
|
+ <if test="tyqBod5Tn != null "> and TYQ_BOD5_TN = #{tyqBod5Tn}</if>
|
|
|
+ <if test="tyhBod5Tn != null "> and TYH_BOD5_TN = #{tyhBod5Tn}</if>
|
|
|
+ <if test="hycRjyAll != null and hycRjyAll != ''"> and HYC_RJY_ALL = #{hycRjyAll}</if>
|
|
|
+ <if test="hycWnndAll != null and hycWnndAll != ''"> and HYC_WNND_ALL = #{hycWnndAll}</if>
|
|
|
+ <if test="yycRjyAll != null and yycRjyAll != ''"> and YYC_RJY_ALL = #{yycRjyAll}</if>
|
|
|
+ <if test="qycRjyAll != null and qycRjyAll != ''"> and QYC_RJY_ALL = #{qycRjyAll}</if>
|
|
|
+ <if test="wncjbAll != null and wncjbAll != ''"> and WNCJB_ALL = #{wncjbAll}</if>
|
|
|
+ <if test="wntjzsAll != null and wntjzsAll != ''"> and WNTJZS_ALL = #{wntjzsAll}</if>
|
|
|
+ <if test="hfxwnndAll != null and hfxwnndAll != ''"> and HFXWNND_ALL = #{hfxwnndAll}</if>
|
|
|
+ <if test="createdTime != null "> and CREATED_TIME = #{createdTime}</if>
|
|
|
+ <if test="CHUNILIANG != null "> and CHUNILIANG = #{CHUNILIANG}</if>
|
|
|
+ <if test="CNHSL != null "> and CNHSL = #{CNHSL}</if>
|
|
|
+ <if test="GWNL != null "> and GWNL = #{GWNL}</if>
|
|
|
+ <if test="DF != null "> and DF = #{DF}</if>
|
|
|
+ <if test="XNJF != null "> and XNJF = #{XNJF}</if>
|
|
|
+ <if test="CLF != null "> and CLF = #{CLF}</if>
|
|
|
+ <if test="TYF != null "> and TYF = #{TYF}</if>
|
|
|
+ <if test="XDJF != null "> and XDJF = #{XDJF}</if>
|
|
|
+ <if test="QTYJF != null "> and QTYJF = #{QTYJF}</if>
|
|
|
+ <if test="CNF != null "> and CNF = #{CNF}</if>
|
|
|
+ <if test="ZLSF != null "> and ZLSF = #{ZLSF}</if>
|
|
|
+ <if test="ZJCB != null "> and ZJCB = #{ZJCB}</if>
|
|
|
+ <if test="DWCB != null "> and DWCB = #{DWCB}</if>
|
|
|
+ <!-- 下面是新增的SQL检索条件 -->
|
|
|
+ <if test="timeBegin != null and timeBegin != ''"> and TEST_DATE >= #{timeBegin}</if>
|
|
|
+ <if test="timeEnd != null and timeEnd != ''"> and TEST_DATE <= #{timeEnd}</if>
|
|
|
+ </where>
|
|
|
+ order by TEST_DATE desc
|
|
|
+ </select>
|
|
|
</mapper>
|