|
@@ -36,6 +36,7 @@
|
|
|
<result column="projectItemTargetRoomIds" property="projectItemTargetRoomIds"/>
|
|
|
<result column="attachment" property="attachment"/>
|
|
|
<result column="document" property="document"/>
|
|
|
+ <result column="status" property="status"/>
|
|
|
<result column="data" property="data"/>
|
|
|
</resultMap>
|
|
|
|
|
@@ -71,6 +72,7 @@
|
|
|
<result column="projectItemTargetRoomIds" property="projectItemTargetRoomIds"/>
|
|
|
<result column="attachment" property="attachment"/>
|
|
|
<result column="document" property="document"/>
|
|
|
+ <result column="status" property="status"/>
|
|
|
<result column="data" property="data"/>
|
|
|
<collection property="clauseList" ofType="com.bosshand.virgo.api.model.Clause" resultMap="com.bosshand.virgo.api.dao.ClauseDao.clauseResult" columnPrefix="clause_"/>
|
|
|
</resultMap>
|
|
@@ -80,10 +82,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`, `data`)
|
|
|
+ `lateFeesStartingDays`, `lateFeesProportion`, `lateFeesCeiling`, `tagIds`, `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}, #{data})
|
|
|
+ #{lateFeesProportion}, #{lateFeesCeiling}, #{tagIds}, #{projectItemTargetRoomIds}, #{attachment}, #{document}, #{status}, #{data})
|
|
|
</insert>
|
|
|
|
|
|
<delete id="delete">
|
|
@@ -120,6 +122,7 @@
|
|
|
<if test="projectItemTargetRoomIds!=null">projectItemTargetRoomIds=#{projectItemTargetRoomIds},</if>
|
|
|
<if test="attachment!=null">attachment=#{attachment},</if>
|
|
|
<if test="document!=null">document=#{document},</if>
|
|
|
+ <if test="status!=null">status=#{status},</if>
|
|
|
<if test="data!=null">data=#{data},</if>
|
|
|
</trim>
|
|
|
WHERE id=#{id}
|
|
@@ -193,6 +196,7 @@
|
|
|
<if test="projectItemTargetRoomIds!=null">and projectItemTargetRoomIds=#{projectItemTargetRoomIds}</if>
|
|
|
<if test="attachment!=null">and attachment=#{attachment}</if>
|
|
|
<if test="document!=null">and document=#{document}</if>
|
|
|
+ <if test="status!=null">and status=#{status}</if>
|
|
|
<if test="data!=null">and data=#{data}</if>
|
|
|
</where>
|
|
|
</select>
|
|
@@ -232,6 +236,7 @@
|
|
|
<if test="projectItemTargetRoomIds!=null">and projectItemTargetRoomIds=#{projectItemTargetRoomIds}</if>
|
|
|
<if test="attachment!=null">and attachment=#{attachment}</if>
|
|
|
<if test="document!=null">and document=#{document}</if>
|
|
|
+ <if test="status!=null">and status=#{status}</if>
|
|
|
<if test="data!=null">and data=#{data}</if>
|
|
|
</where>
|
|
|
</select>
|
|
@@ -270,7 +275,8 @@
|
|
|
</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=#{document}</if>
|
|
|
+ <if test="p.document!=null">and document=#{p.document}</if>
|
|
|
+ <if test="p.status!=null">and status=#{p.status}</if>
|
|
|
<if test="p.data!=null">and data=#{p.data}</if>
|
|
|
</where>
|
|
|
limit #{currIndex} , #{pageSize}
|