|
@@ -25,6 +25,7 @@
|
|
|
<result column="date" property="date"/>
|
|
|
<result column="attachment" property="attachment"/>
|
|
|
<result column="data" property="data"/>
|
|
|
+ <result column="invoiceAmount" property="invoiceAmount"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.bosshand.virgo.api.model.PaymentInvoice" id="paymentInvoiceResult">
|
|
@@ -51,15 +52,16 @@
|
|
|
<result column="date" property="date"/>
|
|
|
<result column="attachment" property="attachment"/>
|
|
|
<result column="data" property="data"/>
|
|
|
+ <result column="invoiceAmount" property="invoiceAmount"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<insert id="insert" parameterType="com.bosshand.virgo.api.model.PaymentInvoice" useGeneratedKeys="true" keyProperty="id">
|
|
|
INSERT INTO payment_invoice (`paymentOrdinaryId`, `paymentId`,
|
|
|
`organizationId`, `projectId`, `projectItemTargetRoomIds`, `invoiceType`, `type`, `status`, `code`, `number`, `payMerchantId`, `payClientId`, `cargoName`,
|
|
|
- `name`, `date`, `attachment`, `data`)
|
|
|
+ `name`, `date`, `attachment`, `data`, `invoiceAmount`)
|
|
|
VALUES (#{paymentOrdinaryId}, #{paymentId},
|
|
|
#{organizationId}, #{projectId}, #{projectItemTargetRoomIds}, #{invoiceType}, #{type}, #{status}, #{code}, #{number}, #{payMerchantId}, #{payClientId}, #{cargoName},
|
|
|
- #{name}, #{date}, #{attachment}, #{data})
|
|
|
+ #{name}, #{date}, #{attachment}, #{data}, #{invoiceAmount})
|
|
|
</insert>
|
|
|
|
|
|
<delete id="delete">
|
|
@@ -90,6 +92,7 @@
|
|
|
<if test="date!=null">date=#{date},</if>
|
|
|
<if test="attachment!=null">attachment=#{attachment},</if>
|
|
|
<if test="data!=null">data=#{data},</if>
|
|
|
+ <if test="invoiceAmount!=null">invoiceAmount=#{invoiceAmount},</if>
|
|
|
</trim>
|
|
|
WHERE id=#{id}
|
|
|
</update>
|