|
|
@@ -6,7 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
<select id="selectAllPhysicalTagsPage" resultType="org.dromara.physical.domain.vo.PhysicalTagVo">
|
|
|
- SELECT id, name, icon_url as iconUrl, color_code as colorCode,
|
|
|
+ SELECT id, service_name,service_code, icon_url as iconUrl, color_code as colorCode,
|
|
|
is_enabled as isEnabled, sort_order as sortOrder,
|
|
|
remark, created_at as createdAt, updated_at as updatedAt,
|
|
|
created_by as createdBy, updated_by as updatedBy
|
|
|
@@ -15,7 +15,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
<select id="selectAllPhysicalTagsList" resultType="org.dromara.physical.domain.vo.PhysicalTagVo">
|
|
|
- SELECT id, name, icon_url as iconUrl, color_code as colorCode,
|
|
|
+ SELECT id, service_name,service_code, icon_url as iconUrl, color_code as colorCode,
|
|
|
is_enabled as isEnabled, sort_order as sortOrder,
|
|
|
remark, created_at as createdAt, updated_at as updatedAt,
|
|
|
created_by as createdBy, updated_by as updatedBy
|
|
|
@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
<select id="selectAllPhysicalTagsById" resultType="org.dromara.physical.domain.vo.PhysicalTagVo">
|
|
|
- SELECT id, name, icon_url as iconUrl, color_code as colorCode,
|
|
|
+ SELECT id, service_name,service_code, icon_url as iconUrl, color_code as colorCode,
|
|
|
is_enabled as isEnabled, sort_order as sortOrder,
|
|
|
remark, created_at as createdAt, updated_at as updatedAt,
|
|
|
created_by as createdBy, updated_by as updatedBy
|
|
|
@@ -32,11 +32,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="selectAllPhysicalTagsByName" resultType="org.dromara.physical.domain.vo.PhysicalTagVo">
|
|
|
- SELECT id, name, icon_url as iconUrl, color_code as colorCode,
|
|
|
+ SELECT id, service_name,service_code, icon_url as iconUrl, color_code as colorCode,
|
|
|
is_enabled as isEnabled, sort_order as sortOrder,
|
|
|
remark, created_at as createdAt, updated_at as updatedAt,
|
|
|
created_by as createdBy, updated_by as updatedBy
|
|
|
- FROM physical_tag where name=#{name}
|
|
|
+ FROM physical_tag where service_name=#{serviceName}
|
|
|
<if test="id != null">
|
|
|
and id!=#{id}
|
|
|
</if>
|
|
|
@@ -46,7 +46,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<insert id="insertPhysicalTag" useGeneratedKeys="true" keyProperty="id">
|
|
|
INSERT INTO physical_tag (
|
|
|
<trim suffixOverrides=",">
|
|
|
- <if test="name != null and name.trim() != ''">name,</if>
|
|
|
+ <if test="serviceName != null and serviceName.trim() != ''">service_name,</if>
|
|
|
<if test="iconUrl != null and iconUrl != ''">icon_url,</if>
|
|
|
<if test="colorCode != null and colorCode != ''">color_code,</if>
|
|
|
<if test="isEnabled != null">is_enabled,</if>
|
|
|
@@ -59,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
) VALUES (
|
|
|
<trim suffixOverrides=",">
|
|
|
- <if test="name != null and name.trim() != ''">#{name},</if>
|
|
|
+ <if test="serviceName != null and serviceName.trim() != ''">#{serviceName},</if>
|
|
|
<if test="iconUrl != null and iconUrl != ''">#{iconUrl},</if>
|
|
|
<if test="colorCode != null and colorCode != ''">#{colorCode},</if>
|
|
|
<if test="isEnabled != null">#{isEnabled},</if>
|
|
|
@@ -76,7 +76,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updatePhysicalTag">
|
|
|
UPDATE physical_tag
|
|
|
<set>
|
|
|
- <if test="name != null and name.trim() != ''">name = #{name},</if>
|
|
|
+ <if test="serviceName != null and serviceName.trim() != ''">service_name = #{serviceName},</if>
|
|
|
+ <if test="serviceCode != null and serviceCode.trim() != ''">service_code = #{serviceCode},</if>
|
|
|
<if test="iconUrl != null and iconUrl != ''">icon_url = #{iconUrl},</if>
|
|
|
<if test="colorCode != null and colorCode != ''">color_code = #{colorCode},</if>
|
|
|
<if test="isEnabled != null">is_enabled = #{isEnabled},</if>
|