|
@@ -17,6 +17,7 @@
|
|
|
<result column="status" property="status"/>
|
|
|
<result column="organizedDataCenter" property="organizedDataCenter"/>
|
|
|
<result column="organizationCode" property="organizationCode"/>
|
|
|
+ <result column="roomIds" property="roomIds"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="getById" resultMap="MgrOrganizationResult">
|
|
@@ -92,8 +93,8 @@
|
|
|
</select>
|
|
|
|
|
|
<insert id="insert" parameterType="com.bosshand.virgo.core.model.MgrOrganization" useGeneratedKeys="true" keyProperty="id">
|
|
|
- INSERT into mgr_organization(logo, name, contact, contactTel, address, businessLicense, introduction, registerDate, status, organizationCode)
|
|
|
- values(#{logo}, #{name}, #{contact}, #{contactTel}, #{address}, #{businessLicense}, #{introduction}, now(), #{status}, #{organizationCode})
|
|
|
+ INSERT into mgr_organization(logo, name, contact, contactTel, address, businessLicense, introduction, registerDate, status, organizationCode, roomIds)
|
|
|
+ values(#{logo}, #{name}, #{contact}, #{contactTel}, #{address}, #{businessLicense}, #{introduction}, now(), #{status}, #{organizationCode}, #{roomIds})
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.bosshand.virgo.core.model.MgrOrganization">
|
|
@@ -109,6 +110,7 @@
|
|
|
<if test="introduction!=null">introduction=#{introduction},</if>
|
|
|
<if test="registerDate!=null">registerDate=#{registerDate},</if>
|
|
|
<if test="organizedDataCenter!=0">organizedDataCenter=#{organizedDataCenter},</if>
|
|
|
+ <if test="roomIds!=null">roomIds=#{roomIds},</if>
|
|
|
</trim>
|
|
|
WHERE id=#{id}
|
|
|
</update>
|