|
|
@@ -6,17 +6,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
<select id="selectVoPage" resultType="org.dromara.business.domain.vo.ItemsVo">
|
|
|
- SELECT id, name, item_type,item_desc, created_at, updated_at
|
|
|
+ SELECT id, name, item_type,item_desc, created_at, updated_at,item_value
|
|
|
FROM items ${ew.customSqlSegment}
|
|
|
</select>
|
|
|
|
|
|
|
|
|
<select id="selectItemsList" resultType="org.dromara.business.domain.vo.ItemsVo">
|
|
|
- SELECT id, name, item_type,item_desc, created_at, updated_at FROM items ${ew.customSqlSegment}
|
|
|
+ SELECT id, name, item_type,item_desc, created_at, updated_at,item_value FROM items ${ew.customSqlSegment}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectVoByIdInfo" resultType="org.dromara.business.domain.vo.ItemsVo">
|
|
|
- SELECT id, name, item_type,item_desc, created_at, updated_at FROM items WHERE id = #{id}
|
|
|
+ SELECT id, name, item_type,item_desc, created_at, updated_at,item_value FROM items WHERE id = #{id}
|
|
|
</select>
|
|
|
|
|
|
<update id="updateItemsById">
|
|
|
@@ -31,6 +31,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="itemDesc != null and itemDesc != ''">
|
|
|
item_desc = #{itemDesc},
|
|
|
</if>
|
|
|
+ <if test="itemValue != null and itemValue != ''">
|
|
|
+ item_value = #{itemValue},
|
|
|
+ </if>
|
|
|
updated_at = NOW()
|
|
|
</set>
|
|
|
WHERE id = #{id}
|
|
|
@@ -43,11 +46,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="name != null and name != ''">name,</if>
|
|
|
<if test="itemType != null and itemType != ''">item_type,</if>
|
|
|
<if test="itemDesc != null and itemDesc != ''">item_desc,</if>
|
|
|
+ <if test="itemValue != null and itemValue != ''">item_value,</if>
|
|
|
</trim>
|
|
|
<trim prefix="VALUES (" suffix=")" suffixOverrides=",">
|
|
|
<if test="name != null and name != ''">#{name},</if>
|
|
|
<if test="itemType != null and itemType != ''">#{itemType},</if>
|
|
|
<if test="itemDesc != null and itemDesc != ''">#{itemDesc},</if>
|
|
|
+ <if test="itemValue != null and itemValue != ''">#{itemValue},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -66,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
<select id="selectItemsSelList" resultType="org.dromara.business.domain.vo.ItemsVo">
|
|
|
- SELECT id, name, item_type,item_desc, created_at, updated_at FROM items
|
|
|
+ SELECT id, name, item_type,item_desc, created_at, updated_at,item_value FROM items
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|