|
@@ -6,6 +6,10 @@
|
|
|
<id column="id" property="id"/>
|
|
|
<result column="data" property="data"/>
|
|
|
<result column="comment" property="comment"/>
|
|
|
+ <result column="enterpriseData" property="enterpriseData"/>
|
|
|
+ <result column="enterpriseComment" property="enterpriseComment"/>
|
|
|
+ <result column="providerData" property="providerData"/>
|
|
|
+ <result column="providerComment" property="providerComment"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="get" resultType="com.bosshand.virgo.core.model.MgrResource">
|
|
@@ -15,14 +19,15 @@
|
|
|
<select id="defaultResource" resultType="com.bosshand.virgo.core.model.MgrResource">
|
|
|
SELECT * from mgr_resource limit 1
|
|
|
</select>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<select id="getList" resultMap="MgrResourceResult">
|
|
|
SELECT * from mgr_resource
|
|
|
</select>
|
|
|
|
|
|
<insert id="insert" parameterType="com.bosshand.virgo.core.model.MgrResource" useGeneratedKeys="true" keyProperty="id">
|
|
|
- INSERT into mgr_resource(data, comment) values(#{data}, #{comment})
|
|
|
+ INSERT into mgr_resource(`data`, `comment`, `enterpriseData`, `enterpriseComment`, `providerData`, `providerComment`)
|
|
|
+ values(#{data}, #{comment}, #{enterpriseData}, #{enterpriseComment}, #{providerData}, #{providerComment})
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.bosshand.virgo.core.model.MgrResource">
|
|
@@ -30,6 +35,10 @@
|
|
|
<trim prefix="set" suffixOverrides=",">
|
|
|
<if test="data!=null">data=#{data},</if>
|
|
|
<if test="comment!=null">comment=#{comment},</if>
|
|
|
+ <if test="enterpriseData!=null">enterpriseData=#{enterpriseData},</if>
|
|
|
+ <if test="enterpriseComment!=null">enterpriseComment=#{enterpriseComment},</if>
|
|
|
+ <if test="providerData!=null">providerData=#{providerData},</if>
|
|
|
+ <if test="providerComment!=null">providerComment=#{providerComment},</if>
|
|
|
</trim>
|
|
|
WHERE id=#{id}
|
|
|
</update>
|