|
@@ -61,6 +61,12 @@
|
|
<if test="projectId != 0">
|
|
<if test="projectId != 0">
|
|
and a.projectId = #{projectId}
|
|
and a.projectId = #{projectId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="projectIds != null">
|
|
|
|
+ and a.projectId in
|
|
|
|
+ <foreach collection="projectIds" open="(" separator="," close=")" item="id">
|
|
|
|
+ #{id}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
<if test="projectItemId != 0">
|
|
<if test="projectItemId != 0">
|
|
and a.projectItemId = #{projectItemId}
|
|
and a.projectItemId = #{projectItemId}
|
|
</if>
|
|
</if>
|
|
@@ -68,7 +74,7 @@
|
|
and a.projectItemTargetId = #{projectItemTargetId}
|
|
and a.projectItemTargetId = #{projectItemTargetId}
|
|
</if>
|
|
</if>
|
|
<if test="name != null">
|
|
<if test="name != null">
|
|
- and a.name = #{name}
|
|
|
|
|
|
+ and a.name LIKE CONCAT('%', #{name}, '%')
|
|
</if>
|
|
</if>
|
|
<if test="chargePersonId != 0">
|
|
<if test="chargePersonId != 0">
|
|
and a.chargePersonId = #{chargePersonId}
|
|
and a.chargePersonId = #{chargePersonId}
|
|
@@ -95,7 +101,7 @@
|
|
and a.propertyCertificateNumber = #{propertyCertificateNumber}
|
|
and a.propertyCertificateNumber = #{propertyCertificateNumber}
|
|
</if>
|
|
</if>
|
|
<if test="tagIds != null">and
|
|
<if test="tagIds != null">and
|
|
- <foreach item="tagId" collection="tagIds.split(',')" open="(" separator=" and " close=")">
|
|
|
|
|
|
+ <foreach item="tagId" collection="tagIds.split(',')" open="(" separator=" or " close=")">
|
|
FIND_IN_SET (#{tagId}, a.tagIds)
|
|
FIND_IN_SET (#{tagId}, a.tagIds)
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
</if>
|
|
@@ -118,9 +124,9 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<insert id="insert" useGeneratedKeys="true" keyProperty="id">
|
|
<insert id="insert" useGeneratedKeys="true" keyProperty="id">
|
|
- INSERT INTO project_item_target_room(`projectId`, `projectItemId`, `projectItemTargetId`,`name`, `chargePersonId`, `roomTypeId`, `roomNumber`, `area`, `roomState`, `investmentState`,
|
|
|
|
|
|
+ INSERT INTO project_item_target_room(`code`, `projectId`, `projectItemId`, `projectItemTargetId`,`name`, `chargePersonId`, `roomTypeId`, `roomNumber`, `area`, `roomState`, `investmentState`,
|
|
`invocationDate`, `decoration`, `propertyCertificateNumber`, `showPicture`, `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}, #{chargePersonId}, #{roomTypeId}, #{roomNumber}, #{area}, #{roomState}, #{investmentState},
|
|
|
|
|
|
+ VALUES (#{code}, #{projectId}, #{projectItemId}, #{projectItemTargetId}, #{name}, #{chargePersonId}, #{roomTypeId}, #{roomNumber}, #{area}, #{roomState}, #{investmentState},
|
|
#{invocationDate}, #{decoration}, #{propertyCertificateNumber}, #{showPicture}, #{picture}, #{video}, #{tagIds}, #{openState}, #{price}, #{payWay}, #{payType}, #{introduce}, #{data})
|
|
#{invocationDate}, #{decoration}, #{propertyCertificateNumber}, #{showPicture}, #{picture}, #{video}, #{tagIds}, #{openState}, #{price}, #{payWay}, #{payType}, #{introduce}, #{data})
|
|
</insert>
|
|
</insert>
|
|
|
|
|