|
@@ -15,15 +15,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<result property="lowValue" column="low_value" />
|
|
<result property="lowValue" column="low_value" />
|
|
<result property="highValue" column="high_value" />
|
|
<result property="highValue" column="high_value" />
|
|
<result property="beginTime" column="begin_time" />
|
|
<result property="beginTime" column="begin_time" />
|
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
|
+ <result property="revision" column="revision" />
|
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
|
+ <result property="remark" column="remark" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectZQualityValueVo">
|
|
<sql id="selectZQualityValueVo">
|
|
- select value_id, device_works, assay_item, result_value, create_time, update_time, end_time, low_value, high_value, begin_time from z_quality_value
|
|
|
|
|
|
+ select value_id, device_works, assay_item, result_value, create_time, update_time, end_time, low_value, high_value, begin_time, del_flag, revision, create_by, update_by, remark from z_quality_value
|
|
</sql>
|
|
</sql>
|
|
-
|
|
|
|
|
|
+
|
|
<select id="selectZQualityValueByValueId" parameterType="Long" resultMap="ZQualityValueResult">
|
|
<select id="selectZQualityValueByValueId" parameterType="Long" resultMap="ZQualityValueResult">
|
|
<include refid="selectZQualityValueVo"/>
|
|
<include refid="selectZQualityValueVo"/>
|
|
- where value_id = #{valueId}
|
|
|
|
|
|
+ where value_id = #{valueId} and del_flag = 0
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<insert id="insertZQualityValue" parameterType="ZQualityValue">
|
|
<insert id="insertZQualityValue" parameterType="ZQualityValue">
|
|
@@ -39,6 +44,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="lowValue != null">low_value,</if>
|
|
<if test="lowValue != null">low_value,</if>
|
|
<if test="highValue != null">high_value,</if>
|
|
<if test="highValue != null">high_value,</if>
|
|
<if test="beginTime != null">begin_time,</if>
|
|
<if test="beginTime != null">begin_time,</if>
|
|
|
|
+ <if test="delFlag != null">del_flag,</if>
|
|
|
|
+ <if test="revision != null">revision,</if>
|
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
|
+ <if test="remark != null">remark,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="valueId != null">#{valueId},</if>
|
|
<if test="valueId != null">#{valueId},</if>
|
|
@@ -51,6 +61,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="lowValue != null">#{lowValue},</if>
|
|
<if test="lowValue != null">#{lowValue},</if>
|
|
<if test="highValue != null">#{highValue},</if>
|
|
<if test="highValue != null">#{highValue},</if>
|
|
<if test="beginTime != null">#{beginTime},</if>
|
|
<if test="beginTime != null">#{beginTime},</if>
|
|
|
|
+ <if test="delFlag != null">#{delFlag},</if>
|
|
|
|
+ <if test="revision != null">#{revision},</if>
|
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -66,7 +81,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="lowValue != null">low_value = #{lowValue},</if>
|
|
<if test="lowValue != null">low_value = #{lowValue},</if>
|
|
<if test="highValue != null">high_value = #{highValue},</if>
|
|
<if test="highValue != null">high_value = #{highValue},</if>
|
|
<if test="beginTime != null">begin_time = #{beginTime},</if>
|
|
<if test="beginTime != null">begin_time = #{beginTime},</if>
|
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
|
+ <if test="revision != null">revision = #{revision},</if>
|
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
</trim>
|
|
</trim>
|
|
|
|
+ ,revision = revision + 1
|
|
where value_id = #{valueId}
|
|
where value_id = #{valueId}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
@@ -96,6 +117,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="highValue != null "> and high_value = #{highValue}</if>
|
|
<if test="highValue != null "> and high_value = #{highValue}</if>
|
|
<if test="beginTime != null "> and begin_time <= #{beginTime}</if>
|
|
<if test="beginTime != null "> and begin_time <= #{beginTime}</if>
|
|
</where>
|
|
</where>
|
|
- order by value_id desc
|
|
|
|
|
|
+ and del_flag = 0 order by value_id desc
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|