|
@@ -6,6 +6,7 @@
|
|
|
|
|
|
<resultMap type="com.bosshand.virgo.api.model.ProjectItemTargetRoom" id="projectItemTargetRoomResult">
|
|
|
<id column="id" property="id"/>
|
|
|
+ <result column="code" property="code"/>
|
|
|
<result column="projectId" property="projectId"/>
|
|
|
<result column="projectItemId" property="projectItemId"/>
|
|
|
<result column="projectItemTargetId" property="projectItemTargetId"/>
|
|
@@ -18,6 +19,7 @@
|
|
|
<result column="invocationDate" property="invocationDate"/>
|
|
|
<result column="decoration" property="decoration"/>
|
|
|
<result column="propertyCertificateNumber" property="propertyCertificateNumber"/>
|
|
|
+ <result column="showPicture" property="showPicture"/>
|
|
|
<result column="picture" property="picture"/>
|
|
|
<result column="video" property="video"/>
|
|
|
<result column="tagIds" property="tagIds"/>
|
|
@@ -49,6 +51,9 @@
|
|
|
<if test="id != 0">
|
|
|
and id = #{id}
|
|
|
</if>
|
|
|
+ <if test="code != null">
|
|
|
+ and code = #{code}
|
|
|
+ </if>
|
|
|
<if test="projectId != 0">
|
|
|
and projectId = #{projectId}
|
|
|
</if>
|
|
@@ -107,9 +112,9 @@
|
|
|
|
|
|
<insert id="insert" useGeneratedKeys="true" keyProperty="id">
|
|
|
INSERT INTO project_item_target_room(`projectId`, `projectItemId`, `projectItemTargetId`,`name`, `roomTypeId`, `roomNumber`, `area`, `roomState`, `investmentState`,
|
|
|
- `invocationDate`, `decoration`, `propertyCertificateNumber`, `picture`, `video`, `tagIds`, `openState`, `price`, `payWay`, `payType`, `introduce`, `data`)
|
|
|
+ `invocationDate`, `decoration`, `propertyCertificateNumber`, `showPicture`, `picture`, `video`, `tagIds`, `openState`, `price`, `payWay`, `payType`, `introduce`, `data`)
|
|
|
VALUES (#{projectId}, #{projectItemId}, #{projectItemTargetId}, #{name}, #{roomTypeId}, #{roomNumber}, #{area}, #{roomState}, #{investmentState},
|
|
|
- #{invocationDate}, #{decoration}, #{propertyCertificateNumber}, #{picture}, #{video}, #{tagIds}, #{openState}, #{price}, #{payWay}, #{payType}, #{introduce}, #{data})
|
|
|
+ #{invocationDate}, #{decoration}, #{propertyCertificateNumber}, #{showPicture}, #{picture}, #{video}, #{tagIds}, #{openState}, #{price}, #{payWay}, #{payType}, #{introduce}, #{data})
|
|
|
</insert>
|
|
|
|
|
|
<delete id="delete">
|
|
@@ -123,6 +128,9 @@
|
|
|
<select id="getTotalCount" parameterType="com.bosshand.virgo.api.model.ProjectItemTargetRoom" resultType="Integer">
|
|
|
SELECT count(*) FROM project_item_target_room
|
|
|
<where>
|
|
|
+ <if test="code != null">
|
|
|
+ and code = #{code}
|
|
|
+ </if>
|
|
|
<if test="projectId != 0">
|
|
|
and projectId = #{projectId}
|
|
|
</if>
|
|
@@ -182,6 +190,9 @@
|
|
|
<select id="getLimit" resultMap="projectItemTargetRoomResult">
|
|
|
SELECT * FROM project_item_target_room
|
|
|
<where>
|
|
|
+ <if test="p.code != null">
|
|
|
+ and code = #{p.code}
|
|
|
+ </if>
|
|
|
<if test="p.projectId != 0">
|
|
|
and projectId = #{p.projectId}
|
|
|
</if>
|
|
@@ -254,6 +265,7 @@
|
|
|
<if test="invocationDate!=null">invocationDate=#{invocationDate},</if>
|
|
|
<if test="decoration!=0">decoration=#{decoration},</if>
|
|
|
<if test="propertyCertificateNumber!=null">propertyCertificateNumber=#{propertyCertificateNumber},</if>
|
|
|
+ <if test="showPicture!=null">showPicture=#{showPicture},</if>
|
|
|
<if test="picture!=null">picture=#{picture},</if>
|
|
|
<if test="video!=null">video=#{video},</if>
|
|
|
<if test="tagIds!=null">tagIds=#{tagIds},</if>
|