|
@@ -14,11 +14,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="measureId" column="measure_id" />
|
|
|
<result property="measureValue" column="measure_value" />
|
|
|
<result property="measureDate" column="measure_date" />
|
|
|
+ <result property="recorder" column="recorder" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTMeasureRecordVo">
|
|
|
- select d.id, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.measure_id, d.measure_value, d.measure_date from t_measure_record d
|
|
|
+ select d.id, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.measure_id, d.measure_value, d.measure_date,d.recorder from t_measure_record d
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTMeasureRecordList" parameterType="TMeasureRecord" resultMap="TMeasureRecordResult">
|
|
@@ -52,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="measureId != null">measure_id,</if>
|
|
|
<if test="measureValue != null">measure_value,</if>
|
|
|
<if test="measureDate != null">measure_date,</if>
|
|
|
+ <if test="recorder != null">recorder,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -63,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="measureId != null">#{measureId},</if>
|
|
|
<if test="measureValue != null">#{measureValue},</if>
|
|
|
<if test="measureDate != null">#{measureDate},</if>
|
|
|
+ <if test="recorder != null">#{recorder},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -77,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="measureId != null">measure_id = #{measureId},</if>
|
|
|
<if test="measureValue != null">measure_value = #{measureValue},</if>
|
|
|
<if test="measureDate != null">measure_date = #{measureDate},</if>
|
|
|
+ <if test="recorder != null">recorder= #{recorder},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|