磁盘数据表分表,适配磁盘数据名称存储表。
磁盘相关功能
This commit is contained in:
@@ -75,8 +75,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<update id="updateAllDiskName" parameterType="AllDiskName">
|
||||
update all_disk_name
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="clientId != null and clientId != ''">client_id = #{clientId},</if>
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="readIops != null">read_iops = #{readIops},</if>
|
||||
<if test="writeIops != null">write_iops = #{writeIops},</if>
|
||||
@@ -85,7 +83,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
<where>
|
||||
<choose>
|
||||
<when test="id != null">
|
||||
and id=#{id}
|
||||
</when>
|
||||
<when test="clientId != null and name != null">
|
||||
and client_id = #{clientId} and name =#{name}
|
||||
</when>
|
||||
<otherwise>
|
||||
and 1=0
|
||||
</otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</update>
|
||||
|
||||
<delete id="deleteAllDiskNameById" parameterType="Long">
|
||||
|
||||
Reference in New Issue
Block a user