select enername, muid, enerclassid, enersno, isstorage, opr_man, opr_time, mod_man, mod_time, note, enerid, coefficient, execdate, price, emission_factors, create_by, create_time, update_by, update_time, remark from sys_energy
insert into sys_energy
enername,
muid,
enerclassid,
enersno,
isstorage,
opr_man,
opr_time,
mod_man,
mod_time,
note,
enerid,
coefficient,
execdate,
price,
emission_factors,
create_by,
create_time,
update_by,
update_time,
remark,
#{enername},
#{muid},
#{enerclassid},
#{enersno},
#{isstorage},
#{oprMan},
now(),
#{modMan},
now(),,
#{note},
#{enerid},
#{coefficient},
#{execdate},
#{price},
#{emissionFactors},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update sys_energy
muid = #{muid},
enerclassid = #{enerclassid},
enername = #{enername},
enersno = #{enersno},
isstorage = #{isstorage},
opr_man = #{oprMan},
opr_time = now(),
mod_man = #{modMan},
mod_time = now(),
note = #{note},
enerid = #{enerid},
coefficient = #{coefficient},
execdate = #{execdate},
price = #{price},
emission_factors = #{emissionFactors},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where enerid = #{enerid}
delete from sys_energy where enerid = #{enerid}
delete from sys_energy where enerid in
#{enerid}
insert into sys_price
mod_time,
opr_time,
opr_man,
mod_man,
objectid,
objecttype,
price,
execdate,
note,
now(),
now(),
#{oprMan},
#{modMan},
#{enerid},
1,
#{price},
#{execdate},
#{pricenote},
update sys_price
mod_time = now(),
mod_man = #{modMan},
price = #{price},
execdate = #{execdate},
note = #{pricenote},
insert into sys_enercoefficient
mod_time,
opr_time,
opr_man,
mod_man,
enerid,
coefficient,
coefficient2,
carbon_emission_coefficient,
execdate,
note,
now(),
now(),
#{oprMan},
#{modMan},
#{enerid},
#{coefficient},
#{coefficient2},
#{carbonEmissionCoefficient},
#{coefficientexecdate},
#{coefficientnote},
update sys_enercoefficient
mod_time = now(),
mod_man = #{modMan},
coefficient = #{coefficient},
coefficient2 = #{coefficient2},
execdate = #{coefficientexecdate},
carbon_emission_coefficient = #{carbonEmissionCoefficient},
note = #{coefficientnote},
where enerid = #{enerid}