|
|
@@ -112,28 +112,35 @@
|
|
|
<update id="updateMdModelParams" parameterType="com.ruoyi.interfaces.domain.MdModelParams">
|
|
|
update md_model_params
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="mdid != null">MDID = #{mdid},</if>
|
|
|
- <if test="parCate != null and parCate != ''">PAR_CATE = #{parCate},</if>
|
|
|
- <if test="parGroup != null and parGroup != ''">PAR_GROUP = #{parGroup},</if>
|
|
|
- <if test="parName != null and parName != ''">PAR_NAME = #{parName},</if>
|
|
|
- <if test="parEnname != null and parEnname != ''">PAR_ENNAME = #{parEnname},</if>
|
|
|
- <if test="parNote != null">PAR_NOTE = #{parNote},</if>
|
|
|
- <if test="parType != null">PAR_TYPE = #{parType},</if>
|
|
|
- <if test="parLine != null">PAR_LINE = #{parLine},</if>
|
|
|
- <if test="parDimen != null">PAR_DIMEN = #{parDimen},</if>
|
|
|
- <if test="parDidenSort != null">PAR_DIDEN_SORT = #{parDidenSort},</if>
|
|
|
- <if test="parExpr != null">PAR_EXPR = #{parExpr},</if>
|
|
|
- <if test="parDefVal != null">PAR_DEF_VAL = #{parDefVal},</if>
|
|
|
- <if test="parUnit != null">PAR_UNIT = #{parUnit},</if>
|
|
|
- <if test="parRange != null">PAR_RANGE = #{parRange},</if>
|
|
|
- <if test="parVersion != null">PAR_VERSION = #{parVersion},</if>
|
|
|
- <if test="parStatus != null">PAR_STATUS = #{parStatus},</if>
|
|
|
- <if test="createby != null">CREATEBY = #{createby},</if>
|
|
|
- <if test="modifyby != null">MODIFYBY = #{modifyby},</if>
|
|
|
- <if test="sort != null">SORT = #{sort},</if>
|
|
|
+ MDID = #{mdid,jdbcType=VARCHAR},
|
|
|
+ PAR_CATE = #{parCate,jdbcType=VARCHAR},
|
|
|
+ PAR_GROUP = #{parGroup,jdbcType=VARCHAR},
|
|
|
+ PAR_NAME = #{parName,jdbcType=VARCHAR},
|
|
|
+ PAR_ENNAME = #{parEnname,jdbcType=VARCHAR},
|
|
|
+ PAR_NOTE = #{parNote,jdbcType=VARCHAR},
|
|
|
+ PAR_TYPE = #{parType,jdbcType=VARCHAR},
|
|
|
+ PAR_LINE = #{parLine,jdbcType=INTEGER},
|
|
|
+ PAR_DIMEN = #{parDimen,jdbcType=VARCHAR},
|
|
|
+ PAR_DIDEN_SORT = #{parDidenSort,jdbcType=VARCHAR},
|
|
|
+ PAR_EXPR = #{parExpr,jdbcType=VARCHAR},
|
|
|
+ PAR_DEF_VAL = #{parDefVal,jdbcType=VARCHAR},
|
|
|
+ PAR_UNIT = #{parUnit,jdbcType=VARCHAR},
|
|
|
+ PAR_RANGE = #{parRange,jdbcType=VARCHAR},
|
|
|
+ PAR_VERSION = #{parVersion,jdbcType=VARCHAR},
|
|
|
+ PAR_STATUS = #{parStatus,jdbcType=VARCHAR},
|
|
|
+ CREATEBY = #{createby,jdbcType=TIMESTAMP},
|
|
|
+ MODIFYBY = #{modifyby,jdbcType=TIMESTAMP},
|
|
|
+ SORT = #{sort,jdbcType=INTEGER},
|
|
|
</trim>
|
|
|
where PARID = #{parid}
|
|
|
</update>
|
|
|
+ <update id="updateMdModelParamsGroupCode">
|
|
|
+ update md_model_params
|
|
|
+ set PAR_GROUP = #{parmas.newParGroup,jdbcType=VARCHAR},
|
|
|
+ where MDID = #{mdid,jdbcType=VARCHAR}
|
|
|
+ and PAR_GROUP = #{parGroup,jdbcType=VARCHAR},
|
|
|
+ </update>
|
|
|
+
|
|
|
|
|
|
<delete id="deleteMdModelParamsByParid" parameterType="String">
|
|
|
delete from md_model_params where PARID = #{parid}
|