|
@@ -3,7 +3,7 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.slibra.business.mapper.TXinyiDailyMapper">
|
|
|
-
|
|
|
+
|
|
|
<resultMap type="TXinyiDaily" id="TXinyiDailyResult">
|
|
|
<result property="ID" column="ID" />
|
|
|
<result property="testDate" column="TEST_DATE" />
|
|
@@ -58,16 +58,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="CNL" column="CNL" />
|
|
|
<result property="tyqBod5Tn" column="TYQ_BOD5_TN" />
|
|
|
<result property="tyhBod5Tn" column="TYH_BOD5_TN" />
|
|
|
+ <result property="hycRjyAll" column="HYC_RJY_ALL" />
|
|
|
+ <result property="hycWnndAll" column="HYC_WNND_ALL" />
|
|
|
+ <result property="yycRjyAll" column="YYC_RJY_ALL" />
|
|
|
+ <result property="qycRjyAll" column="QYC_RJY_ALL" />
|
|
|
+ <result property="wncjbAll" column="WNCJB_ALL" />
|
|
|
+ <result property="wntjzsAll" column="WNTJZS_ALL" />
|
|
|
+ <result property="hfxwnndAll" column="HFXWNND_ALL" />
|
|
|
<result property="createdTime" column="CREATED_TIME" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTXinyiDailyVo">
|
|
|
- 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, CREATED_TIME from t_xinyi_daily
|
|
|
+ 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 from t_xinyi_daily
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTXinyiDailyList" parameterType="TXinyiDaily" resultMap="TXinyiDailyResult">
|
|
|
<include refid="selectTXinyiDailyVo"/>
|
|
|
- <where>
|
|
|
+ <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>
|
|
@@ -120,15 +127,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<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>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<select id="selectTXinyiDailyByID" parameterType="Long" resultMap="TXinyiDailyResult">
|
|
|
<include refid="selectTXinyiDailyVo"/>
|
|
|
where ID = #{ID}
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
<insert id="insertTXinyiDaily" parameterType="TXinyiDaily" useGeneratedKeys="true" keyProperty="ID">
|
|
|
insert into t_xinyi_daily
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
@@ -184,6 +198,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="CNL != null">CNL,</if>
|
|
|
<if test="tyqBod5Tn != null">TYQ_BOD5_TN,</if>
|
|
|
<if test="tyhBod5Tn != null">TYH_BOD5_TN,</if>
|
|
|
+ <if test="hycRjyAll != null">HYC_RJY_ALL,</if>
|
|
|
+ <if test="hycWnndAll != null">HYC_WNND_ALL,</if>
|
|
|
+ <if test="yycRjyAll != null">YYC_RJY_ALL,</if>
|
|
|
+ <if test="qycRjyAll != null">QYC_RJY_ALL,</if>
|
|
|
+ <if test="wncjbAll != null">WNCJB_ALL,</if>
|
|
|
+ <if test="wntjzsAll != null">WNTJZS_ALL,</if>
|
|
|
+ <if test="hfxwnndAll != null">HFXWNND_ALL,</if>
|
|
|
<if test="createdTime != null">CREATED_TIME,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -239,6 +260,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="CNL != null">#{CNL},</if>
|
|
|
<if test="tyqBod5Tn != null">#{tyqBod5Tn},</if>
|
|
|
<if test="tyhBod5Tn != null">#{tyhBod5Tn},</if>
|
|
|
+ <if test="hycRjyAll != null">#{hycRjyAll},</if>
|
|
|
+ <if test="hycWnndAll != null">#{hycWnndAll},</if>
|
|
|
+ <if test="yycRjyAll != null">#{yycRjyAll},</if>
|
|
|
+ <if test="qycRjyAll != null">#{qycRjyAll},</if>
|
|
|
+ <if test="wncjbAll != null">#{wncjbAll},</if>
|
|
|
+ <if test="wntjzsAll != null">#{wntjzsAll},</if>
|
|
|
+ <if test="hfxwnndAll != null">#{hfxwnndAll},</if>
|
|
|
<if test="createdTime != null">#{createdTime},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -298,6 +326,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="CNL != null">CNL = #{CNL},</if>
|
|
|
<if test="tyqBod5Tn != null">TYQ_BOD5_TN = #{tyqBod5Tn},</if>
|
|
|
<if test="tyhBod5Tn != null">TYH_BOD5_TN = #{tyhBod5Tn},</if>
|
|
|
+ <if test="hycRjyAll != null">HYC_RJY_ALL = #{hycRjyAll},</if>
|
|
|
+ <if test="hycWnndAll != null">HYC_WNND_ALL = #{hycWnndAll},</if>
|
|
|
+ <if test="yycRjyAll != null">YYC_RJY_ALL = #{yycRjyAll},</if>
|
|
|
+ <if test="qycRjyAll != null">QYC_RJY_ALL = #{qycRjyAll},</if>
|
|
|
+ <if test="wncjbAll != null">WNCJB_ALL = #{wncjbAll},</if>
|
|
|
+ <if test="wntjzsAll != null">WNTJZS_ALL = #{wntjzsAll},</if>
|
|
|
+ <if test="hfxwnndAll != null">HFXWNND_ALL = #{hfxwnndAll},</if>
|
|
|
<if test="createdTime != null">CREATED_TIME = #{createdTime},</if>
|
|
|
</trim>
|
|
|
where ID = #{ID}
|