insert into project_month_info (agreementId,typeId,leaseNum,leaseDate,returnDate,leasePrice,leaseMoney,
taskId,push_status,push_time,push_remark,is_flag,type,jiju_type,buy_price,money)
VALUES
(
#{item.leaseName},
#{item.typeId},
#{item.leaseNum},
#{item.startTime},
#{item.returnDate},
#{item.leasePrice},
#{item.leaseMoney},
#{item.taskId},
#{item.pushStatus},
#{item.pushTime},
#{item.pushRemark},
0,
2,
1,
#{item.buyPrice},
#{item.money}
)
insert into project_month_info (agreementId,typeId,leaseNum,leaseDate,returnDate,leasePrice,leaseMoney,
taskId,push_status,push_time,push_remark,is_flag,type,jiju_type,buy_price,money)
VALUES
(
#{item.leaseName},
#{item.typeId},
#{item.leaseNum},
#{item.startTime},
#{item.endTime},
#{item.leasePrice},
#{item.leaseMoney},
#{item.taskId},
#{item.pushStatus},
#{item.pushTime},
#{item.pushRemark},
0,
#{item.type},
1,
#{item.buyPrice},
#{item.money}
)
insert into project_month_costs (agreement_id,lease_money,cons_money,scrap_money,
lost_money,repair_money,task_id,is_flag,month,jiju_type)
VALUES
(
#{item.agreementId},
#{item.leaseTotal},
#{item.consTotal},
#{item.scrapTotal},
#{item.lostTotal},
#{item.repairTotal},
#{item.taskId},
0,
#{item.month},
1
)
UPDATE bm_project
SET
pro_status = #{item.proStatus},
actual_end_date = #{item.actualEndDate}
WHERE external_id = #{item.externalId}