|
|
|
@ -7,16 +7,15 @@
|
|
|
|
|
<sql id="table">`SYS_RESOURCE`</sql>
|
|
|
|
|
|
|
|
|
|
<sql id="entityColumnList">
|
|
|
|
|
`ID`,`VALUE`,`COMMENT`,`RESOURCE_TYPE`,`NODE`,`SUP_ID`,`VALID`,`ROW_VERSION`,`IS_DELETED`,`CREATE_BY`,`CREATE_TIME`,`LAST_UPDATE_BY`,`LAST_UPDATE_TIME`
|
|
|
|
|
`ID`,`VALUE`,`COMMENT`,`RESOURCE_MODULE`,`RESOURCE_TYPE`,`VALID`,`ROW_VERSION`,`IS_DELETED`,`CREATE_BY`,`CREATE_TIME`,`LAST_UPDATE_BY`,`LAST_UPDATE_TIME`
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<resultMap id="resource" type="${basePackage}.module.system.ent.Resource">
|
|
|
|
|
<result column="ID" jdbcType="BIGINT" property="id"/>
|
|
|
|
|
<result column="VALUE" jdbcType="VARCHAR" property="value"/>
|
|
|
|
|
<result column="COMMENT" jdbcType="VARCHAR" property="comment"/>
|
|
|
|
|
<result column="RESOURCE_MODULE" jdbcType="VARCHAR" property="resourceModule"/>
|
|
|
|
|
<result column="RESOURCE_TYPE" jdbcType="VARCHAR" property="resourceType"/>
|
|
|
|
|
<result column="NODE" jdbcType="BIT" property="node"/>
|
|
|
|
|
<result column="SUP_ID" jdbcType="BIGINT" property="supId"/>
|
|
|
|
|
<result column="VALID" jdbcType="BIT" property="valid"/>
|
|
|
|
|
<result column="ROW_VERSION" jdbcType="BIGINT" property="rowVersion"/>
|
|
|
|
|
<result column="IS_DELETED" jdbcType="BIT" property="isDeleted"/>
|
|
|
|
@ -39,15 +38,12 @@
|
|
|
|
|
<if test="request.comment != null and request.comment != ''">
|
|
|
|
|
AND `COMMENT` = ${r"#"}{request.comment}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="request.resourceModule != null and request.resourceModule != ''">
|
|
|
|
|
AND `RESOURCE_MODULE` = ${r"#"}{request.resourceModule}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="request.resourceType != null and request.resourceType != ''">
|
|
|
|
|
AND `RESOURCE_TYPE` = ${r"#"}{request.resourceType}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="request.node != null">
|
|
|
|
|
AND `NODE` = ${r"#"}{request.node}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="request.supId != null and request.supId != 0">
|
|
|
|
|
AND `SUP_ID` = ${r"#"}{request.supId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="request.valid != null">
|
|
|
|
|
AND `VALID` = ${r"#"}{request.valid}
|
|
|
|
|
</if>
|
|
|
|
@ -76,9 +72,8 @@
|
|
|
|
|
${r"#"}{request.id},
|
|
|
|
|
${r"#"}{request.value,jdbcType=VARCHAR},
|
|
|
|
|
${r"#"}{request.comment,jdbcType=VARCHAR},
|
|
|
|
|
${r"#"}{request.resourceModule,jdbcType=VARCHAR},
|
|
|
|
|
${r"#"}{request.resourceType,jdbcType=VARCHAR},
|
|
|
|
|
${r"#"}{request.node,jdbcType=BIT},
|
|
|
|
|
${r"#"}{request.supId,jdbcType=BIGINT},
|
|
|
|
|
${r"#"}{request.valid,jdbcType=BIT},
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
@ -101,9 +96,8 @@
|
|
|
|
|
${r"#"}{item.id},
|
|
|
|
|
${r"#"}{item.value,jdbcType=VARCHAR},
|
|
|
|
|
${r"#"}{item.comment,jdbcType=VARCHAR},
|
|
|
|
|
${r"#"}{item.resourceModule,jdbcType=VARCHAR},
|
|
|
|
|
${r"#"}{item.resourceType,jdbcType=VARCHAR},
|
|
|
|
|
${r"#"}{item.node,jdbcType=BIT},
|
|
|
|
|
${r"#"}{item.supId,jdbcType=BIGINT},
|
|
|
|
|
${r"#"}{item.valid,jdbcType=BIT},
|
|
|
|
|
0,
|
|
|
|
|
0,
|
|
|
|
@ -129,9 +123,8 @@
|
|
|
|
|
SET
|
|
|
|
|
`VALUE` = ${r"#"}{request.value,jdbcType=VARCHAR},
|
|
|
|
|
`COMMENT` = ${r"#"}{request.comment,jdbcType=VARCHAR},
|
|
|
|
|
`RESOURCE_MODULE` = ${r"#"}{request.resourceModule,jdbcType=VARCHAR},
|
|
|
|
|
`RESOURCE_TYPE` = ${r"#"}{request.resourceType,jdbcType=VARCHAR},
|
|
|
|
|
`NODE` = ${r"#"}{request.node,jdbcType=BIT},
|
|
|
|
|
`SUP_ID` = ${r"#"}{request.supId,jdbcType=BIGINT},
|
|
|
|
|
`VALID` = ${r"#"}{request.valid,jdbcType=BIT},
|
|
|
|
|
`ROW_VERSION` = `ROW_VERSION` + 1,
|
|
|
|
|
`LAST_UPDATE_BY` = ${r"#"}{token.userId},
|
|
|
|
|