| | |
| | | show TABLES like #{tableName} |
| | | </select> |
| | | |
| | | <select id="selectIdxByTableName" parameterType="java.lang.String" resultType="java.util.Map" statementType="STATEMENT"> |
| | | SELECT * FROM mysql.`innodb_index_stats` a WHERE a.table_name = ${tableName} |
| | | </select> |
| | | |
| | | <select id="getTableField" parameterType="String" resultType="com.highdatas.mdm.entity.TableSchemaResult"> |
| | | select COLUMN_NAME as fieldName,DATA_TYPE as dbType, character_maximum_length as length from information_schema.COLUMNS where table_name = #{tableName} and table_schema = (select database()) |
| | | </select> |
| | |
| | | DELETE FROM ${tableName} where ${where} |
| | | </delete> |
| | | |
| | | <select id="createIdx"> |
| | | CREATE INDEX ${idxName} ON ${tableName} (${fields}) |
| | | </select> |
| | | |
| | | |
| | | <delete id="deleteTempByMaintainId"> |
| | | DELETE FROM ${tableTempName} where EXISTS ( |
| | | SELECT pre_merge_id from maintain_detail d |
| | |
| | | </delete> |
| | | |
| | | <select id="selectActMemberShip" parameterType="java.util.Map" resultType="java.util.Map"> |
| | | select * from act_id_membership where USER_ID_ = #{userId} and GROUP_ID_ = #{roleId} |
| | | select * from ACT_ID_MEMBERSHIP where USER_ID_ = #{userId} and GROUP_ID_ = #{roleId} |
| | | </select> |
| | | <select id="selectActMemberShipByRole" parameterType="java.util.Map" resultType="java.util.Map"> |
| | | select * from ACT_ID_MEMBERSHIP where GROUP_ID_ = #{roleId} |
| | | </select> |
| | | <select id="selectActMemberShipByUser" parameterType="java.util.Map" resultType="java.util.Map"> |
| | | select * from ACT_ID_MEMBERSHIP where USER_ID_ = #{userId} |
| | | </select> |
| | | |
| | | <select id="getOneTempFieldDataByMaintainExtent" statementType="STATEMENT" resultType="java.util.Map"> |