INSERT INTO
epc_fixed_asset_{rule}
(
assetsCode,
useDepartment,
depreciationRate,
currentDepreciation,
cumulativeDepreciation,
netMoney,
accruedTime,
alreadyTime,
surplusTime,
CREATEDATETIME,
assetsName,
specifications,
capitalizationData,
estimateTime,
originalMoney,
depreciationMethod,
useDepartmentName,
calculationPeriod
)
VALUES
(
#{assetsCode},
#{useDepartment},
#{depreciationRate},
#{currentDepreciation},
#{cumulativeDepreciation},
#{netMoney},
#{accruedTime},
#{alreadyTime},
#{surplusTime},
NOW(),
#{assetsName},
#{specifications},
#{capitalizationData},
#{estimateTime},
#{originalMoney},
#{depreciationMethod},
#{useDepartmentName},
#{calculationPeriod}
)
INSERT INTO
epc_fixed_asset_{rule}
(
assetsCode,
useDepartment,
depreciationRate,
currentDepreciation,
cumulativeDepreciation,
netMoney,
accruedTime,
alreadyTime,
surplusTime,
CREATEDATETIME,
assetsName,
specifications,
capitalizationData,
estimateTime,
originalMoney,
depreciationMethod,
useDepartmentName,
calculationPeriod
)
VALUES
(
#{item.assetsCode},
#{item.useDepartment},
#{item.depreciationRate},
#{item.currentDepreciation},
#{item.cumulativeDepreciation},
#{item.netMoney},
#{item.accruedTime},
#{item.alreadyTime},
#{item.surplusTime},
NOW(),
#{item.assetsName},
#{item.specifications},
#{item.capitalizationData},
#{item.estimateTime},
#{item.originalMoney},
#{item.depreciationMethod},
#{item.useDepartmentName},
#{item.calculationPeriod}
)
UPDATE
epc_fixed_asset_{rule}
SET
depreciationRate=#{depreciationRate},
currentDepreciation=#{currentDepreciation},
cumulativeDepreciation=#{cumulativeDepreciation},
netMoney=#{netMoney},
accruedTime=#{accruedTime},
alreadyTime=#{alreadyTime},
surplusTime=#{surplusTime},
assetsCode=#{assetsCode},
useDepartment=#{useDepartment}
WHERE
id=#{id}
INSERT INTO
epc_fixed_err_asset_{rule}
(
assetsCode,
calculationPeriod,
useDepartment,
useDepartmentself,
accruedTime
)
value
(
#{assetsCode},
#{calculationPeriod},
#{useDepartment},
#{useDepartmentself},
now()
)