UPDATE bm_agreement_info SET is_push = #{isPush} WHERE agreement_id = #{agreementId}
INSERT INTO calc_project_month (MONTH)
VALUES (#{month})
INSERT INTO project_month_costs(
AGREEMENT_ID,
LEASE_MONEY,
CONSUME_MONEY,
LOST_MONEY,
REPAIR_MONEY,
SCRAP_MONEY,
TASK_ID,
TYPE
)
VALUES
(
#{item.agreementId},
#{item.leaseMoney},
#{item.consumeMoney},
#{item.lostMoney},
#{item.repairMoney},
#{item.scrapMoney},
#{item.taskId},
#{item.settlementType}
)
update project_month_costs set
LEASE_MONEY=#{leaseMoney},
CONSUME_MONEY=#{consumeMoney},
LOST_MONEY=#{lostMoney},
REPAIR_MONEY=#{repairMoney},
SCRAP_MONEY=#{scrapMoney}
where
AGREEMENT_ID=#{agreementId} and TASK_ID=#{taskId} and TYPE=#{settlementType}
insert into project_month_info(agreementId, typeId, leaseNum, leaseDate, returnDate,
leasePrice, leaseMoney, taskId, buy_price, money, jiju_type)
values
(
#{item.agreementId},
#{item.typeId},
#{item.num},
#{item.calcStartTime},
#{item.calcEndTime},
#{item.leasePrice},
#{item.leaseCost},
#{item.taskId},
#{item.buyPrice},
#{item.consumeCost},
#{item.equipmentType}
)
UPDATE project_month_costs SET check_status = 1, check_time = now(),check_user = #{userName}
WHERE task_id = #{taskId}
and agreement_id in
#{item}
and type = #{settlementType}
and type = #{settlementType} and (consume_money = 0 || consume_money is null)
and type = #{settlementType} and consume_money > 0
UPDATE project_month_info SET push_status = #{pushStatus}, push_time = #{pushTime}, push_remark = #{pushRemark}
WHERE id = #{id}
UPDATE slt_agreement_details SET push_status = #{pushStatus}, push_time = #{pushTime}, push_remark = #{pushRemark}
WHERE id = #{id}
UPDATE project_month_info SET push_status = 2, push_remark = #{pushRemark}
WHERE id = #{id}
UPDATE slt_agreement_details SET push_status = 2, push_remark = #{pushRemark}
WHERE id = #{id}