|
|
@@ -36,6 +36,7 @@
|
|
|
<result property="createBy" column="createBy"/>
|
|
|
<result property="modifyBy" column="modifyBy"/>
|
|
|
<result property="registrant" column="registrant"/>
|
|
|
+ <result property="sort" column="sort"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMdModelInfoVo">
|
|
|
@@ -69,7 +70,8 @@
|
|
|
mirrorImageDesc,
|
|
|
createBy,
|
|
|
modifyBy,
|
|
|
- registrant
|
|
|
+ registrant,
|
|
|
+ sort
|
|
|
from md_model_info
|
|
|
</sql>
|
|
|
|
|
|
@@ -109,7 +111,9 @@
|
|
|
<if test="createBy != null ">and createBy = #{createBy}</if>
|
|
|
<if test="modifyBy != null ">and modifyBy = #{modifyBy}</if>
|
|
|
<if test="registrant != null ">and registrant = #{registrant}</if>
|
|
|
+ <if test="sort != null ">and sort = #{sort}</if>
|
|
|
</where>
|
|
|
+ order by sort
|
|
|
</select>
|
|
|
|
|
|
<select id="selectMdModelInfoByMdid" parameterType="String" resultMap="MdModelInfoResult">
|
|
|
@@ -151,6 +155,7 @@
|
|
|
<if test="createBy != null">createBy,</if>
|
|
|
<if test="modifyBy != null">modifyBy,</if>
|
|
|
<if test="registrant != null">registrant,</if>
|
|
|
+ <if test="sort != null">sort,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="mdid != null">#{mdid},</if>
|
|
|
@@ -184,6 +189,7 @@
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="modifyBy != null">#{modifyBy},</if>
|
|
|
<if test="registrant != null">#{registrant},</if>
|
|
|
+ <if test="sort != null">#{sort},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -220,6 +226,7 @@
|
|
|
<if test="createBy != null">createBy = #{createBy},</if>
|
|
|
<if test="modifyBy != null">modifyBy = #{modifyBy},</if>
|
|
|
<if test="registrant != null">registrant = #{registrant},</if>
|
|
|
+ <if test="sort != null">sort = #{sort},</if>
|
|
|
</trim>
|
|
|
where mdid = #{mdid}
|
|
|
</update>
|