insert into meter_machine_detail(
detail_type,cur_degrees,machine_id,prestore_degrees,detail_id,remark,community_id,cur_reading_time,state
) values (
#{detailType},#{curDegrees},#{machineId},#{prestoreDegrees},#{detailId},#{remark},#{communityId},#{curReadingTime},#{state}
)
insert into meter_machine_detail(
detail_type,cur_degrees,machine_id,prestore_degrees,detail_id,remark,community_id,cur_reading_time,state
) values
(#{item.detailType},#{item.curDegrees},#{item.machineId},#{item.prestoreDegrees},#{item.detailId},#{item.remark},
#{item.communityId},#{item.curReadingTime},#{item.state})
update meter_machine_detail t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.detail_type= #{detailType}
, t.cur_degrees= #{curDegrees}
, t.prestore_degrees= #{prestoreDegrees}
, t.state= #{state}
, t.remark= #{remark}
, t.cur_reading_time= #{curReadingTime}
where 1=1
and t.detail_id= #{detailId}
and t.community_id= #{communityId}
and t.machine_id= #{machineId}