|
@@ -33,6 +33,7 @@
|
|
|
<result column="lateFeesProportion" property="lateFeesProportion"/>
|
|
|
<result column="lateFeesCeiling" property="lateFeesCeiling"/>
|
|
|
<result column="tagIds" property="tagIds"/>
|
|
|
+ <result column="projectId" property="projectId"/>
|
|
|
<result column="projectItemTargetRoomIds" property="projectItemTargetRoomIds"/>
|
|
|
<result column="attachment" property="attachment"/>
|
|
|
<result column="document" property="document"/>
|
|
@@ -69,6 +70,7 @@
|
|
|
<result column="lateFeesProportion" property="lateFeesProportion"/>
|
|
|
<result column="lateFeesCeiling" property="lateFeesCeiling"/>
|
|
|
<result column="tagIds" property="tagIds"/>
|
|
|
+ <result column="projectId" property="projectId"/>
|
|
|
<result column="projectItemTargetRoomIds" property="projectItemTargetRoomIds"/>
|
|
|
<result column="attachment" property="attachment"/>
|
|
|
<result column="document" property="document"/>
|
|
@@ -82,10 +84,10 @@
|
|
|
<insert id="insert" parameterType="com.bosshand.virgo.api.model.Contract" useGeneratedKeys="true" keyProperty="id">
|
|
|
INSERT INTO contract(`code`, `createDate`, `organizationId`, `organizationName`, `roleId`, `roleName`, `investmentPromotion`, `operator`, `investmentPromotionName`, `operatorName`,`tenantType`, `merchantId`, `merchantName`, `clientId`, `clientName`,
|
|
|
`tenant`, `industry`, `corporation`, `signatory`, `tenantContactPerson`, `signingDate`, `startDate`, `endDate`,
|
|
|
- `lateFeesStartingDays`, `lateFeesProportion`, `lateFeesCeiling`, `tagIds`, `projectItemTargetRoomIds`, `attachment`, `document`, `status`, `data`)
|
|
|
+ `lateFeesStartingDays`, `lateFeesProportion`, `lateFeesCeiling`, `tagIds`, `projectId`, `projectItemTargetRoomIds`, `attachment`, `document`, `status`, `data`)
|
|
|
VALUES (#{code}, now(), #{organizationId}, #{organizationName}, #{roleId}, #{roleName}, #{investmentPromotion}, #{operator}, #{investmentPromotionName}, #{operatorName}, #{tenantType}, #{merchantId}, #{merchantName}, #{clientId}, #{clientName}, #{tenant},
|
|
|
#{industry}, #{corporation}, #{signatory}, #{tenantContactPerson}, #{signingDate}, #{startDate}, #{endDate}, #{lateFeesStartingDays},
|
|
|
- #{lateFeesProportion}, #{lateFeesCeiling}, #{tagIds}, #{projectItemTargetRoomIds}, #{attachment}, #{document}, #{status}, #{data})
|
|
|
+ #{lateFeesProportion}, #{lateFeesCeiling}, #{tagIds}, #{projectId}, #{projectItemTargetRoomIds}, #{attachment}, #{document}, #{status}, #{data})
|
|
|
</insert>
|
|
|
|
|
|
<delete id="delete">
|
|
@@ -119,6 +121,7 @@
|
|
|
<if test="lateFeesProportion!=null">lateFeesProportion=#{lateFeesProportion},</if>
|
|
|
<if test="lateFeesCeiling!=null">lateFeesCeiling=#{lateFeesCeiling},</if>
|
|
|
<if test="tagIds!=null">tagIds=#{tagIds},</if>
|
|
|
+ <if test="projectId!=0">projectId=#{projectId},</if>
|
|
|
<if test="projectItemTargetRoomIds!=null">projectItemTargetRoomIds=#{projectItemTargetRoomIds},</if>
|
|
|
<if test="attachment!=null">attachment=#{attachment},</if>
|
|
|
<if test="document!=null">document=#{document},</if>
|
|
@@ -193,6 +196,7 @@
|
|
|
FIND_IN_SET (#{tagId}, tagIds)
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ <if test="projectId!=0">and projectId=#{projectId}</if>
|
|
|
<if test="projectItemTargetRoomIds!=null">and projectItemTargetRoomIds=#{projectItemTargetRoomIds}</if>
|
|
|
<if test="attachment!=null">and attachment=#{attachment}</if>
|
|
|
<if test="document!=null">and document=#{document}</if>
|
|
@@ -233,6 +237,7 @@
|
|
|
FIND_IN_SET (#{tagId}, tagIds)
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ <if test="projectId!=0">and projectId=#{projectId}</if>
|
|
|
<if test="projectItemTargetRoomIds!=null">and projectItemTargetRoomIds=#{projectItemTargetRoomIds}</if>
|
|
|
<if test="attachment!=null">and attachment=#{attachment}</if>
|
|
|
<if test="document!=null">and document=#{document}</if>
|
|
@@ -273,6 +278,7 @@
|
|
|
FIND_IN_SET (#{tagId}, tagIds)
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ <if test="p.projectId!=0">and projectId=#{p.projectId}</if>
|
|
|
<if test="p.projectItemTargetRoomIds!=null">and projectItemTargetRoomIds=#{p.projectItemTargetRoomIds}</if>
|
|
|
<if test="p.attachment!=null">and attachment=#{p.attachment}</if>
|
|
|
<if test="p.document!=null">and document=#{p.document}</if>
|