INSERT INTO
epc_fixed_summary_{rule}
(
useDepartment,
originalMoney,
cumulativeDepreciation,
currentDepreciation,
netMoney,
countingState,
calculationData,
bookkeepingState,
bookkeepingData,
createDateTime,
calculationPeriod
)
VALUES
(
#{useDepartment},
#{originalMoney},
#{cumulativeDepreciation},
#{currentDepreciation},
#{netMoney},
#{countingState},
#{calculationData},
#{bookkeepingState},
#{bookkeepingData},
now(),
#{calculationPeriod}
)
UPDATE
epc_fixed_summary_{rule}
SET
useDepartment = #{useDepartment},
originalMoney = #{originalMoney},
cumulativeDepreciation = #{cumulativeDepreciation},
currentDepreciation = #{currentDepreciation},
netMoney = #{netMoney},
countingState = #{countingState},
calculationData = #{calculationData},
bookkeepingState = #{bookkeepingState},
bookkeepingData = #{bookkeepingData},
calculationPeriod = #{calculationPeriod}
WHERE
id=#{id}
UPDATE epc_fixed_summary_{rule}
SET bookkeepingState = #{state}
,accountingTime = #{date}
,`number` = #{number}
WHERE
id = #{id}
UPDATE
epc_fixed_summary_{rule}
SET
bookkeepingState = #{bookkeepingState},
voucherCode = #{voucherCode}
WHERE
id=#{id}