|
@@ -8,9 +8,9 @@
|
|
|
<!-- 保存发票申请项信息 add by wuxw 2018-07-03 -->
|
|
<!-- 保存发票申请项信息 add by wuxw 2018-07-03 -->
|
|
|
<insert id="saveInvoiceApplyItemInfo" parameterType="Map">
|
|
<insert id="saveInvoiceApplyItemInfo" parameterType="Map">
|
|
|
insert into invoice_apply_item(
|
|
insert into invoice_apply_item(
|
|
|
- item_id,apply_id,item_type,item_name,item_amount,item_obj_id,remark,community_id
|
|
|
|
|
|
|
+ item_id,apply_id,item_type,item_name,item_amount,item_obj_id,remark,community_id,pay_time
|
|
|
) values (
|
|
) values (
|
|
|
- #{itemId},#{applyId},#{itemType},#{itemName},#{itemAmount},#{itemObjId},#{remark},#{communityId}
|
|
|
|
|
|
|
+ #{itemId},#{applyId},#{itemType},#{itemName},#{itemAmount},#{itemObjId},#{remark},#{communityId},#{payTime}
|
|
|
)
|
|
)
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -20,7 +20,8 @@
|
|
|
item_id,apply_id,item_type,item_name,item_amount,item_obj_id,remark,community_id
|
|
item_id,apply_id,item_type,item_name,item_amount,item_obj_id,remark,community_id
|
|
|
) values
|
|
) values
|
|
|
<foreach collection="invoiceApplyItemPos" item="item" separator=",">
|
|
<foreach collection="invoiceApplyItemPos" item="item" separator=",">
|
|
|
- (#{item.itemId},#{item.applyId},#{item.itemType},#{item.itemName},#{item.itemAmount},#{item.itemObjId},#{item.remark},#{item.communityId})
|
|
|
|
|
|
|
+ (#{item.itemId},#{item.applyId},#{item.itemType},#{item.itemName},#{item.itemAmount},#{item.itemObjId},#{item.remark},
|
|
|
|
|
+ #{item.communityId}, #{item.payTime})
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -29,7 +30,7 @@
|
|
|
<select id="getInvoiceApplyItemInfo" parameterType="Map" resultType="Map">
|
|
<select id="getInvoiceApplyItemInfo" parameterType="Map" resultType="Map">
|
|
|
select t.item_id,t.item_id itemId,t.apply_id,t.apply_id applyId,t.item_type,t.item_type
|
|
select t.item_id,t.item_id itemId,t.apply_id,t.apply_id applyId,t.item_type,t.item_type
|
|
|
itemType,t.item_name,t.item_name itemName,t.item_amount,t.item_amount itemAmount,t.item_obj_id,t.item_obj_id
|
|
itemType,t.item_name,t.item_name itemName,t.item_amount,t.item_amount itemAmount,t.item_obj_id,t.item_obj_id
|
|
|
- itemObjId,t.remark,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId
|
|
|
|
|
|
|
+ itemObjId,t.remark,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.pay_time payTime
|
|
|
from invoice_apply_item t
|
|
from invoice_apply_item t
|
|
|
where 1 =1
|
|
where 1 =1
|
|
|
<if test="itemId !=null and itemId != ''">
|
|
<if test="itemId !=null and itemId != ''">
|
|
@@ -86,6 +87,9 @@
|
|
|
<if test="itemObjId !=null and itemObjId != ''">
|
|
<if test="itemObjId !=null and itemObjId != ''">
|
|
|
, t.item_obj_id= #{itemObjId}
|
|
, t.item_obj_id= #{itemObjId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="payTime !=null and payTime != ''">
|
|
|
|
|
+ , t.pay_time= #{payTime}
|
|
|
|
|
+ </if>
|
|
|
<if test="remark !=null and remark != ''">
|
|
<if test="remark !=null and remark != ''">
|
|
|
, t.remark= #{remark}
|
|
, t.remark= #{remark}
|
|
|
</if>
|
|
</if>
|