|
|
@@ -5,53 +5,74 @@
|
|
|
<mapper namespace="com.ruoyi.interfaces.mapper.MdModelParamsMapper">
|
|
|
|
|
|
<resultMap type="com.ruoyi.interfaces.domain.MdModelParams" id="MdModelParamsResult">
|
|
|
- <result property="parid" column="PARID" />
|
|
|
- <result property="mdid" column="MDID" />
|
|
|
- <result property="parCate" column="PAR_CATE" />
|
|
|
- <result property="parGroup" column="PAR_GROUP" />
|
|
|
- <result property="parName" column="PAR_NAME" />
|
|
|
- <result property="parEnname" column="PAR_ENNAME" />
|
|
|
- <result property="parNote" column="PAR_NOTE" />
|
|
|
- <result property="parType" column="PAR_TYPE" />
|
|
|
- <result property="parLine" column="PAR_LINE" />
|
|
|
- <result property="parDimen" column="PAR_DIMEN" />
|
|
|
- <result property="parDidenSort" column="PAR_DIDEN_SORT" />
|
|
|
- <result property="parExpr" column="PAR_EXPR" />
|
|
|
- <result property="parDefVal" column="PAR_DEF_VAL" />
|
|
|
- <result property="parUnit" column="PAR_UNIT" />
|
|
|
- <result property="parRange" column="PAR_RANGE" />
|
|
|
- <result property="parVersion" column="PAR_VERSION" />
|
|
|
- <result property="parStatus" column="PAR_STATUS" />
|
|
|
- <result property="createby" column="CREATEBY" />
|
|
|
- <result property="modifyby" column="MODIFYBY" />
|
|
|
- <result property="sort" column="SORT" />
|
|
|
+ <result property="parid" column="PARID"/>
|
|
|
+ <result property="mdid" column="MDID"/>
|
|
|
+ <result property="parCate" column="PAR_CATE"/>
|
|
|
+ <result property="parGroup" column="PAR_GROUP"/>
|
|
|
+ <result property="parName" column="PAR_NAME"/>
|
|
|
+ <result property="parEnname" column="PAR_ENNAME"/>
|
|
|
+ <result property="parNote" column="PAR_NOTE"/>
|
|
|
+ <result property="parType" column="PAR_TYPE"/>
|
|
|
+ <result property="parLine" column="PAR_LINE"/>
|
|
|
+ <result property="parDimen" column="PAR_DIMEN"/>
|
|
|
+ <result property="parDidenSort" column="PAR_DIDEN_SORT"/>
|
|
|
+ <result property="parExpr" column="PAR_EXPR"/>
|
|
|
+ <result property="parDefVal" column="PAR_DEF_VAL"/>
|
|
|
+ <result property="parUnit" column="PAR_UNIT"/>
|
|
|
+ <result property="parRange" column="PAR_RANGE"/>
|
|
|
+ <result property="parVersion" column="PAR_VERSION"/>
|
|
|
+ <result property="parStatus" column="PAR_STATUS"/>
|
|
|
+ <result property="createby" column="CREATEBY"/>
|
|
|
+ <result property="modifyby" column="MODIFYBY"/>
|
|
|
+ <result property="sort" column="SORT"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMdModelParamsVo">
|
|
|
- select PARID, MDID, PAR_CATE, PAR_GROUP, PAR_NAME, PAR_ENNAME, PAR_NOTE, PAR_TYPE, PAR_LINE, PAR_DIMEN, PAR_DIDEN_SORT, PAR_EXPR, PAR_DEF_VAL, PAR_UNIT, PAR_RANGE, PAR_VERSION, PAR_STATUS, CREATEBY, MODIFYBY,SORT from md_model_params
|
|
|
+ select PARID,
|
|
|
+ MDID,
|
|
|
+ PAR_CATE,
|
|
|
+ PAR_GROUP,
|
|
|
+ PAR_NAME,
|
|
|
+ PAR_ENNAME,
|
|
|
+ PAR_NOTE,
|
|
|
+ PAR_TYPE,
|
|
|
+ PAR_LINE,
|
|
|
+ PAR_DIMEN,
|
|
|
+ PAR_DIDEN_SORT,
|
|
|
+ PAR_EXPR,
|
|
|
+ PAR_DEF_VAL,
|
|
|
+ PAR_UNIT,
|
|
|
+ PAR_RANGE,
|
|
|
+ PAR_VERSION,
|
|
|
+ PAR_STATUS,
|
|
|
+ CREATEBY,
|
|
|
+ MODIFYBY,
|
|
|
+ SORT
|
|
|
+ from md_model_params
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectMdModelParamsList" parameterType="com.ruoyi.interfaces.domain.MdModelParams" resultMap="MdModelParamsResult">
|
|
|
+ <select id="selectMdModelParamsList" parameterType="com.ruoyi.interfaces.domain.MdModelParams"
|
|
|
+ resultMap="MdModelParamsResult">
|
|
|
<include refid="selectMdModelParamsVo"/>
|
|
|
<where>
|
|
|
- <if test="mdid != null and mdid != ''"> and MDID = #{mdid}</if>
|
|
|
- <if test="parCate != null and parCate != ''"> and PAR_CATE = #{parCate}</if>
|
|
|
- <if test="parGroup != null and parGroup != ''"> and PAR_GROUP = #{parGroup}</if>
|
|
|
- <if test="parName != null and parName != ''"> and PAR_NAME like concat('%', #{parName}, '%')</if>
|
|
|
- <if test="parEnname != null and parEnname != ''"> and PAR_ENNAME like concat('%', #{parEnname}, '%')</if>
|
|
|
- <if test="parNote != null and parNote != ''"> and PAR_NOTE = #{parNote}</if>
|
|
|
- <if test="parType != null and parType != ''"> and PAR_TYPE = #{parType}</if>
|
|
|
- <if test="parLine != null "> and PAR_LINE = #{parLine}</if>
|
|
|
- <if test="parDimen != null and parDimen != ''"> and PAR_DIMEN = #{parDimen}</if>
|
|
|
- <if test="parDidenSort != null and parDidenSort != ''"> and PAR_DIDEN_SORT = #{parDidenSort}</if>
|
|
|
- <if test="parExpr != null and parExpr != ''"> and PAR_EXPR = #{parExpr}</if>
|
|
|
- <if test="parDefVal != null and parDefVal != ''"> and PAR_DEF_VAL = #{parDefVal}</if>
|
|
|
- <if test="parUnit != null and parUnit != ''"> and PAR_UNIT = #{parUnit}</if>
|
|
|
- <if test="parRange != null and parRange != ''"> and PAR_RANGE = #{parRange}</if>
|
|
|
- <if test="parVersion != null and parVersion != ''"> and PAR_VERSION = #{parVersion}</if>
|
|
|
- <if test="parStatus != null and parStatus != ''"> and PAR_STATUS = #{parStatus}</if>
|
|
|
- <if test="createby != null "> and CREATEBY = #{createby}</if>
|
|
|
- <if test="modifyby != null "> and MODIFYBY = #{modifyby}</if>
|
|
|
+ <if test="mdid != null and mdid != ''">and MDID = #{mdid}</if>
|
|
|
+ <if test="parCate != null and parCate != ''">and PAR_CATE = #{parCate}</if>
|
|
|
+ <if test="parGroup != null and parGroup != ''">and PAR_GROUP = #{parGroup}</if>
|
|
|
+ <if test="parName != null and parName != ''">and PAR_NAME like concat('%', #{parName}, '%')</if>
|
|
|
+ <if test="parEnname != null and parEnname != ''">and PAR_ENNAME like concat('%', #{parEnname}, '%')</if>
|
|
|
+ <if test="parNote != null and parNote != ''">and PAR_NOTE = #{parNote}</if>
|
|
|
+ <if test="parType != null and parType != ''">and PAR_TYPE = #{parType}</if>
|
|
|
+ <if test="parLine != null ">and PAR_LINE = #{parLine}</if>
|
|
|
+ <if test="parDimen != null and parDimen != ''">and PAR_DIMEN = #{parDimen}</if>
|
|
|
+ <if test="parDidenSort != null and parDidenSort != ''">and PAR_DIDEN_SORT = #{parDidenSort}</if>
|
|
|
+ <if test="parExpr != null and parExpr != ''">and PAR_EXPR = #{parExpr}</if>
|
|
|
+ <if test="parDefVal != null and parDefVal != ''">and PAR_DEF_VAL = #{parDefVal}</if>
|
|
|
+ <if test="parUnit != null and parUnit != ''">and PAR_UNIT = #{parUnit}</if>
|
|
|
+ <if test="parRange != null and parRange != ''">and PAR_RANGE = #{parRange}</if>
|
|
|
+ <if test="parVersion != null and parVersion != ''">and PAR_VERSION = #{parVersion}</if>
|
|
|
+ <if test="parStatus != null and parStatus != ''">and PAR_STATUS = #{parStatus}</if>
|
|
|
+ <if test="createby != null ">and CREATEBY = #{createby}</if>
|
|
|
+ <if test="modifyby != null ">and MODIFYBY = #{modifyby}</if>
|
|
|
</where>
|
|
|
order by SORT
|
|
|
</select>
|
|
|
@@ -143,7 +164,9 @@
|
|
|
|
|
|
|
|
|
<delete id="deleteMdModelParamsByParid" parameterType="String">
|
|
|
- delete from md_model_params where PARID = #{parid}
|
|
|
+ delete
|
|
|
+ from md_model_params
|
|
|
+ where PARID = #{parid}
|
|
|
</delete>
|
|
|
|
|
|
<delete id="deleteMdModelParamsByParids" parameterType="String">
|
|
|
@@ -153,6 +176,13 @@
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
<delete id="deleteMdModelParamsByMdid">
|
|
|
- delete from md_model_params where MDID = #{mdid}
|
|
|
+ delete
|
|
|
+ from md_model_params
|
|
|
+ where MDID = #{mdid}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteMdModelParamsByParGroup">
|
|
|
+ delete
|
|
|
+ from md_model_params
|
|
|
+ where PAR_GROUP = #{parGroup}
|
|
|
</delete>
|
|
|
</mapper>
|