|
@@ -7,6 +7,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<resultMap type="TElecCompRecord" id="TElecCompRecordResult">
|
|
|
<result property="id" column="id" />
|
|
|
<result property="componentId" column="component_id" />
|
|
|
+ <result property="componentModel" column="component_model" />
|
|
|
<result property="usedBy" column="used_by" />
|
|
|
<result property="usedDate" column="used_date" />
|
|
|
<result property="createBy" column="create_by" />
|
|
@@ -21,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
</resultMap>
|
|
|
<sql id="selectTElecCompRecordVo">
|
|
|
- select id, component_id, used_by, used_date, create_by, create_time, update_by, update_time, remark from t_elec_comp_record
|
|
|
+ select id, component_id, used_by, used_date, create_by, create_time, update_by, update_time, remark, component_model from t_elec_comp_record
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTElecCompRecordList" parameterType="TElecCompRecord" resultMap="TElecCompRecordResult">
|
|
@@ -49,6 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into t_elec_comp_record
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="componentId != null">component_id,</if>
|
|
|
+ <if test="componentModel != null">component_model,</if>
|
|
|
<if test="usedBy != null">used_by,</if>
|
|
|
<if test="usedDate != null">used_date,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -59,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="componentId != null">#{componentId},</if>
|
|
|
+ <if test="componentModel != null">#{componentModel},</if>
|
|
|
<if test="usedBy != null">#{usedBy},</if>
|
|
|
<if test="usedDate != null">#{usedDate},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -73,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
update t_elec_comp_record
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="componentId != null">component_id = #{componentId},</if>
|
|
|
+ <if test="componentModel != null">component_model = #{componentModel},</if>
|
|
|
<if test="usedBy != null">used_by = #{usedBy},</if>
|
|
|
<if test="usedDate != null">used_date = #{usedDate},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|