|
@@ -50,7 +50,7 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<insert id="insert" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insert" useGeneratedKeys="true" keyProperty="id">
|
|
- INSERT INTO tag (name, type, organizationId) VALUES (#{name}, #{type}, #{organizationId})
|
|
|
|
|
|
+ INSERT INTO tag (code, name, type, organizationId) VALUES (#{code}, #{name}, #{type}, #{organizationId})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<delete id="delete">
|
|
<delete id="delete">
|
|
@@ -60,6 +60,7 @@
|
|
<update id="update" parameterType="com.bosshand.virgo.api.model.Tag">
|
|
<update id="update" parameterType="com.bosshand.virgo.api.model.Tag">
|
|
UPDATE tag
|
|
UPDATE tag
|
|
<trim prefix="set" suffixOverrides=",">
|
|
<trim prefix="set" suffixOverrides=",">
|
|
|
|
+ <if test="code!=null">code=#{code},</if>
|
|
<if test="name!=null">name=#{name},</if>
|
|
<if test="name!=null">name=#{name},</if>
|
|
<if test="type!=-1">type=#{type},</if>
|
|
<if test="type!=-1">type=#{type},</if>
|
|
<if test="organizationId!=0">organizationId=#{organizationId},</if>
|
|
<if test="organizationId!=0">organizationId=#{organizationId},</if>
|